Zum Hauptinhalt springen
StrikeStrike
API

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

NameOrtPflicht
AuthorizationheaderJa

Anfragekörper

Schema

FeldTypPflicht
projectstringJa
sdkstringNein
spansarray of objectJa

Antworten

202

Accepted.

400

Schema

FeldTypPflicht
errorobjectJa

error

FeldTypPflicht
typestringNein
codestringNein
messagestringNein
paramstringNein
request_idstringNein

401

Schema

FeldTypPflicht
errorobjectJa

error

FeldTypPflicht
typestringNein
codestringNein
messagestringNein
paramstringNein
request_idstringNein

413

Schema

FeldTypPflicht
errorobjectJa

error

FeldTypPflicht
typestringNein
codestringNein
messagestringNein
paramstringNein
request_idstringNein

422

Schema

FeldTypPflicht
errorobjectJa

error

FeldTypPflicht
typestringNein
codestringNein
messagestringNein
paramstringNein
request_idstringNein

503

Schema

FeldTypPflicht
errorobjectJa

error

FeldTypPflicht
typestringNein
codestringNein
messagestringNein
paramstringNein
request_idstringNein
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

StatusCodeBedeutung
401authentication_errorMissing or invalid Bearer API key.
422validation_errorRequest body failed schema or business validation.
413payload_too_largeRequest body or state exceeds size limits.
503model_warmingInference worker is starting (strike-1). Retry with backoff.