Integration
Create a verification link
Create a shareable link that runs one of your workflows in the hosted verification flow.
POST
/
merchant
/
verification-links
Create a verification link
curl --request POST \
--url https://prod.idto.ai/merchant/verification-links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "Vendor onboarding KYC",
"workflow_template_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"max_runs": 50,
"expires_in_days": 30,
"brand": {
"businessName": "SAMPLE TECHNOLOGIES",
"brandColor": "#0F62FE"
},
"options": {
"skippable": [
"account_verification"
],
"referenceName": "vendor-kyc"
}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
label: 'Vendor onboarding KYC',
workflow_template_id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
max_runs: 50,
expires_in_days: 30,
brand: {businessName: 'SAMPLE TECHNOLOGIES', brandColor: '#0F62FE'},
options: {skippable: ['account_verification'], referenceName: 'vendor-kyc'}
})
};
fetch('https://prod.idto.ai/merchant/verification-links', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
label: 'Vendor onboarding KYC',
workflow_template_id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
max_runs: 50,
expires_in_days: 30,
brand: {businessName: 'SAMPLE TECHNOLOGIES', brandColor: '#0F62FE'},
options: {skippable: ['account_verification'], referenceName: 'vendor-kyc'}
})
};
fetch('https://prod.idto.ai/merchant/verification-links', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://prod.idto.ai/merchant/verification-links"
payload = {
"label": "Vendor onboarding KYC",
"workflow_template_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"max_runs": 50,
"expires_in_days": 30,
"brand": {
"businessName": "SAMPLE TECHNOLOGIES",
"brandColor": "#0F62FE"
},
"options": {
"skippable": ["account_verification"],
"referenceName": "vendor-kyc"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://prod.idto.ai/merchant/verification-links"
payload := strings.NewReader("{\n \"label\": \"Vendor onboarding KYC\",\n \"workflow_template_id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"max_runs\": 50,\n \"expires_in_days\": 30,\n \"brand\": {\n \"businessName\": \"SAMPLE TECHNOLOGIES\",\n \"brandColor\": \"#0F62FE\"\n },\n \"options\": {\n \"skippable\": [\n \"account_verification\"\n ],\n \"referenceName\": \"vendor-kyc\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://prod.idto.ai/merchant/verification-links",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'label' => 'Vendor onboarding KYC',
'workflow_template_id' => '3fa85f64-5717-4562-b3fc-2c963f66afa6',
'max_runs' => 50,
'expires_in_days' => 30,
'brand' => [
'businessName' => 'SAMPLE TECHNOLOGIES',
'brandColor' => '#0F62FE'
],
'options' => [
'skippable' => [
'account_verification'
],
'referenceName' => 'vendor-kyc'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://prod.idto.ai/merchant/verification-links")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"label\": \"Vendor onboarding KYC\",\n \"workflow_template_id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"max_runs\": 50,\n \"expires_in_days\": 30,\n \"brand\": {\n \"businessName\": \"SAMPLE TECHNOLOGIES\",\n \"brandColor\": \"#0F62FE\"\n },\n \"options\": {\n \"skippable\": [\n \"account_verification\"\n ],\n \"referenceName\": \"vendor-kyc\"\n }\n}"
response = http.request(request)
puts response.read_bodyHttpResponse<String> response = Unirest.post("https://prod.idto.ai/merchant/verification-links")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"label\": \"Vendor onboarding KYC\",\n \"workflow_template_id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"max_runs\": 50,\n \"expires_in_days\": 30,\n \"brand\": {\n \"businessName\": \"SAMPLE TECHNOLOGIES\",\n \"brandColor\": \"#0F62FE\"\n },\n \"options\": {\n \"skippable\": [\n \"account_verification\"\n ],\n \"referenceName\": \"vendor-kyc\"\n }\n}")
.asString();{
"id": "6f1c2d3e-4b5a-4c7d-8e9f-0a1b2c3d4e5f",
"token": "sample-link-token-0000000000000000000000000",
"url": "https://try.idto.ai/v/sample-link-token-0000000000000000000000000",
"label": "Vendor onboarding KYC",
"workflow_template_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"brand": {
"businessName": "SAMPLE TECHNOLOGIES",
"logo": "",
"brandColor": "#0F62FE"
},
"presentation": {},
"options": {
"skippable": [
"account_verification"
],
"referenceName": "vendor-kyc"
},
"max_runs": 50,
"runs_used": 0,
"runs_left": 50,
"created_at": "2026-10-02T10:15:30.123456+00:00",
"expires_at": "2026-11-01T10:15:30.123456+00:00",
"revoked_at": null,
"status": "active"
}A verification link lets you collect a verification without building a front end. You pick one of your workflow templates, set how many people can use the link and for how long, and share the returned
Manage existing links with List links and Revoke a link. More answers in the Integration FAQ.
Was this page helpful? Email us at tech@idto.ai with the page link.
url by email, SMS or chat. Each person who opens it runs the workflow in the hosted flow, and the results reach you as they do for any session: the session.completed webhook and the dashboard.
Authentication
These endpoints take a dashboard login token, not yourX-Client-ID and X-API-Key. Sending only the API key pair returns 401 Not authenticated. Get a token by logging in with a dashboard user’s email and password at POST /auth/login; send it as Authorization: Bearer <token>. The token is valid for 12 hours. Team members with the owner, admin or developer role can create links.
Before you start
- Your account needs an API client (create one under API credentials in the dashboard).
workflow_template_idmust be an active workflow template assigned to your account.- Keep at least ₹100 in your idto balance. Below that, people who open the link see a message asking them to contact you, and no session starts.
Billing
Creating, listing and revoking links is not billed. Each verification a person completes through the link is billed as usual.Environments
| Environment | Base URL | Notes |
|---|---|---|
| Production | https://prod.idto.ai | Log in with your production dashboard account. Links open at https://try.idto.ai/v/<token>. |
| Staging | https://dev.idto.ai | Log in with your staging dashboard account. Verifications run through staging links reach live sources and deduct staging credits. |
Errors
| HTTP | detail | What to do |
|---|---|---|
| 400 | A link label is required | Send a non-blank label. |
| 400 | max_runs must be between 1 and 500 | Pick a max_runs in range. |
| 400 | expires_in_days must be between 1 and 90 | Pick an expires_in_days in range. |
| 400 | mobile_verification cannot be skippable on a shared link: it is how the person is identified | Remove mobile_verification from options.skippable. |
| 400 | Create an API client for your account before sharing a verification link | Create an API client in the dashboard. |
| 400 | Inactive customer | Contact tech@idto.ai to reactivate the account. |
| 401 | Could not validate credentials | Log in again for a fresh token. |
| 401 | Not authenticated | Send Authorization: Bearer <token>; API keys are not accepted here. |
| 403 | Your role does not permit this action. | Ask an owner, admin or developer to create the link. |
| 404 | Workflow template not found | Use an active template assigned to your account. |
| 422 | A list naming the field | A required field is missing, a field has the wrong type, or the body has an unknown field. |
Test scenarios
| Input | Expected result |
|---|---|
| Valid body, active template, account with an API client | 201, status: "active", runs_left equals max_runs |
max_runs: 0 | 400 |
expires_in_days: 91 | 400 |
options.skippable: ["mobile_verification"] | 400 |
Body without brand | 422 |
| Body with an unknown field | 422 |
A workflow_template_id from another account | 404 |
X-Client-ID and X-API-Key only | 401 Not authenticated |
Authorizations
Body
application/json
Response
The link was created. Share url with your end user.
A verification link as returned to the merchant dashboard.
A link is active until it becomes expired (past expires_at), spent (runs_used has reached max_runs), or revoked (explicitly revoked). revoked is permanent and takes priority over the other two. An expired or spent link still lets a session already in progress finish; a revoked link blocks everything immediately, including sessions already in progress.
Available options:
active, expired, spent, revoked Last modified on October 4, 2026
Create a verification link
curl --request POST \
--url https://prod.idto.ai/merchant/verification-links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "Vendor onboarding KYC",
"workflow_template_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"max_runs": 50,
"expires_in_days": 30,
"brand": {
"businessName": "SAMPLE TECHNOLOGIES",
"brandColor": "#0F62FE"
},
"options": {
"skippable": [
"account_verification"
],
"referenceName": "vendor-kyc"
}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
label: 'Vendor onboarding KYC',
workflow_template_id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
max_runs: 50,
expires_in_days: 30,
brand: {businessName: 'SAMPLE TECHNOLOGIES', brandColor: '#0F62FE'},
options: {skippable: ['account_verification'], referenceName: 'vendor-kyc'}
})
};
fetch('https://prod.idto.ai/merchant/verification-links', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
label: 'Vendor onboarding KYC',
workflow_template_id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
max_runs: 50,
expires_in_days: 30,
brand: {businessName: 'SAMPLE TECHNOLOGIES', brandColor: '#0F62FE'},
options: {skippable: ['account_verification'], referenceName: 'vendor-kyc'}
})
};
fetch('https://prod.idto.ai/merchant/verification-links', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://prod.idto.ai/merchant/verification-links"
payload = {
"label": "Vendor onboarding KYC",
"workflow_template_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"max_runs": 50,
"expires_in_days": 30,
"brand": {
"businessName": "SAMPLE TECHNOLOGIES",
"brandColor": "#0F62FE"
},
"options": {
"skippable": ["account_verification"],
"referenceName": "vendor-kyc"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://prod.idto.ai/merchant/verification-links"
payload := strings.NewReader("{\n \"label\": \"Vendor onboarding KYC\",\n \"workflow_template_id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"max_runs\": 50,\n \"expires_in_days\": 30,\n \"brand\": {\n \"businessName\": \"SAMPLE TECHNOLOGIES\",\n \"brandColor\": \"#0F62FE\"\n },\n \"options\": {\n \"skippable\": [\n \"account_verification\"\n ],\n \"referenceName\": \"vendor-kyc\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://prod.idto.ai/merchant/verification-links",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'label' => 'Vendor onboarding KYC',
'workflow_template_id' => '3fa85f64-5717-4562-b3fc-2c963f66afa6',
'max_runs' => 50,
'expires_in_days' => 30,
'brand' => [
'businessName' => 'SAMPLE TECHNOLOGIES',
'brandColor' => '#0F62FE'
],
'options' => [
'skippable' => [
'account_verification'
],
'referenceName' => 'vendor-kyc'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://prod.idto.ai/merchant/verification-links")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"label\": \"Vendor onboarding KYC\",\n \"workflow_template_id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"max_runs\": 50,\n \"expires_in_days\": 30,\n \"brand\": {\n \"businessName\": \"SAMPLE TECHNOLOGIES\",\n \"brandColor\": \"#0F62FE\"\n },\n \"options\": {\n \"skippable\": [\n \"account_verification\"\n ],\n \"referenceName\": \"vendor-kyc\"\n }\n}"
response = http.request(request)
puts response.read_bodyHttpResponse<String> response = Unirest.post("https://prod.idto.ai/merchant/verification-links")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"label\": \"Vendor onboarding KYC\",\n \"workflow_template_id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"max_runs\": 50,\n \"expires_in_days\": 30,\n \"brand\": {\n \"businessName\": \"SAMPLE TECHNOLOGIES\",\n \"brandColor\": \"#0F62FE\"\n },\n \"options\": {\n \"skippable\": [\n \"account_verification\"\n ],\n \"referenceName\": \"vendor-kyc\"\n }\n}")
.asString();{
"id": "6f1c2d3e-4b5a-4c7d-8e9f-0a1b2c3d4e5f",
"token": "sample-link-token-0000000000000000000000000",
"url": "https://try.idto.ai/v/sample-link-token-0000000000000000000000000",
"label": "Vendor onboarding KYC",
"workflow_template_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"brand": {
"businessName": "SAMPLE TECHNOLOGIES",
"logo": "",
"brandColor": "#0F62FE"
},
"presentation": {},
"options": {
"skippable": [
"account_verification"
],
"referenceName": "vendor-kyc"
},
"max_runs": 50,
"runs_used": 0,
"runs_left": 50,
"created_at": "2026-10-02T10:15:30.123456+00:00",
"expires_at": "2026-11-01T10:15:30.123456+00:00",
"revoked_at": null,
"status": "active"
}