PUT
Turn Ask AI on or off for the organization

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.

Body

application/json
enabled
boolean
store_questions
boolean

Response

The status after the change.

available
boolean
required
configured
boolean
required
entitled
boolean
required
enabled
boolean
required
store_questions
boolean
required
can_manage
boolean
required
tokens_used
integer<int64>
required

This calendar month (UTC), input plus output.

monthly_tokens
integer<int64>
required

ASSISTANT_MONTHLY_TOKENS, the deployment's safety ceiling on the platform key. 0 admits no question (the assistant is off). -1 is no limit.

requests_per_minute
integer
required
reason
enum<string>
Available options:
not_configured,
not_entitled,
disabled,
budget_exhausted,
overage_cap_reached,
byok_not_entitled
message
string
model
string
key_source
enum<string>
Available options:
platform,
byok
byok
object

All anyone is shown of an organization's own Anthropic key.

credits
object

The month's AI credits on the platform key (calendar month, UTC). 1 credit = US$0.01 of list price.