Skip to main content
Source: equa-server/modules/api/src/endpoints/organization-endpoints.ts

Organization Endpoints

Endpoints for creating and managing organizations, members, roles, addresses, emails, branches, authorizations, and tasks. All organization endpoints require authentication. Most require specific RBAC permissions scoped to the organization.

Organizations

Create Organization

POST /v1/organization
FieldValue
AuthRequired
Create a new organization. The authenticated user becomes the owner. Request:
{
  "name": "Acme Inc.",
  "type": "corporation"
}

List User Organizations

GET /v1/organization
FieldValue
AuthRequired
List all organizations the authenticated user belongs to.

Get Organization

GET /v1/organization/:organization
FieldValue
AuthRequired
PermissioncanViewOrganization
Get details for a specific organization.

Update Organization

PATCH /v1/organization/:organization
FieldValue
AuthRequired
PermissioncanEditOrganization
Update organization settings.

Get Organization Dashboard

GET /v1/organization/:organization/dashboard
FieldValue
AuthRequired
PermissioncanViewOrganization
Get summary statistics for the organization dashboard.

Get User Permissions

GET /v1/organization/:organization/user/:user
FieldValue
AuthRequired
Get the permissions a specific user has within an organization.

Members

List Members

GET /v1/organization/:organization/member
FieldValue
AuthRequired
PermissioncanViewSomeMembers
List all members of an organization.

Get Member

GET /v1/organization/:organization/member/:member
FieldValue
AuthRequired
PermissioncanViewMember
Get details for a specific member.

Add Member

POST /v1/organization/:organization/member
FieldValue
AuthRequired
PermissioncanEditMembers
Add a new member to the organization.

Invite Members

POST /v1/organization/:organization/member/invite
FieldValue
AuthRequired
PermissioncanEditMembers
Send email invitations to one or more people to join the organization. Request:
{
  "emails": ["alice@example.com", "bob@example.com"]
}

Update Member

PATCH /v1/organization/:organization/member/:member
FieldValue
AuthRequired
PermissioncanEditOrganization
Update a member’s details or role.

Remove Member

DELETE /v1/organization/:organization/member/:member
FieldValue
AuthRequired
PermissioncanEditOrganization
Remove a member from the organization by member ID.

Remove Member by User

DELETE /v1/organization/:organization/user/:user
FieldValue
AuthRequired
PermissioncanEditOrganization
Remove a member from the organization by user ID.

Get Member Limit

GET /v1/organization/:organization/structure/member/limit
FieldValue
AuthRequired
PermissioncanViewMembers
Get the member limit for the organization based on the current subscription plan.

Get Entity Members

GET /v1/entity/:entity/member
FieldValue
AuthRequired
Get members associated with a specific entity.

Roles

Create Role

POST /v1/organization/:organization/role
FieldValue
AuthRequired
PermissioncanEditMembers

List Roles

GET /v1/organization/:organization/role
FieldValue
AuthRequired
PermissioncanViewMembers

Get Role

GET /v1/organization/:organization/role/:role
FieldValue
AuthRequired
PermissioncanViewMembers

Update Role

PUT /v1/organization/:organization/role/:role
FieldValue
AuthRequired
PermissioncanEditMembers

Delete Role

DELETE /v1/organization/:organization/role/:role
FieldValue
AuthRequired
PermissioncanEditMembers

Assign Role to Member

PUT /v1/organization/:organization/role/:role/member
FieldValue
AuthRequired
PermissioncanEditMembers

Authorizations

List Authorizations

GET /v1/authorization
FieldValue
AuthRequired

Create Authorization

POST /v1/organization/:organization/authorization
FieldValue
AuthRequired

Delete Authorization

DELETE /v1/organization/:organization/authorization/:authorization
FieldValue
AuthRequired
PermissioncanEditCapTable

Branches

Create/Update Branch

PUT /v1/organization/:organization/branch/:branch
FieldValue
AuthRequired
PermissioncanEditCapTable

Get Branch

GET /v1/organization/:organization/branch/:branch
FieldValue
AuthRequired
PermissioncanViewOrganization

List Branches

GET /v1/organization/:organization/branch
FieldValue
AuthRequired
PermissioncanViewOrganization

Addresses

Create Address

POST /v1/entity/:entity/address
FieldValue
AuthRequired
PermissioncanEditEntityAddress

Update Address

PUT /v1/entity/:entity/address/:address
FieldValue
AuthRequired
PermissioncanEditEntityAddress

Delete Address

DELETE /v1/entity/:entity/address/:address
FieldValue
AuthRequired
PermissioncanEditEntityAddress

List Addresses

GET /v1/entity/:entity/address
FieldValue
AuthRequired
PermissioncanViewEntityAddress

Get Address

GET /v1/entity/:entity/address/:address
FieldValue
AuthRequired
PermissioncanViewEntityAddress

Emails

Create Email

POST /v1/entity/:entity/email
FieldValue
AuthRequired
PermissioncanEditEntityAddress
Also syncs billing email addresses with Chargify.

Update Email

PUT /v1/entity/:entity/email/:email
FieldValue
AuthRequired
PermissioncanEditEntityAddress

Delete Email

DELETE /v1/entity/:entity/email/:email
FieldValue
AuthRequired
PermissioncanEditEntityAddress

Batch Create Emails

POST /v1/entity/:entity/email/many
FieldValue
AuthRequired
PermissioncanEditEntityAddress
Create multiple email records in a single request.

List Emails

GET /v1/entity/:entity/email
FieldValue
AuthRequired
PermissioncanViewEntityAddress

Get Email

GET /v1/entity/:entity/email/:email
FieldValue
AuthRequired
PermissioncanViewEntityAddress

Tasks

Update Task

PUT /v1/entity/:entity/task/:type
FieldValue
AuthRequired

Get Tasks

GET /v1/entity/:entity/task
FieldValue
AuthRequired

Files

Upload Organization Document

POST /v1/organization/:organization/file
FieldValue
AuthRequired
PermissioncanEditDocuments
Upload a file to the organization. Uses multipart/form-data. Max file size is configurable via AWS_S3_UPLOAD_SIZE_LIMIT_MB (default 10 MB).

Download File

GET /v1/file/:file/content
FieldValue
AuthRequired
PermissioncanViewFile
Download a file as an attachment.

View File Inline

GET /v1/file/:file/content/:name
FieldValue
AuthRequired
PermissioncanViewFile
View a file inline in the browser (Content-Disposition: inline).

Support

Contact Support

POST /v1/support/contact
FieldValue
AuthRequired
Send a support email from the authenticated user.