Get the calling account
Return the account behind this API key.
Return the account behind this API key.
Four fields deserve a word, because each of them is easy to publish wrongly:
concurrency.maxismin(org_limit, agent_limit). The per-agent level only GATES when it is below the org limit; above that its effective cap is a billion and it is tracking-only.concurrency.enforcedis theconcurrency_management_enabledfeature flag. When it is false the caps are raised to a million internally and nothing blocks, so the numbers above it are informational.concurrency.currentis a live read of the exact counter the dial gate consults. If that counter cannot be reached it degrades to 0 rather than failing the request.wallet.balanceis derived as allocated minus spent, never read from the storedremaining_usdmirror — that mirror has drifted negative in production and wrongly failed the pre-call credit gate.
Errors: 401 (invalid key), 403 (wrong organization), 429 (rate limited), 503 (the account store is unreachable).
Rate limit: 1000 requests per minute per organization (bucket default). 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.

