Single Sign-On (SSO) REST API


List SSO domains for 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.

➕ Bencher Plus: List all single sign-on (SSO) domains for an organization. The user must be a member of the organization to use this route.

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: domain

One of: domain

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

Bencher CLI

bencher sso list ORGANIZATION

View OpenAPI Spec

Add an SSO domain 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.

➕ Bencher Plus: Add a single sign-on (SSO) domain to an organization. The user must be an admin on the server to use this route. SSO is Enterprise: on Bencher Cloud, the organization must have an active Enterprise plan, and on Bencher Self-Hosted, a valid Bencher Plus Enterprise license. When a user proves an email address by an email code or link, the domain portion of that email will be compared against all SSO domains. When a user signs in with a Google Workspace account, the account's hosted domain will be compared instead; GitHub sign-ins are never compared. If an SSO domain matches and its Organization is still Enterprise, they will be added as a Member to that Organization. Membership by SSO follows the email domain, so a removed member whose email is at the domain joins again at their next email sign-in: to remove such a user for good, end their mailbox at the domain. SSO domains must be globally unique on the server. That is, two Organizations cannot have the same SSO domain. A user session needs a sign-in within the last 10 minutes.

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


domain

string

Required

The SSO domain. For example: example.com

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

Bencher CLI

bencher sso create ORGANIZATION

View OpenAPI Spec

View an SSO domain for 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.

➕ Bencher Plus: View a single sign-on (SSO) domain from an organization. The user must be a member of the organization to use this route.

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.


sso

string

Required

The UUID for an SSO domain.

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

Bencher CLI

bencher sso view ORGANIZATION SSO

View OpenAPI Spec

Remove an SSO domain from 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.

➕ Bencher Plus: Remove a single sign-on (SSO) domain from an organization. The user must be an admin on the server to use this route.

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.


sso

string

Required

The UUID for an SSO domain.

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

Bencher CLI

bencher sso delete ORGANIZATION SSO

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