API Reference
API Key object
A Standard API key that can authenticate RunAPI requests. Its plaintext value is not part of this reusable object.
A Standard API key that can authenticate RunAPI requests. Its plaintext value is not part of this reusable object.
03
JSON bodyObject fields
Stable fields shared by the resource's reusable object.
API Keys10 fields
allowed_modelsarray | null
Required
Optional model allowlist.
created_atstring
Required
Time the key was created.
credit_limit_centsinteger | null
Required
Optional key spending cap in USD cents.
credit_limit_reset_intervalstring | null
Required
Optional key spending-cap reset cadence.
Allowed values:daily, weekly, monthly, null
enabledboolean
Required
Whether the key can authenticate requests.
guardrail_idstring | null
Required
Attached guardrail prefix ID
idstring
Required
API key prefix ID.
last_used_atstring | null
Required
Time the key was last used
masked_tokenstring
Required
Masked API key value.
namestring
Required
Friendly API key name.
02