Diese Seite ist auf Englisch.
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.
Parameter
| Name | Ort | Pflicht |
|---|---|---|
| Authorization | header | Ja |
Anfragekörper
Schema
| Feld | Typ | Pflicht |
|---|---|---|
| project | string | Ja |
| sdk | string | Nein |
| spans | array of object | Ja |
Antworten
202
Accepted.
400
Schema
| Feld | Typ | Pflicht |
|---|---|---|
| error | object | Ja |
error
| Feld | Typ | Pflicht |
|---|---|---|
| type | string | Nein |
| code | string | Nein |
| message | string | Nein |
| param | string | Nein |
| request_id | string | Nein |
401
Schema
| Feld | Typ | Pflicht |
|---|---|---|
| error | object | Ja |
error
| Feld | Typ | Pflicht |
|---|---|---|
| type | string | Nein |
| code | string | Nein |
| message | string | Nein |
| param | string | Nein |
| request_id | string | Nein |
413
Schema
| Feld | Typ | Pflicht |
|---|---|---|
| error | object | Ja |
error
| Feld | Typ | Pflicht |
|---|---|---|
| type | string | Nein |
| code | string | Nein |
| message | string | Nein |
| param | string | Nein |
| request_id | string | Nein |
422
Schema
| Feld | Typ | Pflicht |
|---|---|---|
| error | object | Ja |
error
| Feld | Typ | Pflicht |
|---|---|---|
| type | string | Nein |
| code | string | Nein |
| message | string | Nein |
| param | string | Nein |
| request_id | string | Nein |
503
Schema
| Feld | Typ | Pflicht |
|---|---|---|
| error | object | Ja |
error
| Feld | Typ | Pflicht |
|---|---|---|
| type | string | Nein |
| code | string | Nein |
| message | string | Nein |
| param | string | Nein |
| request_id | string | Nein |
curl -s -X POST "https://strike-ai.eu/v1/traces" \
-H "Authorization: Bearer $STRIKE_API_KEY" \
-H "Content-Type: application/json" \
-d ''Ausprobieren
Ruft unseren Server-Proxy auf. Füg deinen API-Key nur hier ein: Er bleibt in diesem Tab und wird weder gespeichert noch an Analytics gesendet. Leer lassen, um den Proxy-Key des Playgrounds zu nutzen.
Fehler
| Status | Code | Bedeutung |
|---|---|---|
| 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. |