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 metrics

/v1/metricsPOST
Export metrics 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
resourceMetrics *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/metrics" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "resourceMetrics": [] }'
Response example
{}