Skip to main content
POST
/
sdk
/
{environmentId}
/
globalWallets
/
connections
Track a global wallet connection
curl --request POST \
  --url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/globalWallets/connections \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "expiresAt": "2023-11-07T05:31:56Z"
}
'
{
  "id": "95b11417-f18f-457f-8804-68e361f9164f",
  "userId": "95b11417-f18f-457f-8804-68e361f9164f",
  "appUrl": "http://*.example.com",
  "status": "connected",
  "createdAt": "2023-11-07T05:31:56Z",
  "expiresAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

environmentId
string
required

ID of the environment

Required string length: 36
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

Body

application/json
expiresAt
string<date-time>
required

Response

Successfully created global wallet connection tracking

id
string
required
Required string length: 36
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

userId
string
required
Required string length: 36
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

appUrl
string
required

An RFC 6454 valid url. Must not include any paths. A single wildcard (*) can be used as the first subdomain.

Example:

"http://*.example.com"

status
enum<string>
required
Available options:
connected,
disconnected
createdAt
string<date-time>
required
expiresAt
string<date-time> | null

If global wallet connection status is connected, then this timestamp will be present.

updatedAt
string<date-time>