CustomDomain Docs
API referenceAPI referenceAttempts

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.

GET
/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.

AuthorizationBearer <token>

Long-lived tenant API key, cd_live_… (production) or cd_test_… (staging, development), stored hashed. Keys created before the switch to cd_ start with sk_live_… / sk_test_… and are still accepted. Scoped to the owning application's tenant.

In: header

Query Parameters

app_id?string
result?string

Value in

  • "connected"
  • "needs_attention"
  • "failed"
provider?string

Keep only attempts on this provider.

end_user_ref?string

Keep only attempts by this end user id.

Lengthlength <= 256
q?string

Keep only domains that start with this text.

since?string

Only attempts at or after this time (RFC 3339).

Formatdate-time
until?string

Only attempts before this time (RFC 3339).

Formatdate-time
sandbox?boolean

Read Sandbox attempts (true) or live ones (false).

limit?integer

Rows per page. Defaults to 50; values above 200 are clamped to 200.

Range1 <= value <= 200
Default50
cursor?string

Opaque cursor taken verbatim from a previous response's next_cursor. Omit for the first page.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/attempts"
{  "attempts": [    {      "id": "string",      "at": "2019-08-24T14:15:22Z",      "domain": "string",      "end_user_ref": "string",      "provider": "string",      "way": "string",      "result": "connected",      "time_to_live_ms": 0,      "cause": {        "code": "string",        "label": "string",        "party": "user",        "category": "string"      },      "connection_id": "string"    }  ],  "count": 0,  "next_cursor": "string"}
{  "code": "account_not_verifiable",  "title": "string",  "details": "string",  "request_id": "string",  "challenge": {    "value": "string",    "bits": 1,    "expires_at": "2019-08-24T14:15:22Z"  }}
{  "code": "account_not_verifiable",  "title": "string",  "details": "string",  "request_id": "string",  "challenge": {    "value": "string",    "bits": 1,    "expires_at": "2019-08-24T14:15:22Z"  }}
{  "code": "account_not_verifiable",  "title": "string",  "details": "string",  "request_id": "string",  "challenge": {    "value": "string",    "bits": 1,    "expires_at": "2019-08-24T14:15:22Z"  }}
{  "code": "account_not_verifiable",  "title": "string",  "details": "string",  "request_id": "string",  "challenge": {    "value": "string",    "bits": 1,    "expires_at": "2019-08-24T14:15:22Z"  }}