TrustVerify logoTrustVerify
Docs menu

Cancel a hosted verification link

POST /api/v1/kyc/links/{id}/cancel

POST https://api.trustverify.co.uk/api/v1/kyc/links/{id}/cancel

Cancels an unused (pending and not yet expired) hosted verification link. A submitted, completed, cancelled, expired, unknown, or other-account id is answered 409 not_cancellable.

Parameters#

Parameters
FieldTypeDescription
id (path)requiredstringThe id returned when the link was created

Example request#

curl -sS -X POST 'https://api.trustverify.co.uk/api/v1/kyc/links/42/cancel' \
  -H "Authorization: Bearer $TRUSTVERIFY_API_KEY"

Responses#

200 The link, now cancelled (no url)

200 response fields
FieldTypeDescription
idrequiredstring
objectrequiredstring: "verification_link"
urlstringThe one-time hosted page URL. Returned only when the link is created. GET and cancel do not include it, so a later read cannot recover the token.
statusrequiredstring: "pending" | "submitted" | "completed" | "cancelled" | "expired"expired is computed on read for a pending link whose expiresAt has passed; it is not stored
environmentrequiredstring: "test" | "live"
externalReferencerequiredstring,null
sharetribeUserIdrequiredstring,null
expiresAtrequiredstring,null
createdAtrequiredstring,null
submittedAtrequiredstring,null
completedAtrequiredstring,null
resultrequired

401 Missing, invalid or revoked API key

409 not_cancellable — only an unused link can be cancelled

429 rate_limit_exceeded — the per-minute limit for this key was reached. Wait Retry-After seconds.

503 hosted_links_unavailable — hosted verification links cannot be served right now. Try again later.

Last updated 14 November 2026. Something unclear or wrong? Tell us.