Integration
Revoke a verification link
Turn a verification link off permanently.
DELETE
/
merchant
/
verification-links
/
{link_id}
Revoke a verification link
curl --request DELETE \
--url https://prod.idto.ai/merchant/verification-links/{link_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://prod.idto.ai/merchant/verification-links/{link_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://prod.idto.ai/merchant/verification-links/{link_id}', 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/{link_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://prod.idto.ai/merchant/verification-links/{link_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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/{link_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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/{link_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyHttpResponse<String> response = Unirest.delete("https://prod.idto.ai/merchant/verification-links/{link_id}")
.header("Authorization", "Bearer <token>")
.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": {},
"max_runs": 50,
"runs_used": 12,
"runs_left": 38,
"created_at": "2026-10-02T10:15:30.123456+00:00",
"expires_at": "2026-11-01T10:15:30.123456+00:00",
"revoked_at": "2026-10-05T09:00:00.000000+00:00",
"status": "revoked"
}Revoking a link stops it at once: it starts no new sessions, and sessions already in progress through it can no longer renew their session token, so they stop within 15 minutes. Revoking cannot be undone; create a new link instead. Revoking a link that is already revoked returns it unchanged with its original
More answers in the Integration FAQ.
Was this page helpful? Email us at tech@idto.ai with the page link.
revoked_at.
Authentication
Send a dashboard login token asAuthorization: Bearer <token> (from POST /auth/login, valid 12 hours). X-Client-ID and X-API-Key are not accepted. Team members with the owner, admin or developer role can revoke links. Not billed.
Environments
| Environment | Base URL | Notes |
|---|---|---|
| Production | https://prod.idto.ai | Log in with your production dashboard account. |
| Staging | https://dev.idto.ai | Log in with your staging dashboard account. |
Errors
| HTTP | detail | What to do |
|---|---|---|
| 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 revoke the link. |
| 404 | Verification link not found | Use an id from List links. |
| 422 | A list naming link_id | link_id is not a UUID. |
Test scenarios
| Input | Expected result |
|---|---|
id of an active link | 200, status: "revoked", revoked_at set |
Same id again | 200, unchanged |
id of a link on another account | 404 |
link_id that is not a UUID | 422 |
Authorizations
Response
The link, now revoked.
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
Revoke a verification link
curl --request DELETE \
--url https://prod.idto.ai/merchant/verification-links/{link_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://prod.idto.ai/merchant/verification-links/{link_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://prod.idto.ai/merchant/verification-links/{link_id}', 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/{link_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://prod.idto.ai/merchant/verification-links/{link_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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/{link_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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/{link_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyHttpResponse<String> response = Unirest.delete("https://prod.idto.ai/merchant/verification-links/{link_id}")
.header("Authorization", "Bearer <token>")
.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": {},
"max_runs": 50,
"runs_used": 12,
"runs_left": 38,
"created_at": "2026-10-02T10:15:30.123456+00:00",
"expires_at": "2026-11-01T10:15:30.123456+00:00",
"revoked_at": "2026-10-05T09:00:00.000000+00:00",
"status": "revoked"
}