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

Import OTLP logs

/v1/logsPOST
Export logs as OTLP JSON or protobuf, optionally gzip-compressed. Both wire and expanded payloads have a 262,144-byte limit. Retrying identical source records is safe. The ingestion credential selects the workspace. OTLP mapping and capture policy.
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.
Request Bodyapplication/jsonrequired
resourceLogs *object[]
Show item properties
resource?object
Show properties
attributes?object[]
Show item properties
key *string
value *object
Show properties
stringValue?string
intValue?integer | string
boolValue?boolean
doubleValue?number
arrayValue?object
kvlistValue?object
bytesValue?string
scopeLogs *object[]
Show item properties
logRecords *object[]
Show item properties
timeUnixNano *string | integer
Unix timestamp in nanoseconds.
traceId?string
Nonzero trace ID.
Pattern: ^[a-fA-F0-9]{32}$
spanId?string
Nonzero span ID.
Pattern: ^[a-fA-F0-9]{16}$
severityNumber?integer
Min: 0Max: 24
severityText?string
body?object
Show properties
stringValue?string
intValue?integer | string
boolValue?boolean
doubleValue?number
arrayValue?object
kvlistValue?object
bytesValue?string
attributes?object[]
Show item properties
key *string
value *object
Response
200 · Success
Type: object
400 · Invalid export
code?integer
message?string
401 · Missing or invalid credential
code?integer
message?string
403 · Insufficient scope
code?integer
message?string
409 · Conflicting record
code?integer
message?string
410 · Session removed, unshared or expired
error *string
413 · Export exceeds the size limit
code?integer
message?string
415 · Unsupported content type or encoding
code?integer
message?string
429 · Rate limit exceeded
code?integer
message?string
503 · Service unavailable
code?integer
message?string
Request example
curl -X POST "https://app.halfspan.com/v1/logs" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "resourceLogs": [] }'
Response example
{}