Cette page est en anglais.
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.
Paramètres
| Nom | Dans | Obligatoire |
|---|---|---|
| Authorization | header | Oui |
Corps de la requête
Schema
| Champ | Type | Obligatoire |
|---|---|---|
| project | string | Oui |
| sdk | string | Non |
| spans | array of object | Oui |
Réponses
202
Accepted.
400
Schema
| Champ | Type | Obligatoire |
|---|---|---|
| error | object | Oui |
error
| Champ | Type | Obligatoire |
|---|---|---|
| type | string | Non |
| code | string | Non |
| message | string | Non |
| param | string | Non |
| request_id | string | Non |
401
Schema
| Champ | Type | Obligatoire |
|---|---|---|
| error | object | Oui |
error
| Champ | Type | Obligatoire |
|---|---|---|
| type | string | Non |
| code | string | Non |
| message | string | Non |
| param | string | Non |
| request_id | string | Non |
413
Schema
| Champ | Type | Obligatoire |
|---|---|---|
| error | object | Oui |
error
| Champ | Type | Obligatoire |
|---|---|---|
| type | string | Non |
| code | string | Non |
| message | string | Non |
| param | string | Non |
| request_id | string | Non |
422
Schema
| Champ | Type | Obligatoire |
|---|---|---|
| error | object | Oui |
error
| Champ | Type | Obligatoire |
|---|---|---|
| type | string | Non |
| code | string | Non |
| message | string | Non |
| param | string | Non |
| request_id | string | Non |
503
Schema
| Champ | Type | Obligatoire |
|---|---|---|
| error | object | Oui |
error
| Champ | Type | Obligatoire |
|---|---|---|
| type | string | Non |
| code | string | Non |
| message | string | Non |
| param | string | Non |
| request_id | string | Non |
curl -s -X POST "https://strike-ai.eu/v1/traces" \
-H "Authorization: Bearer $STRIKE_API_KEY" \
-H "Content-Type: application/json" \
-d ''Essayer
Appelle notre proxy serveur. Ne collez votre clé API qu’ici : elle reste dans cet onglet, n’est ni stockée ni envoyée à l’analytics. Laissez vide pour utiliser la clé du proxy du playground.
Erreurs
| Statut | Code | Signification |
|---|---|---|
| 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. |