# Start connecting a domain's DNS without sending an access key

> Start connecting a domain's DNS without sending an access key: CustomDomain™ API reference. Covers parameters, request body, responses and error codes.

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

## `POST https://api.customdomain.ai/v1/connections/{id}/keyless:start`

**Keyless access.** Returns the steps the customer follows in their own cloud account, so no key of theirs is sent to CustomDomain™. Idempotent. Answers `503` `keyless_unavailable` when this deployment has not set the rail up and `400` `keyless_invalid` for a value that is not accepted. Takes a widget JWT for the connection's own application or an API key, like `keyless:complete`.

### Authentication

`widgetJWT`, `apiKey`

### Parameters

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

### Request body (JSON)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `provider` | string | yes | The DNS provider, `azuredns` or `gcpdns`. |
| `tenant_id` | string | no | The customer's directory id. |
| `subscription_id` | string | no | The customer's subscription id. |
| `resource_group` | string | no | The resource group that holds the zone. |
| `project_id` | string | no | The customer's project id (`gcpdns`). |
| `project_number` | string | no | The customer's project number (`gcpdns`). |
| `pool_id` | string | no | The identity pool id (`gcpdns`). |
| `provider_id` | string | no | The identity provider id in that pool (`gcpdns`). |
| `service_account` | string | no | The service account email (`gcpdns`). |
| `zone` | string | no | The zone |

### Responses

| Status | Description |
| --- | --- |
| `200` | The steps to show the customer. |
| `400` | Error envelope: {code, title, details, request_id}. |
| `401` | Error envelope: {code, title, details, request_id}. |
| `403` | `forbidden`: the credential may not do this. `workspace_suspended`: see the `ForbiddenOrSuspended` response. `token_wrong_end_user`: a widget token that is not this connection's end user (the connection names another end user than the token's `end_user_ref`, or names one while the token names none); nothing is read, written or changed, and the answer shows nothing of the connection. Mint the token with the end user's `end_user_ref`. |
| `404` | Error envelope: {code, title, details, request_id}. |
| `503` | Error envelope: {code, title, details, request_id}. |

### `200` response body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `connection_id` | string | yes |  |
| `provider` | string | yes |  |
| `zone` | string | yes |  |
| `admin_consent_url` | string | no | Where the customer's administrator allows the access (`azuredns`). |
| `role_assignment_command` | string | no | The command that gives the access on the one zone (`azuredns`). |
| `tag_name` | string | no | `azuredns`. |
| `tag_value` | string | no | A value generated for this connection. It is not a secret (`azuredns`). |
| `tag_command` | string | no | The command that sets the tag on the zone (`azuredns`). |
| `script` | string | no | The commands the customer runs in their own project (`gcpdns`). |
| `label_name` | string | no | `gcpdns`. |
| `label_value` | string | no | A value generated for this connection. It is not a secret (`gcpdns`). |
| `label_command` | string | no | The command that sets the label on the zone (`gcpdns`). |
| `aws_account_id` | string | no | The account the customer's identity provider trusts (`gcpdns`). |
| `aws_role_arn` | string | no | The role the customer's identity provider trusts (`gcpdns`). |
| `verified` | boolean | yes |  |
| `instructions` | array of string | yes | Plain steps to show the customer. |

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