Skip to main content
Manage the members of your organization, including listing members, updating roles, and transferring ownership.

Endpoints

MethodEndpointDescription
GET/v1/orgs/:org_id/membersList members
DELETE/v1/orgs/:org_id/members/:member_idRemove member (admin+)
PATCH/v1/orgs/:org_id/members/:member_id/roleUpdate role (owner only)
POST/v1/orgs/:org_id/members/:member_id/transfer-ownershipTransfer ownership (owner only)
POST/v1/orgs/:org_id/leaveLeave organization

Member Object

{
  "id": 1,
  "email": "jane@example.com",
  "first_name": "Jane",
  "last_name": "Doe",
  "role": "admin",
  "created_at": "2025-01-01T00:00:00Z"
}
FieldTypeDescription
idintegerUnique identifier
emailstringMember’s email address
first_namestringMember’s first name
last_namestringMember’s last name
rolestringowner, admin, or member
created_atstringISO 8601 timestamp

Roles

RoleDescription
ownerFull access, one per organization. Can manage all members and transfer ownership.
adminCan invite and remove members, manage resources. Cannot remove other admins.
memberCan view and use resources.

List Members

Retrieve all members of an organization.
curl https://api.thunderphone.com/v1/orgs/{org_id}/members \
  -H "Authorization: Token YOUR_API_TOKEN"

Remove a Member

Remove a member from the organization. Requires admin or owner role.
curl -X DELETE https://api.thunderphone.com/v1/orgs/{org_id}/members/5 \
  -H "Authorization: Token YOUR_API_TOKEN"
Response: 204 No Content
Admins can remove members, but only the owner can remove admins. You cannot remove yourself — use the leave endpoint instead. The owner cannot be removed.

Update Member Role

Change a member’s role. Only the organization owner can update roles.
curl -X PATCH https://api.thunderphone.com/v1/orgs/{org_id}/members/5/role \
  -H "Authorization: Token YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "role": "admin"
  }'
FieldTypeDescription
rolestringNew role: admin or member
You cannot change the owner’s role. To change ownership, use the transfer ownership endpoint.

Transfer Ownership

Transfer organization ownership to another member. Only the current owner can perform this action. The current owner becomes an admin.
curl -X POST https://api.thunderphone.com/v1/orgs/{org_id}/members/5/transfer-ownership \
  -H "Authorization: Token YOUR_API_TOKEN"
This action is irreversible without the new owner’s cooperation. The current owner will be demoted to admin.

Leave Organization

Leave an organization you are a member of.
curl -X POST https://api.thunderphone.com/v1/orgs/{org_id}/leave \
  -H "Authorization: Token YOUR_API_TOKEN"
The organization owner cannot leave. You must transfer ownership first. You also cannot leave if it is your only organization.