Skip to main content
POST
Run Playground with saved model

Authorizations

apikey
string
header
required

Headers

X-Enkrypt-Model
string
required

The model saved name. E.g. Test Model

Example:

"Test Model"

X-Enkrypt-Model-Version
string
required

The model version. Default is 'v1'

Example:

"v1"

Body

application/json

POST /v1/playground payload.

Single-goal ad-hoc probe. No category scaffolding, no generation. attack_config lives top-level (not under categories).

target is omitted: the saved model named in the X-Enkrypt-Model / X-Enkrypt-Model-Version headers supplies it.

goal
string
required
attack_config
Attack Config · object
required
context
Context · object | null
user_metadata
User Metadata · object | null
run_id
string<uuid> | null

Optional caller-chosen run id (UUID). The response only names the job once the probe has finished, so supply one here to open the log websocket on play-<run_id> before submitting. Returns 409 if the id is already in use — retry with a fresh UUID. Omit it and the service generates one.

Response

Successful Response

The response is of type Response Run Playground With Saved Model · object.