# List connection attempts

> List connection attempts: reference page for this CustomDomain™ API operation in the attempts group. Covers parameters, request body, responses and error codes.

Source: https://docs.customdomain.ai/docs/api-reference/attempts/listAttempts

## `GET https://api.customdomain.ai/v1/attempts`

One row for each try by one of your users to connect a domain, newest first. Each row carries your own id for the user (`end_user_ref`), the provider, the way used, the `result` and, when it did not connect, the `cause`: what happened in plain words and who can fix it (`user`, `provider`, `us`, or `you`). Results: `connected`, `needs_attention` (still open, waiting on the user, or left unfinished) and `failed`.

Follows the mode of the application named by `app_id`, or of the key's application: pass `sandbox` to read the other mode. Page with `next_cursor` until it is absent. API key; any member role.

### Authentication

`apiKey`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `app_id` | query | string | no |  |
| `result` | query | `connected`, `needs_attention`, `failed` | no |  |
| `provider` | query | string | no | Keep only attempts on this provider. |
| `end_user_ref` | query | string | no | Keep only attempts by this end user id. |
| `q` | query | string | no | Keep only domains that start with this text. |
| `since` | query | string | no | Only attempts at or after this time (RFC 3339). |
| `until` | query | string | no | Only attempts before this time (RFC 3339). |
| `sandbox` | query | boolean | no | Read Sandbox attempts (`true`) or live ones (`false`). |
| `limit` | query | integer | no | Rows per page. Defaults to 50; values above 200 are clamped to 200. |
| `cursor` | query | string | no | Opaque cursor taken verbatim from a previous response's `next_cursor`. Omit for the first page. |

### Responses

| Status | Description |
| --- | --- |
| `200` | Attempts |
| `400` | Error envelope: {code, title, details, request_id}. |
| `401` | Error envelope: {code, title, details, request_id}. |
| `403` | Error envelope: {code, title, details, request_id}. |
| `404` | Error envelope: {code, title, details, request_id}. |

### `200` response body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `attempts` | array of object | yes |  |
| `count` | integer | yes | Rows in this page. |
| `next_cursor` | string | no | Present only when more rows remain. Pass it back as `?cursor=`. |

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