Atmee.aiDocs
APIAPI referenceAccount

The credential making this call

GET
/v1/api_keys/current

For an API key (kind: api_key): its name, scopes, the avatar it is restricted to, its billing mode, its own session caps and how much of its spend cap the current window has used. The secret is never returned. spendCap.enforced is false when the cap is not applied (an unlimited plan, or billing switched off); windowResetsAt is absent for a cap over the key's whole life (window: total), and limitMicrocredits and remainingMicrocredits are absent when the key has no cap (spentMicrocredits is still reported).

For a signed-in user (kind: user): the user and the account it acts for; a user has no key, no scopes beyond the avatar ones and no spend cap.

Readable by the same callers as GET /v1/account/balance.

Authorization

headerX-Api-Key<token>

Secret embed API key (sk_atmee_...; keys minted before 2026-09 carry sk_live_...), held by the customer's own backend and never sent to a browser. Format: X-Api-Key: sk_atmee_....

Response Body

The caller.

application/json
  1. response

kind: api_key carries every field but userId; kind: user carries only kind, userId and accountId.

kind*string
Value in"api_key""user"
accountId*string
userId?string

Only for kind user.

id?string

The key's id (kind api_key).

name?string
scopes?array<string>
avatarId?string

The one avatar an avatar-scoped key may use; absent for an account-wide key.

billingMode?string

reserve or metered.

active?boolean
spendCap?
maxSessionSeconds?integer

The key's own cap on a session's length; absent = the plan's.

maxConcurrentSessions?integer

The key's own cap on sessions at once; absent = the plan's.

Example Request
curl -X GET 'https://api.atmanity.us/v1/api_keys/current'
Example Response
{  "kind": "api_key",  "accountId": "string",  "userId": "string",  "id": "string",  "name": "string",  "scopes": [    "string"  ],  "avatarId": "string",  "billingMode": "string",  "active": true,  "spendCap": {    "limitMicrocredits": 0,    "window": "string",    "spentMicrocredits": 0,    "remainingMicrocredits": 0,    "windowResetsAt": "2019-08-24T14:15:22Z",    "enforced": true  },  "maxSessionSeconds": 0,  "maxConcurrentSessions": 0}
The credential making this call — Atmee Docs