GET
Not offered (no server-to-client stream)

Authorizations

Authorization
string
header
required

Authorization: Bearer twk_<prefix>_<secret>.

The prefix is public and safe to log: it is what identifies which credential leaked. The secret is never logged, never returned after creation, and stored only as a SHA-256 hash.

Response

405 - application/json

Method not allowed.

The body of every 4xx and 5xx response under /api/v1, except the SCIM endpoints, which answer in the RFC 7644 error format. Some endpoints add fields of their own (supported_formats, retry_after, max_bytes).

error
string
required

A sentence for a person. Not stable; do not parse it.

code
enum<string>
required

The stable, machine-readable reason for a refusal. Branch on this, never on the error text, which is free to change. The first fourteen are the default for their status (validation_failed 400, unauthorized 401, payment_required 402, forbidden 403, not_found 404, method_not_allowed 405, conflict 409, payload_too_large 413, unprocessable 422, rate_limited 429, internal_error 500, not_implemented 501, upstream_failed 502, unavailable 503); the rest name one specific rule. New codes may be added; treat an unknown code as its status.

Available options:
validation_failed,
unauthorized,
payment_required,
forbidden,
not_found,
method_not_allowed,
conflict,
payload_too_large,
unprocessable,
rate_limited,
internal_error,
not_implemented,
upstream_failed,
unavailable,
email_not_verified,
sso_required,
mfa_required,
mfa_enrollment_required,
weak_password,
invalid_reset_link,
current_password_incorrect,
no_password,
mail_unavailable,
organization_changed,
reason_required,
no_support_consent,
step_up_required,
audit_unavailable,
dast_target_not_verified,
dast_scan_in_progress,
dast_target_exists,
dast_engine_unavailable,
scan_already_finished,
product_not_entitled,
demo_read_only,
ip_not_allowed
required_scope
string

Present on a 403 from a scope check.

principal
enum<string>

Present on a 403 from a scope check: whose permission fell short. workload is a workload or agent credential.

Available options:
user,
api_key,
workload