curl --request POST \
--url https://development.knotapi.com/zero-link/create \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "card_switcher",
"phone_number": "+12025550123",
"external_user_id": "123abc",
"card_id": "81n9al10a0ayn13"
}
'{
"link": "https://clip.knotapi.com/switch?token=example_knot_zero_token_1xxxxxxxxxxxxxxxxxx",
"token": "example_knot_zero_token_1xxxxxxxxxxxxxxxxxx"
}CardSwitcher
Create Knot Zero Link
Create a Knot Zero link for a single user.
POST
/
zero-link
/
create
curl --request POST \
--url https://development.knotapi.com/zero-link/create \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "card_switcher",
"phone_number": "+12025550123",
"external_user_id": "123abc",
"card_id": "81n9al10a0ayn13"
}
'{
"link": "https://clip.knotapi.com/switch?token=example_knot_zero_token_1xxxxxxxxxxxxxxxxxx",
"token": "example_knot_zero_token_1xxxxxxxxxxxxxxxxxx"
}Authorizations
Body
application/json
The parameters to include in the user's link.
ID of the merchant to open the link on. Required when type = link. Get merchant IDs, which are the same in every environment, from List Merchants.
Example:
17
Response
Successful request.
The Knot Zero link for the user: your base link with a unique token appended that references the user's stored parameters. Share it as a URL or encode it as a QR code. The link can be opened any number of times, with a new one-time code each time, and expires after 1 year. It stops working earlier if you create a new link for the same user and card, or revoke it.
Example:
"https://clip.knotapi.com/switch?token=example_knot_zero_token_1xxxxxxxxxxxxxxxxxx"
Was this page helpful?