Reference / Organizations

Switch the current end-user session into this organization (org switching in tokens). Returns a fresh access token carrying the `org`/`org_role` claims. Requires an end-user access token.

POST /v1/organizations/{id}/activate
Secret API key operationId: activate

Authorization

Server-to-server. Send a secret key as a Bearer token plus the x-application-id header.

Path parameters

  • id string<uuid> required

    Organization id to switch into

Responses

200 Switched
{
  "data": {
    "access_token": "string",
    "expires_at": "2026-01-15T09:30:00Z",
    "organization_id": "018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f",
    "role": "string"
  },
  "error": {
    "code": "string",
    "message": "string"
  },
  "meta": {
    "timestamp": "string"
  },
  "success": false
}
401 No end-user session
403 Not a member of the organization

Request

curl -X POST "http://localhost:8080/v1/organizations/018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f/activate" \

Try it

live request
POST http://localhost:8080/v1/organizations/018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f/activate

Path parameters