# One-click sync return with the state as a query parameter

> One-click sync return with the state as a query parameter: CustomDomain™ API reference in the connections group. Covers parameters, request body and responses.

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

## `GET https://api.customdomain.ai/v1/connect/dc/return`

The same return as `/connect/dc/return/{state}`, for a provider that hands the signed state back as `?state=`.

### Authentication

None.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `state` | query | string | yes |  |
| `error` | query | string | no |  |
| `error_description` | query | string | no |  |

### Responses

| Status | Description |
| --- | --- |
| `200` | HTML finish page (postMessages the outcome to the vetted return origin) |
| `400` | Invalid, expired, replayed, or wrong-rail state |
| `503` | The return is not configured on this server |

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