Run Leaderboard with saved model
Identical to POST /rt/leaderboard, except the system under test is a saved model named in the X-Enkrypt-Model / X-Enkrypt-Model-Version headers instead of an inline target. The gateway resolves the model and fills in target before the request reaches the Red Team service.
Internal API. Calling it requires an
@enkryptai.comor@anaconda.comaccount; every other key receives403. To have a model added to the public leaderboard, contact dkumar@anaconda.com.
Saved models that reach their provider through a custom cURL command, custom headers/payload/response format, JWT auth, provider-specific auth_data or metadata, or an outbound proxy have no equivalent in the target shape and return 400. Use an inline target on POST /rt/leaderboard for those.
Authorizations
Headers
The model saved name. E.g. Test Model
"Test Model"
The model version. Default is 'v1'
"v1"
Body
POST /v1/leaderboard payload.
Frozen recipe: corpus, attacks, and judge are not caller-configurable — that is what keeps scores comparable between models.
target is omitted: the saved model named in the X-Enkrypt-Model / X-Enkrypt-Model-Version headers supplies it.
Response
Successful Response
The accepted run. run_id is the value to carry into the run endpoints (GET /rt/runs/{run_id}, /records, /results, /stream).
Do not follow the *_url fields verbatim. They are relative and are not guaranteed to carry the /rt/ prefix this API is published under, so requesting one as given can return 400. Build the URL from run_id and the paths documented here instead - /rt/runs/{run_id}/records is the resource you want. The same applies to records_url on the results payload.
websocket_url is the Server-Sent Events progress stream (/rt/runs/{run_id}/stream) despite its name. The live log socket is logs_url - a relative path to join onto wss://api.enkryptai.com/wss/redteam/v1/logs/tasks/. See the Stream Run Logs (WebSocket) endpoint.

