curl --request POST \
--url https://api.worktruck.app/api/v1/agent-configs/validate-key \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"api_key": "<string>"
}
'{
"status": "valid"
}curl --request POST \
--url https://api.worktruck.app/api/v1/agent-configs/validate-key \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"api_key": "<string>"
}
'{
"status": "valid"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request body for POST /agent-configs/validate-key and
PUT /agent-configs/{blueprint}/byok-key. Shared because both endpoints
just take a raw provider API key.
Plaintext Anthropic API key. Transported over TLS + never logged.
Probe result
Outcome of a single probe call. A probe is a write-time best-effort
check, not a guarantee — a key that probes Valid can still be
revoked before the next real request.
Serializes as an externally-tagged enum so the wire form is either
{"status":"valid"} or {"status":"invalid","category":"...","message":"..."}.
valid Was this page helpful?