# Leave the identity provider's sign in for the provider's own form

> idp cancel browser session: CustomDomain™ API reference in the cloud browser group. Covers request parameters, the request body, responses and error codes.

Source: https://docs.customdomain.ai/docs/api-reference/cloud-browser/idpCancelBrowserSession

## `POST https://api.customdomain.ai/v1/browser-sessions/{sid}:idp-cancel`

Ends the identity provider step (`idp`) wherever it stands: the vendor's connection is deleted, and the customer is back on our form for the provider's own password. A browser already made again on the signed in profile stays, on the provider's sign in page. No body.

### Authentication

`browserSession`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `sid` | path | string | yes | The cloud browser session id, `bs_` and 32 hex characters. |

### Responses

| Status | Description |
| --- | --- |
| `202` | Back to the sign in. |
| `401` | `browser_expired`: the token is wrong, expired, or for another session. |
| `404` | Error envelope: {code, title, details}. |
| `409` | `browser_wrong_state`: no identity provider step is on the session. |
| `410` | `browser_expired`: the session ran out of time. |

### `202` response body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `state` | `awaiting_sign_in` | no |  |

The full specification is served at `GET https://api.customdomain.ai/v1/openapi.json`.
