# Ask whether an address signs in with single sign-on

> Page: https://docs.plotwork.dev/api/post-auth-sso-discover. Index of every page: https://docs.plotwork.dev/llms.txt

`{ 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

| Question | Answer |
|---|---|
| What does it do? | Ask whether an address signs in with single sign-on. |
| What does it take? | A JSON body of type [`SsoDiscoverBody`](https://docs.plotwork.dev/api/schemas.md#ssodiscoverbody). |
| What does it return? | Status 200 with a body of type [`SsoDiscover`](https://docs.plotwork.dev/api/schemas.md#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`](https://docs.plotwork.dev/api/schemas.md#ssodiscoverbody).

| Field | Type | Required | Description |
|---|---|---|---|
| `email` | `string` | yes | at least 3 characters; at most 254 characters. |

## Responses

| Status | Meaning | Body |
|---|---|---|
| 200 | Whether to offer single sign-on. | [`SsoDiscover`](https://docs.plotwork.dev/api/schemas.md#ssodiscover) |
| 400 | The address is not valid. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 403 | The request came from an origin that may not sign in. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 429 | Too many requests. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |

## Response body

A 200 answer has the type [`SsoDiscover`](https://docs.plotwork.dev/api/schemas.md#ssodiscover).

| Field | Type | Required | Description |
|---|---|---|---|
| `sso` | `boolean` | yes | True when the address's domain signs in through an organisation's identity provider. Names no organisation. |

## See also

| Doc | Why |
|---|---|
| [API reference](https://docs.plotwork.dev/api/reference.md) | Every endpoint, and the error envelope |
| [Schemas](https://docs.plotwork.dev/api/schemas.md) | Every request and response type |
| [Tool reference](https://docs.plotwork.dev/mcp/tools.md) | The operations as callable tools |
