A link the end user opens to renew the domain's lasting API key
A link the end user opens to renew the domain's lasting API key: CustomDomain™ API reference. Covers parameters, request body, responses and error codes.
For a connection whose records were written with a lasting API key the cloud browser's agent made at the DNS provider. The link opens the hosted connect page in reconnect mode, straight on the sign in for that provider: after the end user signs in, the agent makes a new key with the same scopes, checks it and swaps it in, and no DNS record changes. It is a shared flow link (/connect/{token}): it works once and expires after 14 days.
With send: true and the end user's email address on the connection (and the end user email feature on), CustomDomain™ emails the link on the application's behalf and the answer is emailed: true with no link; otherwise the answer carries the link to pass on. The control plane also emails one by itself 30 and 7 days before the key's end and when the provider stops accepting it. A connection with no such key answers 409 not_reconnectable. Only the platform's API key makes one: the link signs in as the domain's end user, so a widget token (whatever end user it is bound to) and a delegated agent token are refused (403) whatever their scopes, and no link is made.
Authorization
apiKey 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
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/connections/string:reconnect-link" \ -H "Content-Type: application/json" \ -d '{}'{ "link": "http://example.com", "emailed": 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" }}{ "code": "account_not_verifiable", "title": "string", "details": "string", "request_id": "string", "challenge": { "value": "string", "bits": 1, "expires_at": "2019-08-24T14:15:22Z" }}