REST API
Organizations
Each user belongs to exactly one organization. Organizations group projects, members, and billing. All endpoints require a JWT session.
GET
/organizations/meRetrieve the organization associated with the authenticated session.
Auth:JWT Session (cookie)
PATCH
/organizations/meUpdate the name or plan of the current organization.
Auth:JWT Session (cookie)
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
name | string | optional | New organization display name. |
plan | "free" | "pro" | "enterprise" | optional | Subscription plan. |
GET
/organizations/membersList all members of the current organization with their user profiles and roles.
Auth:JWT Session (cookie)
POST
/organizations/:orgId/membersAdd a user to the organization by their user ID. Requires OWNER role.
Auth:JWT Session (cookie)
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
orgId | string | required | Organization ID. |
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
userId | string | required | ID of the user to add. |
role | "OWNER" | "MEMBER" | optional | Member role. Defaults to MEMBER. |