Organization Members REST API


List organization members


โš ๏ธ Breaking Changes: The Bencher API is in beta and under active development. We may introduce breaking changes in future releases. We will announce any breaking changes in the release notes.

List members for an organization. The user must have `view_role` permissions for the organization. By default, the members are sorted in alphabetical order by name. The HTTP response header `X-Total-Count` contains the total number of members.

Headers


Content-Type

string

Required

Set to application/json.


Authorization

string

Required

Set to Bearer BENCHER_API_KEY, where BENCHER_API_KEY is a valid Bencher API key (or a deprecated API token).

Path Parameters


organization
Required

The slug or UUID for an organization.

Query Parameters


direction

string

The direction to sort by. If not specified, the default sort direction is used.

Default: asc

One of: asc, desc


page

integer

The page number to return. If not specified, the first page is returned.

Default: 1


per_page

integer

The number of items to return per page. If not specified, the default number of items per page (8) is used.

Default: 8


sort

string

The field to sort by. If not specified, the default sort field is used.

Default: name

One of: name


name

string

Filter by user name, exact match.


search

string

Search by user name, slug, or UUID.

GET
/v0/organizations/{organization}/members
Bencher Cloudhttps://api.bencher.dev
Bencher Self-Hostedhttp://localhost:6610

Bencher CLI

bencher member list ORGANIZATION

View OpenAPI Spec

Invite a user to an organization


โš ๏ธ Breaking Changes: The Bencher API is in beta and under active development. We may introduce breaking changes in future releases. We will announce any breaking changes in the release notes.

Invite another user to become a member of an organization. The user must have `create_role` permissions for the organization. The invitee is sent an email with a link to accept the invitation, and they are not added to the organization until they accept the invitation. The link works once, for 7 days, and only for the invited email. Inviting an email that the organization already invited sends a new link, and the link it sent before no longer works. An email that already belongs to a member of the organization is a conflict. This endpoint requires a user session signed in within the last 10 minutes: neither a user API key nor a deprecated user API token can send an invitation.

Headers


Content-Type

string

Required

Set to application/json.


Authorization

string

Required

Set to Bearer BENCHER_API_KEY, where BENCHER_API_KEY is a valid Bencher API key (or a deprecated API token).

Path Parameters


organization
Required

The slug or UUID for an organization.

Body Parameters


email

string

Required

The email for the invitee. This will be used to both send the invite and to create the user account if they do not exist.


name

string

The user name for the invitee.


role

string

Required

The organization role for the invitee.

One of: leader

POST
/v0/organizations/{organization}/members
Bencher Cloudhttps://api.bencher.dev
Bencher Self-Hostedhttp://localhost:6610

Bencher CLI

bencher member invite ORGANIZATION

View OpenAPI Spec

View an organization member


โš ๏ธ Breaking Changes: The Bencher API is in beta and under active development. We may introduce breaking changes in future releases. We will announce any breaking changes in the release notes.

View a member of an organization. The user must have `view_role` permissions for the organization.

Headers


Content-Type

string

Required

Set to application/json.


Authorization

string

Required

Set to Bearer BENCHER_API_KEY, where BENCHER_API_KEY is a valid Bencher API key (or a deprecated API token).

Path Parameters


organization
Required

The slug or UUID for an organization.


user
Required

The slug or UUID for an organization member.

GET
/v0/organizations/{organization}/members/{user}
Bencher Cloudhttps://api.bencher.dev
Bencher Self-Hostedhttp://localhost:6610

Bencher CLI

bencher member view ORGANIZATION USER

View OpenAPI Spec

Update an organization member


โš ๏ธ Breaking Changes: The Bencher API is in beta and under active development. We may introduce breaking changes in future releases. We will announce any breaking changes in the release notes.

Update the role for a member of an organization. The user must have `edit_role` permissions for the organization to change a role, and `view_role` permissions to update nothing. Changing a role requires a user session signed in within the last 10 minutes: neither a user API key nor a deprecated user API token can grant a role.

Headers


Content-Type

string

Required

Set to application/json.


Authorization

string

Required

Set to Bearer BENCHER_API_KEY, where BENCHER_API_KEY is a valid Bencher API key (or a deprecated API token).

Path Parameters


organization
Required

The slug or UUID for an organization.


user
Required

The slug or UUID for an organization member.

Body Parameters


role

string

The new organization role for the member.

One of: leader

PATCH
/v0/organizations/{organization}/members/{user}
Bencher Cloudhttps://api.bencher.dev
Bencher Self-Hostedhttp://localhost:6610

Bencher CLI

bencher member update ORGANIZATION USER

View OpenAPI Spec

Remove an organization member


โš ๏ธ Breaking Changes: The Bencher API is in beta and under active development. We may introduce breaking changes in future releases. We will announce any breaking changes in the release notes.

Remove a member of an organization, the user themself included, to leave it. The user must have `delete_role` permissions for the organization. The organization's last Leader cannot be removed. The member's roles on the organization's projects, and the invitations they sent to it, end with the removal.

Headers


Content-Type

string

Required

Set to application/json.


Authorization

string

Required

Set to Bearer BENCHER_API_KEY, where BENCHER_API_KEY is a valid Bencher API key (or a deprecated API token).

Path Parameters


organization
Required

The slug or UUID for an organization.


user
Required

The slug or UUID for an organization member.

DELETE
/v0/organizations/{organization}/members/{user}
Bencher Cloudhttps://api.bencher.dev
Bencher Self-Hostedhttp://localhost:6610

Bencher CLI

bencher member remove ORGANIZATION USER

View OpenAPI Spec

List pending invitations


โš ๏ธ Breaking Changes: The Bencher API is in beta and under active development. We may introduce breaking changes in future releases. We will announce any breaking changes in the release notes.

List the invitations to an organization that have not been accepted or revoked, expired ones included. The user must have `create_role` permissions for the organization. By default, the newest invitations come first. The HTTP response header `X-Total-Count` contains the total number of invitations.

Headers


Content-Type

string

Required

Set to application/json.


Authorization

string

Required

Set to Bearer BENCHER_API_KEY, where BENCHER_API_KEY is a valid Bencher API key (or a deprecated API token).

Path Parameters


organization
Required

The slug or UUID for an organization.

Query Parameters


direction

string

The direction to sort by. If not specified, the default sort direction is used.

Default: asc

One of: asc, desc


page

integer

The page number to return. If not specified, the first page is returned.

Default: 1


per_page

integer

The number of items to return per page. If not specified, the default number of items per page (8) is used.

Default: 8


sort

string

The field to sort by. If not specified, the default sort field is used.

Default: created

One of: created

GET
/v0/organizations/{organization}/invites
Bencher Cloudhttps://api.bencher.dev
Bencher Self-Hostedhttp://localhost:6610

View OpenAPI Spec

Resend an invitation


โš ๏ธ Breaking Changes: The Bencher API is in beta and under active development. We may introduce breaking changes in future releases. We will announce any breaking changes in the release notes.

Email a pending invitation again, expired or not, with a new link that works for 7 days. The link it sent before no longer works. The user must have `create_role` permissions for the organization. This endpoint requires a user session signed in within the last 10 minutes: neither a user API key nor a deprecated user API token can send an invitation.

Headers


Content-Type

string

Required

Set to application/json.


Authorization

string

Required

Set to Bearer BENCHER_API_KEY, where BENCHER_API_KEY is a valid Bencher API key (or a deprecated API token).

Path Parameters


invite

string

Required

The UUID for an invitation.


organization
Required

The slug or UUID for an organization.

POST
/v0/organizations/{organization}/invites/{invite}/resend
Bencher Cloudhttps://api.bencher.dev
Bencher Self-Hostedhttp://localhost:6610

View OpenAPI Spec

Revoke an invitation


โš ๏ธ Breaking Changes: The Bencher API is in beta and under active development. We may introduce breaking changes in future releases. We will announce any breaking changes in the release notes.

End a pending invitation, so its link no longer works. The user must have `delete_role` permissions for the organization.

Headers


Content-Type

string

Required

Set to application/json.


Authorization

string

Required

Set to Bearer BENCHER_API_KEY, where BENCHER_API_KEY is a valid Bencher API key (or a deprecated API token).

Path Parameters


invite

string

Required

The UUID for an invitation.


organization
Required

The slug or UUID for an organization.

DELETE
/v0/organizations/{organization}/invites/{invite}
Bencher Cloudhttps://api.bencher.dev
Bencher Self-Hostedhttp://localhost:6610

View OpenAPI Spec


Published: Mon, February 12, 2024 at 7:26:00 AM UTC | Last Updated: Sun, October 4, 2026 at 4:59:55 PM UTC