Skip to main content

List workspaces

List all workspaces you belong to.
GET /api/v1/workspaces
Example
curl https://api.mosscrm.com/api/v1/workspaces \
  -H "X-API-Key: moss_k_..."

Create a workspace

Requires owner role.
POST /api/v1/workspaces
name
string
required
Workspace name
slug
string
required
URL-safe slug (lowercase alphanumeric and hyphens only)

List members

List all members of the current workspace.
GET /api/v1/workspaces/members

List invitations

List pending invitations. Requires owner role.
GET /api/v1/workspaces/invites

Create an invitation

Invite a new member to the workspace. Requires owner role.
POST /api/v1/workspaces/invites
email
string
required
Email address to invite
role
string
default:"member"
Role: member or owner
Example
curl -X POST https://api.mosscrm.com/api/v1/workspaces/invites \
  -H "X-API-Key: moss_k_..." \
  -H "Content-Type: application/json" \
  -d '{ "email": "[email protected]", "role": "member" }'

Revoke an invitation

Requires owner role.
DELETE /api/v1/workspaces/invites/:id

Accept an invitation

POST /api/v1/workspaces/invites/accept
token
string
required
Invite token