Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

Upload redacted artifact

/v1/agent-artifactsPOST
Use the sharer credential of an existing artifact_produced event with capture=redacted. The server verifies its SHA-256 digest and rejects recognizable credentials. Retrying identical bytes is safe. Requires a configured archive.
Requires traces:write. The credential selects the workspace. Errors use a JSON error string; see Errors and limits.
Authorization
ApiKey *Bearer <token>
Workspace API key. Create a key with the scope named by the operation. API keys use separate sharer identities; replacement keys do not inherit sharing ownership.
Query Parameters
session *string (uuid)
event *string
Pattern: ^[a-zA-Z0-9._:@/-]{1,128}$Max length: 128
Request Bodyapplication/jsonrequired
capture *"redacted"
content *string
Standard base64 encoding of at most 128 KiB of already-redacted bytes.
Response
200 · Success
digest *string
Pattern: ^[a-f0-9]{64}$
bytes *integer
Min: 0
400 · Invalid request
error *string
401 · Missing or invalid credential
error *string
403 · Required scope or sharer permission denied
error *string
404 · Requested evidence unavailable
error *string
409 · Existing session or event conflicts with this batch
error *string
413 · Request body exceeds the size limit
error *string
503 · Storage or credential verification temporarily unavailable
error *string
Request example
curl -X POST "https://app.halfspan.com/v1/agent-artifacts?session=%3Csession%3E&event=%3Cevent%3E" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "capture": "redacted", "content": "aGVsbG8=" }'
Response example
{ "digest": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824", "bytes": 5 }