CustomDomain Docs
API referenceAPI referenceAnalytics

Export connection attempts as CSV

Export connection attempts as CSV: CustomDomain™ API reference in the analytics group. Covers request parameters, the request body, responses and error codes.

GET
/attempts:export

The rows GET /attempts would list for the same filters, newest first, as one CSV file. The range is at most 31 days (default: the last 31 days). A workspace may export six times an hour. A range with more than 100,000 rows, or a file over 20 MB, answers 413: narrow the range. A cell that starts with =, +, -, @, a tab or a carriage return is written with a leading apostrophe. 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

from?string

Only attempts at or after this time (RFC 3339). Defaults to 31 days before to.

Formatdate-time
to?string

Only attempts before this time (RFC 3339). Defaults to now.

Formatdate-time
outcome?string

Keep only this result. result is the same filter.

Value in

  • "connected"
  • "needs_attention"
  • "failed"
format?"csv"
Default"csv"

Value in

  • "csv"
app_id?string
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.

sandbox?boolean

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

Response Body

text/csv

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/attempts:export"
"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"  }}
{  "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"  }}