Skip to main content
POST
/
link
/
token
Create a new link token. Used in conjunction with the SDK to embed the link in a webview.
curl --request POST \
  --url https://worker.anon.com/api/v2/link/token \
  --header 'Content-Type: application/json' \
  --data '
{
  "external_id": "<string>",
  "job_id": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}
'
{
  "link_token": "<string>"
}

Body

application/json
external_id
string
required

An external ID to associate with the created link session

job_id
string<uuid>[]
required

An array of job IDs to associate with the link

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$

Response

Successfully created link token

A token to authenticate the link session