Skip to content
Connect an agent
Auth

Ask whether an address signs in with single sign-on

{ sso: true } only when the address's domain is verified by an organisation whose single sign-on is on and whose plan has it; otherwise { sso: false } and the emailed code works as before.

POST/auth/sso/discover

TL;DR

QuestionAnswer
What does it do?Ask whether an address signs in with single sign-on.
What does it take?A JSON body of type SsoDiscoverBody.
What does it return?Status 200 with a body of type SsoDiscover.
What can go wrong?400 the address is not valid; 403 the request came from an origin that may not sign in; 429 too many requests. Every failure uses the one error envelope.

What it does

{ sso: true } only when the address's domain is verified by an organisation whose single sign-on is on and whose plan has it; otherwise { sso: false } and the emailed code works as before. Names no organisation.

Request body

The body has the type SsoDiscoverBody.

FieldTypeRequiredDescription
emailstringyesat least 3 characters; at most 254 characters.

Responses

StatusMeaningBody
200Whether to offer single sign-on.SsoDiscover
400The address is not valid.ErrorResponse
403The request came from an origin that may not sign in.ErrorResponse
429Too many requests.ErrorResponse

Response body

A 200 answer has the type SsoDiscover.

FieldTypeRequiredDescription
ssobooleanyesTrue when the address's domain signs in through an organisation's identity provider. Names no organisation.

See also

DocWhy
API referenceEvery endpoint, and the error envelope
SchemasEvery request and response type
Tool referenceThe operations as callable tools