Skip to content

Project Collaborators ​

Collaborators let you invite other members of a Project's workspace onto that specific Project with a role, so they can see and act on it alongside you. This feature is only available on Projects that belong to a workspace — see the workspaceId field on Projects.

Roles ​

RoleDescription
ownerFull control, including managing other collaborators
adminCan invite, update roles, and remove other collaborators
memberDefault role for a new collaborator
viewerRead-only access to the Project

Inviting a collaborator or changing a collaborator's role requires the caller to already be an owner or admin collaborator on the Project. Any collaborator can remove themselves regardless of role.

Endpoints ​

MethodPathDescriptionAuth
GET/chainies/:chainyId/collaboratorsList collaborators on a ProjectJWT + Project access
POST/chainies/:chainyId/collaboratorsInvite a collaboratorJWT + Owner/Admin collaborator
PATCH/chainies/:chainyId/collaborators/:chainerIdUpdate a collaborator's roleJWT + Owner/Admin collaborator
DELETE/chainies/:chainyId/collaborators/:chainerIdRemove a collaboratorJWT + Owner/Admin collaborator, or self
GET/chainy-collaborators/mineList your own pending invitesJWT
POST/chainy-collaborators/acceptAccept a pending inviteJWT
POST/chainy-collaborators/declineDecline a pending inviteJWT

List Collaborators ​

Request ​

Use the id of a workspace-scoped Project as $CHAINY_ID.

Response ​

json
{
  "data": [
    {
      "chainerId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "role": "owner",
      "status": "accepted",
      "createdAt": "2026-03-17T10:00:00.000Z"
    },
    {
      "chainerId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "role": "member",
      "status": "pending",
      "createdAt": "2026-03-18T09:00:00.000Z"
    }
  ]
}

Code Examples ​

curl https://api.chainabit.com/api/v1/chainies/$CHAINY_ID/collaborators \
  -H "Authorization: Bearer $TOKEN"

Invite a Collaborator ​

The recipient must already be a member of the project’s owning workspace. Project owner or admin access lets you invite that member; it does not bypass workspace membership. Inviting a person outside the workspace returns 403.

Request ​

FieldTypeRequiredDescription
chainerIdstringYesID of the workspace member to invite
rolestringNoowner | admin | member | viewer. Defaults to member.

The target must be a member of the Project's workspace.

Response ​

json
{
  "data": {
    "id": "11111111-1111-4111-8111-111111111111",
    "chainerId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
    "role": "member",
    "status": "pending",
    "createdAt": "2026-03-18T09:00:00.000Z"
  }
}

Code Examples ​

curl -X POST https://api.chainabit.com/api/v1/chainies/$CHAINY_ID/collaborators \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "chainerId": "b2c3d4e5-f6a7-8901-bcde-f12345678901", "role": "member" }'

Update a Collaborator's Role ​

Request ​

FieldTypeRequiredDescription
rolestringYesowner | admin | member | viewer

Response ​

json
{
  "data": {
    "chainerId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
    "role": "admin",
    "updatedAt": "2026-03-18T10:00:00.000Z"
  }
}

Code Examples ​

curl -X PATCH https://api.chainabit.com/api/v1/chainies/$CHAINY_ID/collaborators/$CHAINER_ID \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "role": "admin" }'

Remove a Collaborator ​

Any collaborator can remove themselves; removing someone else requires owner or admin.

Request ​

Response ​

json
{
  "data": {
    "chainerId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
    "removedAt": "2026-03-18T11:00:00.000Z"
  }
}

Code Examples ​

curl -X DELETE https://api.chainabit.com/api/v1/chainies/$CHAINY_ID/collaborators/$CHAINER_ID \
  -H "Authorization: Bearer $TOKEN"

Your Pending Invites ​

These endpoints operate on the invitee's own inbox of pending collaborator invites, across all Projects — not on a single Project's collaborator list.

List Your Invites ​

curl https://api.chainabit.com/api/v1/chainy-collaborators/mine \
  -H "Authorization: Bearer $TOKEN"
json
{
  "data": [
    {
      "id": "11111111-1111-4111-8111-111111111111",
      "chainyId": "22222222-2222-4222-8222-222222222222",
      "role": "member",
      "status": "pending",
      "createdAt": "2026-03-18T09:00:00.000Z"
    }
  ]
}

Accept an Invite ​

Set $INVITATION_ID to the invitation record’s id from your pending list. This is not the project’s chainyId. Use the invited person’s access token.

curl -X POST https://api.chainabit.com/api/v1/chainy-collaborators/accept \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "chainyCollaboratorId": "'"$INVITATION_ID"'" }'

Decline an Invite ​

curl -X POST https://api.chainabit.com/api/v1/chainy-collaborators/decline \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "chainyCollaboratorId": "'"$INVITATION_ID"'" }'

Declining or accepting removes the invite from your pending list.

Built with purpose. chainabit.com