Analytics API
Client/server event intake, reports and exports.
On this page
Contract version 1.1.0. 4 operations; 4 served, 0 specified only.
Note
"Served" means the endpoint exists in the runtime, not that it is enabled for your app. Provider-backed endpoints return 503 FEATURE_UNAVAILABLE until the matching connection is ready.
| Method | Path | Summary | Auth | Status |
|---|---|---|---|---|
| POST | /v1/analytics/events | Ingest events | Consumer session | served |
| POST | /v1/analytics/exports | Export report | Operator session | served |
| GET | /v1/analytics/exports/{job_id} | Get export | Operator session | served |
| POST | /v1/analytics/reports/query | Query report | Operator session | served |
POST /v1/analytics/events
Ingest events. Server derives subject/scope/producer/actor and validates registered event properties, consent and rate limits. Client cannot emit commerce/entitlements/system events. Anonymous ingestion uses a separate restricted installation credential and future approved route.
| Operation ID | ingestEvents |
| Auth | Consumer session (app user) |
| Status | Served |
| Idempotency-Key | Required — see idempotency |
Request body (application/json, required): ClientEventBatch
Responses
202Accepted for asynchronous processing —Job
Errors: 400 401 403 404 409 422 429 503 as problem details.
POST /v1/analytics/exports
Export report.
| Operation ID | exportReport |
| Auth | Operator session (console) |
| Status | Served |
| Idempotency-Key | Required — see idempotency |
Request body (application/json, required): ExportRequest
Responses
202Accepted for asynchronous processing —Job
Errors: 400 401 403 404 409 422 429 503 as problem details.
GET /v1/analytics/exports/{job_id}
Get export.
| Operation ID | getExport |
| Auth | Operator session (console) |
| Status | Served |
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
job_id | path | string | yes | min length 1; max length 128; pattern ^[A-Za-z0-9][A-Za-z0-9_.:-]*$ |
Responses
200Successful operation —Job
Errors: 400 401 403 404 409 422 429 503 as problem details.
POST /v1/analytics/reports/query
Query report.
| Operation ID | queryReport |
| Auth | Operator session (console) |
| Status | Served |
| Idempotency-Key | Required — see idempotency |
Request body (application/json, required): ReportRequest
Responses
200Successful operation —ReportResult
Errors: 400 401 403 404 409 422 429 503 as problem details.