Get a hosted verification link
GET /api/v1/kyc/links/{id}
GET https://api.trustverify.co.uk/api/v1/kyc/links/{id}
Returns the status and, when the check has finished, the result of a hosted verification link you created. Works with test and live keys. The page URL is not returned. There is no list endpoint: look up a link by the id returned on create.
Parameters#
| Field | Type | Description |
|---|---|---|
| id (path)required | string | The id returned when the link was created |
Example request#
curl -sS -X GET 'https://api.trustverify.co.uk/api/v1/kyc/links/42' \
-H "Authorization: Bearer $TRUSTVERIFY_API_KEY"Responses#
200 The link (no url)
| Field | Type | Description |
|---|---|---|
| idrequired | string | |
| objectrequired | string: "verification_link" | |
| url | string | The 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. |
| statusrequired | string: "pending" | "submitted" | "completed" | "cancelled" | "expired" | expired is computed on read for a pending link whose expiresAt has passed; it is not stored |
| environmentrequired | string: "test" | "live" | |
| externalReferencerequired | string,null | |
| sharetribeUserIdrequired | string,null | |
| expiresAtrequired | string,null | |
| createdAtrequired | string,null | |
| submittedAtrequired | string,null | |
| completedAtrequired | string,null | |
| resultrequired |