Members and invitations

Invite people, set their role, suspend or remove them.

People join by invitation. An invitation is created by an owner and stays pending until it is accepted or revoked, so you can see who has been asked and has not yet answered.

List members

GEThttps://your-instance.com/api/organization/{id}/members

Any member may call this. It returns the roster with each person's role.

Invitations

MethodPathPurpose
GET/api/organization/{id}/invitationsList pending invitations
POST/api/organization/{id}/invitationsInvite someone
DELETE/api/organization/{id}/invitations/{invitation_id}Revoke an invitation
curl
curl https://your-instance.com/api/organization/$ORG_ID/invitations \
  -H "Authorization: Bearer $CLAWROUTER_ACCESS_TOKEN" \
  -H "New-Api-User: $USER_ID" \
  -H "Content-Type: application/json" \
  -d '{"username": "dave"}'

Changing a role

PUThttps://your-instance.com/api/organization/{id}/members/{user_id}
  • roleintegerrequired

    1 for member, 100 for owner.

Suspending a member

PUThttps://your-instance.com/api/organization/{id}/members/{user_id}/status

Suspension is scoped to this organization only. It stops their organization keys from working without touching their personal account, which is what you want when someone is between projects rather than gone.

Leaving and removing

MethodPathWho
DELETE/api/organization/{id}/members/selfAny member, leaving voluntarily
DELETE/api/organization/{id}/members/{user_id}Owner, removing someone

Reclaim any unspent budget before removing someone, otherwise the allocation is stranded with a member who is no longer there.