DebugBundle
API

Project Members API

List, invite, update, and remove project collaborators via the DebugBundle REST API.

Manage access for one project at a time. These endpoints require browser-session or member-token authentication and re-check access against the target project on every request.

Project member operations are also available via the CLI (debugbundle project members list/invites/invite/cancel-invite/update-role/remove --project-id <id>) and MCP tools (list_project_members, list_project_member_invites, invite_project_member, cancel_project_member_invite, update_project_member_role, remove_project_member).

List Members

GET /v1/projects/{id}/members
curl https://api.debugbundle.com/v1/projects/proj_01HABCDE.../members \
  -H "Authorization: Bearer dbundle_mem_a1b2c3d4..."

List Pending Invites

GET /v1/projects/{id}/invites
curl https://api.debugbundle.com/v1/projects/proj_01HABCDE.../invites \
  -H "Authorization: Bearer dbundle_mem_a1b2c3d4..."

Invite Collaborator

POST /v1/projects/{id}/invite
curl -X POST https://api.debugbundle.com/v1/projects/proj_01HABCDE.../invite \
  -H "Authorization: Bearer dbundle_mem_a1b2c3d4..." \
  -H "Content-Type: application/json" \
  -d '{
    "email": "carol@example.com",
    "role": "member"
  }'
FieldTypeRequiredDescription
emailstringYesEmail address for the invitation.
rolestringNoProject role to assign: admin or member. Default: member.

Invitations expire after 7 days. The invited user receives an email link for /invite?token=... and must sign in with the invited email address before accepting.

Cancel Invite

DELETE /v1/projects/{id}/invites/{inviteId}
curl -X DELETE https://api.debugbundle.com/v1/projects/proj_01HABCDE.../invites/pinv_01HKLMNO... \
  -H "Authorization: Bearer dbundle_mem_a1b2c3d4..."

Update Member Role

PATCH /v1/projects/{id}/members/{userId}
curl -X PATCH https://api.debugbundle.com/v1/projects/proj_01HABCDE.../members/usr_01HFGHIJ... \
  -H "Authorization: Bearer dbundle_mem_a1b2c3d4..." \
  -H "Content-Type: application/json" \
  -d '{
    "role": "admin"
  }'

Remove Member

DELETE /v1/projects/{id}/members/{userId}
curl -X DELETE https://api.debugbundle.com/v1/projects/proj_01HABCDE.../members/usr_01HFGHIJ... \
  -H "Authorization: Bearer dbundle_mem_a1b2c3d4..."

Errors

StatusCodeDescription
400invalid_payloadMissing or invalid request body.
400invalid_project_idProject ID is malformed.
400invalid_invite_idInvite ID is malformed.
400invalid_member_idMember user ID is malformed.
403forbiddenCaller cannot manage members for this project.
403upgrade_requiredProject owner's plan does not support project sharing.
403email_verification_requiredBrowser-session caller must verify email first.
404project_not_foundProject is missing or inaccessible.
404invite_not_foundNo pending invite with this ID.
404member_not_foundNo project member with this user ID.
409member_already_existsUser already has access to this project.
409invite_already_existsA pending invite for this email already exists.

On this page