Skip to content

View link history

GET /api/consent/consent-links/history

Returns all consent links your organization has generated, ordered by creation time (newest first).


This endpoint accepts two authentication methods:

MethodHeaderWhen to use
Bearer tokenAuthorization: Bearer <token>Dashboard user session token.
API keyX-API-Key: <key>Server-to-server calls. Requires a key with the consent (or admin) scope.

To generate an API key, go to Settings → API Settings in the truConsent dashboard. See Get API key and org ID for step-by-step instructions.


Terminal window
curl -X GET "https://api.truconsent.io/api/consent/consent-links/history?limit=50&offset=0" \
-H "Authorization: Bearer YOUR_SESSION_TOKEN" \
-H "X-Org-Id: YOUR_ORG_ID"

Terminal window
curl -X GET "https://api.truconsent.io/api/consent/consent-links/history?limit=50&offset=0" \
-H "X-API-Key: YOUR_API_KEY" \
-H "X-Org-Id: YOUR_ORG_ID"

ParameterTypeDefaultDescription
limitinteger50Number of records to return.
offsetinteger0Number of records to skip (for pagination).

Returns an array of link records ordered by creation time (newest first).

[
{
"event_id": "e5f6a7b8-c9d0-1234-efab-567890abcdef",
"request_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"phone": "+*********210",
"email": null,
"collection_point_id": "550e8400-e29b-41d4-a716-446655440000",
"collection_point_name": "Signup Form",
"asset_id": "79bf87f5-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"expires_at": "2025-05-13T10:00:00+00:00",
"is_verified": true,
"is_completed": true,
"created_at": "2025-05-12T10:00:00+00:00",
"consent_link": "{COLLECTOR_BASE_URL}/your-subdomain/CP010/e5f6a7b8-..."
}
]
FieldDescription
event_idUnique ID for the consent event. Use this to query the audit log.
request_idUnique ID for the link request.
phoneMasked phone number — only the last three digits are visible.
emailEmail address the notification was sent to, or null.
collection_point_idUUID of the collection point.
collection_point_nameHuman-readable name of the collection point.
asset_idUUID of the asset, or null if not recorded.
expires_atWhen the link expires (ISO 8601 UTC).
is_verifiedtrue once the data principal verified their identity via OTP.
is_completedtrue once the data principal submitted the consent form.
created_atWhen the link was generated (ISO 8601 UTC).
consent_linkThe full URL of the consent link.