API reference
Account
The key you are calling with and the workspace it belongs to.
GET /me
The calling key
What the API knows about the key you sent: its label, scopes, allowlist and expiry, and the workspace it belongs to with its plan. workspace.id is the id webhook events carry as workspace_id. A key follows the role of the teammate who made it: key.maker says what that role holds back now (the keys of a teammate who left the workspace are revoked, or answer 401 key_maker_left). A cheap first call.
Any key
Returns Me
api_versionrequiredstringApi Version
keyrequiredKeyInfoworkspacerequiredWorkspaceInfo
Responses
200Successful Response401Missing, invalid, revoked or expired key. Leaving the workspace, or being removed from it, revokes the keys a teammate made; a key whose maker's membership ended any other way answerskey_maker_left.403The plan has no API, the key lacks the scope, or the role of the teammate who made the key no longer allows it (maker_role_limit; a publishable key saysinsufficient_scope).404Nothing by that id in this workspace.413The request body is larger than this route accepts (1 MB; 3 MB for a text source). On a source:plan_text_limit, the agent's plan cannot hold more text (limit_chars,used_chars).422The request did not validate;detailslists the fields.429Rate limit reached; waitRetry-Afterseconds.500Our fault; quoterequest_idto support.
curl https://www.bidii.ai/api/v2/me \
-H "Authorization: Bearer bidi_sk_YOUR_KEY"