discovery

Switch the signed-in session's active organization

Session only — an API key already resolves to exactly one organization and cannot switch. The caller must already be a member of the target organization (403 forbidden otherwise). Every subsequent /v1 call on this session scopes to the new organization.

post/v1/me/active-organization

Request

  • Base URL: https://postbag.dev
  • URL: https://postbag.dev/v1/me/active-organization
  • Auth: HTTP bearer

Request body

organization_idstring required

Response

ok

Example response

{
  "organization": {
    "id": "fm_8f3kq2"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.