Create API key
/v1/keysCreate a new Token360 inference API key.
The raw API key is returned once in the key field. Store it securely; later responses only include the key hash.
Authentication
Authorization Bearer
Use either a Token360 API key (sk-token360-...) or a signed-in user JWT.
Request Body
namestringrequiredName for the new API key.
workspace_idstringWorkspace code. Defaults to DEFAULT.
expires_atstring | nullOptional UTC ISO-8601 expiration timestamp, such as 2029-11-30T23:59:59Z. Non-UTC offsets are rejected.
creator_user_idstring | nullCompatibility field. Key ownership is assigned to the authenticated account.
limitnumber | nullOptional USD spend limit. Persisted and enforced on authentication (code 006 when exhausted).
limit_resetstring | nullOptional reset interval: daily, weekly, monthly, or null for lifetime. Resets at midnight UTC; weeks are Mon–Sun.
Response
keystringRaw API key, shown only once.
dataobjectCreated API key details.
data.hashstringHash identifier used by management endpoints.
data.namestringAPI key name.
data.labelstringHuman-readable label. Matches name.
data.disabledbooleanTrue when the key status is not ACTIVE or expires_at is in the past.
data.workspace_idstringWorkspace code for the key.
data.creator_user_idstring | nullOwner user ID.
data.created_atstringCreate timestamp in UTC ISO-8601 format.
data.updated_atstring | nullLast update timestamp.
data.expires_atstring | nullUTC expiration timestamp, or null.
data.usagenumberTotal Token360 credit usage in USD.
data.usage_dailynumberCredits used in the current UTC day.
data.usage_weeklynumberCredits used in the current UTC week (Mon–Sun).
data.usage_monthlynumberCredits used in the current UTC month.
data.limitnumber | nullConfigured USD spend limit, or null if unlimited.
data.limit_remainingnumber | nullRemaining credits in the current limit window, or null if unlimited.
data.limit_resetstring | nulldaily | weekly | monthly | null (lifetime).
data.is_free_tierbooleanCurrently false.
data.is_management_keybooleanCurrently true for these management responses.
data.is_provisioning_keybooleanCurrently false.
data.rate_limitobjectPer-minute request limit metadata.