Organizations API
Multi-tenant organization management, invitations, and membership endpoints.
List User Organizations
GET
/api/organizationsGet all organizations the authenticated user belongs to.
Response (200 OK)
Get Organization
GET
/api/organizations/:orgIdGet details for a specific organization.
Response (200 OK)
Create Organization
POST
/api/organizationsCreate a new organization. User becomes admin.
Request Body
Response (201 Created)
Update Organization
PATCH
/api/organizations/:orgIdUpdate organization details. Requires admin role.
Request Body
Response (200 OK)
List Organization Members
GET
/api/organizations/:orgId/membersResponse (200 OK)
Invite Member
POST
/api/organizations/:orgId/invitesSend invitation email. Requires admin role.
Request Body
Response (201 Created)
Accept Invitation
POST
/api/invites/:inviteId/acceptResponse (200 OK)
Update Member Role
PATCH
/api/organizations/:orgId/members/:memberIdChange member role. Requires admin role.
Request Body
Response (200 OK)
Remove Member
DELETE
/api/organizations/:orgId/members/:memberIdRemove member from organization. Requires admin role.
Response (200 OK)
Delete Organization
DELETE
/api/organizations/:orgIdPermanently delete organization. Requires owner role.
Request Body
Response (200 OK)