Base path
All endpoints are rooted at/orgs.
Authentication
Every endpoint requires a JWT bearer token unless noted otherwise.Authorization header on every request.
Role-based access
Most endpoints are gated by the requesting user’s role within the target organization. Roles are assigned per-organization and are enforced server-side.Roles are scoped to a single organization. A user can hold different roles in different organizations simultaneously.
Endpoints
Create organization
POST /orgs — Create a new organization.Get organization
GET /orgs/:orgId — Retrieve details for a specific organization.List organizations
GET /orgs — List all organizations the authenticated user belongs to.Update organization
PUT /orgs/:orgId — Update organization details.Delete organization
DELETE /orgs/:orgId — Permanently delete an organization.List organization DIDs
GET /orgs/:orgId/dids — List all DIDs registered to an organization.Set primary DID
PUT /orgs/:orgId/primary-did — Designate a DID as the primary identifier.Send invitations
POST /orgs/:orgId/invitations — Invite one or more users to the organization.List invitations
GET /orgs/:orgId/invitations — List all pending invitations.Delete invitation
DELETE /orgs/:orgId/invitations/:invitationId — Cancel a pending invitation.Update user roles
PUT /orgs/:orgId/user-roles/:userId — Change a member’s roles.Generate client credentials
POST /orgs/:orgId/client_credentials — Generate a client ID and secret for machine-to-machine access.Get client token
POST /orgs/:clientId/token — Exchange client credentials for an access token.Get org roles
GET /orgs/:orgId/roles — Retrieve all role definitions for an organization.