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.
Object fields
Stable fields shared by the resource's reusable object.
API Keys17 fields
allowed_modelsarray | nullOptional model allowlist.
created_atstringTime the key was created.
credit_limit_centsinteger | nullOptional key spending cap in USD cents.
credit_limit_reset_intervalstring | nullOptional key spending-cap reset cadence.
Allowed values:daily, weekly, monthly, null
credit_limit_windowscredit_limit_windowsRolling spending caps keyed by supported window duration.
credit_limit_windows.1dcredit_limit_windowcredit_limit_windows.1d.limit_centsintegerSpending cap for this rolling window in USD cents.
credit_limit_windows.1hcredit_limit_windowcredit_limit_windows.1h.limit_centsintegerSpending cap for this rolling window in USD cents.
credit_limit_windows.7dcredit_limit_windowcredit_limit_windows.7d.limit_centsintegerSpending cap for this rolling window in USD cents.
enabledbooleanWhether the key can authenticate requests.
guardrail_idstring | nullAttached guardrail prefix ID
idstringAPI key prefix ID.
last_used_atstring | nullTime the key was last used
masked_tokenstringMasked API key value.
namestringFriendly API key name.