Skip to content

API reference

API: Single sign-on

Markdown version

MethodPathWhat it doesScope
POST/v1/scim/tokensA directory token for SCIM provisioning (shown once) (owner) (web app only)security:write
DELETE/v1/scim/tokens/:idRevoke a directory token (owner) (web app only)security:write
GET/v1/ssoThis organization's identity providers and email domains (owner)security:write
POST/v1/sso/connectionsConnect an OpenID Connect identity provider (checked against its discovery document) (owner) (web app only)security:write
DELETE/v1/sso/connections/:idRemove a provider (its domains stop sending people to it) (owner) (web app only)security:write
PATCH/v1/sso/connections/:idTurn a provider on or off, or change its default role or secret (owner) (web app only)security:write
POST/v1/sso/domainsAdd an email domain to verify (a DNS TXT record) and send its people to a provider (owner) (web app only)security:write
DELETE/v1/sso/domains/:domainRemove a domain (owner) (web app only)security:write
PATCH/v1/sso/domains/:domainRequire single sign-on for this domain's people (owners keep their password, to get back in if the provider fails) (owner) (web app only)security:write
POST/v1/sso/domains/:domain/verifyCheck the domain's DNS TXT record; once it's there, the domain is this organization's for sign-in (owner) (web app only)security:write

Examples

GET /v1/sso

This organization's identity providers and email domains (owner)

curl -s "https://api.closefinch.com/v1/sso" \
  -H "Authorization: Bearer $RA_API_KEY"
const res = await fetch(`https://api.closefinch.com/v1/sso`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.RA_API_KEY}` },
});
const data = await res.json();

Request and response schemas: https://www.closefinch.com/openapi.json. All resources: API reference.

Send feedback

Tell us what's broken, confusing or missing on this page, or an idea. It goes to the team that builds the product.

Please don't include passwords or card numbers.
Only to reply about this. Never added to any mailing list.