API reference

Get account

Your account and current credit balance. A cheap way to check that a key works.

GET https://app.cookstudio.ai/api/v1/me

Request

curl https://app.cookstudio.ai/api/v1/me -H "Authorization: Bearer $KEY"

Response

{"object": "account", "id": "3f2a…", "email": "you@example.com", "credits": 1240}

Errors

StatusCodeMeaning
401unauthorizedMissing, wrong or revoked key.

All errors share one shape; see Errors.