Get the calling account
Return the account behind this API key.
Return the account behind this API key.
Five fields deserve a word, because each of them is easy to read wrongly:
concurrency.maxismin(org_limit, agent_limit). The per-agent limit only holds calls back when it is below the organisation's limit.concurrency.enforcedsays whether the limits hold calls back at all. When it is false nothing is held back, so the numbers above it are informational.concurrency.currentis the live count of calls holding a line. If it cannot be read just then it reports 0 rather than failing the request.wallet.balanceis always computed as allocated minus spent.wallet.uses_parent_creditsis true for a sub-account that runs on its parent organization's credits. Its calls are then charged to the parent's balance, sowallet.balance(its own wallet) can read zero while it calls;wallet.spent_this_monthandwallet.monthly_limitsay where it stands.
Errors: 401 (invalid key), 403 (wrong organization), 429 (rate limited), 503 (account details could not be read; retry).
Rate limit: 2000 requests per minute per organization, counted together with every endpoint that has no stricter limit of its own. Exceeding it returns 429 with Retry-After; the X-RateLimit-* response headers report your remaining allowance on every call.
v2/user/meAuthorization
AuthorizationRequiredBearer <token>
Your Graine API key. Create one in the dashboard under Developers, or via POST /v2/api-keys. Send it as Authorization: Bearer <key>.
In: header
Query Parameters
organization_idOrganization Id
Optional. Must equal the API key's own organization; any other value is rejected.
Response Body
200
Identity, plan, concurrency capacity, wallet balance and rate limits.
organization_idRequiredOrganization Id
The organization the calling key belongs to.
developerRequiredDeveloper
Who this key belongs to.
planRequiredPlan
Commercial plan the organization is on.
rate_limit_tierRequiredRate Limit Tier
Tier the request ceilings are drawn from.
concurrencyRequiredConcurrency
Simultaneous-call capacity, and how much of it is in use.
walletRequiredWallet
Prepaid credit balance.
rate_limitsRequiredRate Limits
Request ceilings applied to this organization.
401
1100 — missing, unknown or inactive API key. 1101 — a browser session token was presented instead of an API key.
errorRequiredError
Stable integer code from the /v2 error table. Branch on this.
messageRequiredMessage
One human-readable sentence. Wording may change; the code will not.
403
1102 — the key is valid but lacks the scope this endpoint requires, or names another organization. GET /v2/scopes reports what a key holds.
errorRequiredError
Stable integer code from the /v2 error table. Branch on this.
messageRequiredMessage
One human-readable sentence. Wording may change; the code will not.
422
1001 — the body or query failed validation; the message names the first offending field.
errorRequiredinteger
Stable integer code from the error table. Branch on this, not on the message.
messageRequiredstring
One human-readable sentence. Wording may change; the code will not.
429
1300 — the per-organization request rate or concurrent-call limit was reached. Carries Retry-After.
errorRequiredError
Stable integer code from the /v2 error table. Branch on this.
messageRequiredMessage
One human-readable sentence. Wording may change; the code will not.
503
1501 — a service this endpoint depends on is unreachable or returned a 5xx.
errorRequiredError
Stable integer code from the /v2 error table. Branch on this.
messageRequiredMessage
One human-readable sentence. Wording may change; the code will not.
Identity, plan, concurrency capacity, wallet balance and rate limits.

