Skip to content

Get current API key context

View .md
GET

Returns the project, team, and API key metadata bound to the current Bearer token. Used by CLIs and SDKs to confirm which project they will operate on.

Authorization

  • Authorizationheaderrequired

    Bearer YOUR_API_KEY. Create a key in the dashboard.

Responses

200Context for the API key.
  • projectobjectrequired
    3 properties
    • idstringrequired
    • namestringrequirednullable
    • isSubAccountbooleanrequired
  • teamobjectrequired
    2 properties
    • idstringrequired
    • namestringrequirednullable
  • apiKeyobjectrequired
    1 properties
    • idstringrequired
  • isTestModebooleanrequired
401Unauthorized.
  • codestringrequired
  • messagestringrequired
  • detailsobject