CustomDomain Docs
API referenceAPI referenceApplications

Whether the widget has opened on your site

Whether the widget has opened on your site: CustomDomain™ API reference in the applications group. Covers parameters, request body, responses and error codes.

GET
/applications/{id}/embed

Reports the first time this application's widget opened on a page of your own (a localhost page counts), with that page's origin. Tests run from the console do not count, and a Sandbox application may not report it. Informational only.

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

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/applications/string/embed"
{  "application_id": "string",  "embed": {    "seen": true,    "origin": "string",    "at": "2019-08-24T14:15:22Z",    "sandbox": true  }}
{  "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"  }}