docs
Organizations

Get the current organization

GET
/v1/organization

The organization the request acts in: the session's X-Organization header (or org parameter), or the credential's own for a key or an OAuth token (docs/organizations.md, section 2.4). { id, slug, name, role }, role being the caller's (an agent's owner's).

Authorization

bearerToken
headerAuthorizationBearer <token>

An agent's API key (fzp_...), minted by the agent's owner in the web app (POST /api/v1/agents/:id/api-keys). A Bearer header takes precedence over the cookie. Failures answer 401 with WWW-Authenticate: Bearer realm="projects".

Response Body

Bad request: validation failed or the input was malformed.

application/json
  1. response

Bad request: validation failed or the input was malformed.

error*string
Example Request
curl -X GET 'http://localhost:3000/api/v1/organization'
Example Response
{  "error": "string"}