POST/v1/traces
Ingest a strikeflow trace batch
Bearer auth. JSON body, optionally gzip. Prompt text is stored only when capture_content is on. Retention is 30 days.
Parameters
| Name | In | Required |
|---|---|---|
| Authorization | header | Yes |
Request body
Schema
| Field | Type | Required |
|---|---|---|
| project | string | Yes |
| sdk | string | No |
| spans | array of object | Yes |
Responses
202
Accepted.
400
Schema
| Field | Type | Required |
|---|---|---|
| error | object | Yes |
error
| Field | Type | Required |
|---|---|---|
| type | string | No |
| code | string | No |
| message | string | No |
| param | string | No |
| request_id | string | No |
401
Schema
| Field | Type | Required |
|---|---|---|
| error | object | Yes |
error
| Field | Type | Required |
|---|---|---|
| type | string | No |
| code | string | No |
| message | string | No |
| param | string | No |
| request_id | string | No |
413
Schema
| Field | Type | Required |
|---|---|---|
| error | object | Yes |
error
| Field | Type | Required |
|---|---|---|
| type | string | No |
| code | string | No |
| message | string | No |
| param | string | No |
| request_id | string | No |
422
Schema
| Field | Type | Required |
|---|---|---|
| error | object | Yes |
error
| Field | Type | Required |
|---|---|---|
| type | string | No |
| code | string | No |
| message | string | No |
| param | string | No |
| request_id | string | No |
503
Schema
| Field | Type | Required |
|---|---|---|
| error | object | Yes |
error
| Field | Type | Required |
|---|---|---|
| type | string | No |
| code | string | No |
| message | string | No |
| param | string | No |
| request_id | string | No |
curl -s -X POST "https://strike-ai.eu/v1/traces" \
-H "Authorization: Bearer $STRIKE_API_KEY" \
-H "Content-Type: application/json" \
-d ''Try it
Calls our server proxy. Only paste your API key here: it stays in this tab and isn’t stored or sent to analytics. Leave it empty to use the playground proxy key.
Errors
| Status | Code | Meaning |
|---|---|---|
| 401 | authentication_error | Missing or invalid Bearer API key. |
| 422 | validation_error | Request body failed schema or business validation. |
| 413 | payload_too_large | Request body or state exceeds size limits. |
| 503 | model_warming | Inference worker is starting (strike-1). Retry with backoff. |