Skip to creators
Docs menu

Account

Besday Account API: check which brand, scope and team member an API key acts as, and the current credit balance.

Updated · API version 2026-12-03

Use the account endpoint to confirm a key works and see who it acts as.

The account object#

Who the API key acts for: the brand, the key, and the team member who created it.

FieldDescription
object
string
Always account.
account
brand
object
{ id, name, website }.
api_key
object
{ id, scope } of the key used.
acting_as
object
{ user_id, email, role }: the team member the key acts as, with their current role.
credits
object
{ balance_credits, spending_paused }.
Example account
{
  "object": "account",
  "brand": {
    "id": "ba_2d61f0",
    "name": "Glow Lab",
    "website": "https://glowlab.example"
  },
  "api_key": {
    "id": "key_8b2e44c1",
    "scope": "read_write"
  },
  "acting_as": {
    "user_id": "usr_51c9aa",
    "email": "ops@glowlab.example",
    "role": "admin"
  },
  "credits": {
    "balance_credits": 500,
    "spending_paused": false
  }
}

Retrieve the account#

GET/api/v1/mescope: read

Check a key: returns the brand, the key’s scope, the team member it acts as, and the credit balance.

Request

curl "https://besday.com/api/v1/me" \
  -H "Authorization: Bearer $BESDAY_API_KEY"

Response 200

{
  "object": "account",
  "brand": {
    "id": "ba_2d61f0",
    "name": "Glow Lab",
    "website": "https://glowlab.example"
  },
  "api_key": {
    "id": "key_8b2e44c1",
    "scope": "read_write"
  },
  "acting_as": {
    "user_id": "usr_51c9aa",
    "email": "ops@glowlab.example",
    "role": "admin"
  },
  "credits": {
    "balance_credits": 500,
    "spending_paused": false
  }
}

Errors

  • 401 api_key_missing: No Authorization: Bearer header was sent.
  • 401 api_key_invalid: The key is malformed, unknown or revoked, or its team member, brand or account is no longer active.
  • 429 rate_limited: Too many requests. Retry after the seconds in the Retry-After header.

This page as Markdown: /docs/api/account.md · All docs for LLMs: llms-full.txt · OpenAPI 3.1