Skip to main content
POST
/
link
/
token
/
create
Create an SDK Token
curl --request POST \
  --url https://sandbox.deck.co/api/v1/link/token/create \
  --header 'Content-Type: application/json' \
  --header 'x-deck-client-id: <api-key>' \
  --header 'x-deck-secret: <api-key>' \
  --data '
{
  "language": "EN",
  "customization_name": "<string>",
  "source_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "webhook_url": "<string>"
}
'
{
  "link_token": "<string>"
}

Authorizations

x-deck-client-id
string
header
required

Enter your client id

x-deck-secret
string
header
required

Enter your secret

Body

language
enum<string>

The language that Link should be displayed in.

Available options:
EN,
ES,
FR,
DE,
PT
customization_name
string | null

The name of the customization from Deck dashboard to be applied to this Widget session. If not specified, the default customization will be used. Values provided in this payload override the dashboard customization settings.

source_ids
string<uuid>[] | null

You can specify exactly the sources to be shown in Link by providing a list of source ids.

webhook_url
string | null

The webhook URL to receive update events.

Response

OK

The link_token, must be provided when calling Link endpoints, for identifying the Link session.

Minimum string length: 1