Skip to main content
POST
Start an OTLP export of a project

Authorizations

Authorization
string
header
required

A project token (apsio_pt_v0...), which reads exactly one project, or an OAuth access token issued for the API, which reads what its user can. Access tokens issued for Apsio's MCP server are accepted only from the MCP server itself.

Path Parameters

projectId
string
required
Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
Example:

"0192f3a4-0000-7000-8000-00000000a101"

Body

application/json
signals
enum<string>[]
required
Required array length: 1 - 3 elements

logs (crashes, hangs and events included), traces (spans) or metrics.

Available options:
logs,
traces,
metrics
from
string<date-time>
required
to
string<date-time>
required

Response

Queued.

id
string
required
project_id
string
required
signals
enum<string>[]
required

logs (crashes, hangs and events included), traces (spans) or metrics.

Available options:
logs,
traces,
metrics
from
string
required

The range start, inclusive.

to
string
required

The range end, exclusive.

status
enum<string>
required
Available options:
queued,
running,
done,
failed
requested_by
string | null
required
created_at
string
required
started_at
string | null
required
finished_at
string | null
required
counts
object
required

Records exported per signal, once done.

error
string | null
required

Why it failed, as a code; null otherwise.

expires_at
string | null
required

When the files are deleted: 7 days after it is done.