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
| Role | Description |
|---|---|
owner | Full control, including managing other collaborators |
admin | Can invite, update roles, and remove other collaborators |
member | Default role for a new collaborator |
viewer | Read-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
| Method | Path | Description | Auth |
|---|---|---|---|
| GET | /chainies/:chainyId/collaborators | List collaborators on a Project | JWT + Project access |
| POST | /chainies/:chainyId/collaborators | Invite a collaborator | JWT + Owner/Admin collaborator |
| PATCH | /chainies/:chainyId/collaborators/:chainerId | Update a collaborator's role | JWT + Owner/Admin collaborator |
| DELETE | /chainies/:chainyId/collaborators/:chainerId | Remove a collaborator | JWT + Owner/Admin collaborator, or self |
| GET | /chainy-collaborators/mine | List your own pending invites | JWT |
| POST | /chainy-collaborators/accept | Accept a pending invite | JWT |
| POST | /chainy-collaborators/decline | Decline a pending invite | JWT |
List Collaborators
Request
Use the id of a workspace-scoped Project as $CHAINY_ID.
Response
{
"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
| Field | Type | Required | Description |
|---|---|---|---|
chainerId | string | Yes | ID of the workspace member to invite |
role | string | No | owner | admin | member | viewer. Defaults to member. |
The target must be a member of the Project's workspace.
Response
{
"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
| Field | Type | Required | Description |
|---|---|---|---|
role | string | Yes | owner | admin | member | viewer |
Response
{
"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
{
"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"{
"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.