# Redeem the resume token an app return link carried

> Redeem the resume token an app return link carried: CustomDomain™ API reference in the connections group. Covers parameters, request body and responses.

Source: https://docs.customdomain.ai/docs/api-reference/connections/resumeConnectionOAuth

## `POST https://api.customdomain.ai/v1/connections/{id}/oauth:resume`

Single use. Answers the outcome of a sign-in started with `app_return`. Only available where app return links are on for the workspace.

### Authentication

`widgetJWT`, `apiKey`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes |  |

### Request body (JSON)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `resume` | string | yes |  |

### Responses

| Status | Description |
| --- | --- |
| `200` | The outcome |
| `400` | Error envelope: {code, title, details, request_id}. |
| `401` | Error envelope: {code, title, details, request_id}. |
| `404` | Error envelope: {code, title, details, request_id}. |
| `502` | `provider_unavailable`: the provider did not start the sign-in (Porkbun key request, OVHcloud consumer key request). |
| `503` | Error envelope: {code, title, details, request_id}. |

### `200` response body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `ok` | boolean | yes |  |
| `code` | string | no |  |
| `provider` | string | yes |  |
| `connection_id` | string | yes |  |
| `nonce` | string | no |  |

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