Consent Verification API
APIs for verifying customer consents through various methods including email resend, magic links, and token verification.Base URL:
https://sandbox.finhub.cloud/api/v2.1/consent/verificationAvailable Operations
Resend Verification
POST /resendSend Magic Link
POST /send-magic-linkVerify Token
GET /verify/{token}Accept Consent
POST /consents/{type}Accept Consent
Directly accept a consent on behalf of a customer (used in onboarding flows).
Endpoints
POST /api/v2.1/customer/individual/{customerId}/consents/termsPOST /api/v2.1/customer/individual/{customerId}/consents/privacyPOST /api/v2.1/customer/individual/{customerId}/consents/data-processingPOST /api/v2.1/customer/organization/{organizationId}/consents/termsPOST /api/v2.1/customer/organization/{organizationId}/consents/privacyPOST /api/v2.1/customer/organization/{organizationId}/consents/data-processing
Request Body
Whether the consent is acceptedExample:
trueConsent versionExample:
"1.0"Headers
Tenant identifier
Bearer token for authentication
Must be
application/jsonSource identifier for request origin tracking
Client application identifier — required by the global request filter
Client platform identifier. Also accepted as
sec-ch-ua-platformUnique device identifier for session tracking. Also accepted as
X-Device-Id or device-idCode Example
cURL - Terms Consent
Response
Resend Verification
Resends the consent verification email to the customer.
Request
Bearer token for authentication
Tenant identifier
Customer identifier
Consent identifier to verify
Delivery channel:
EMAIL, SMS (default: EMAIL)Code Examples
Send Magic Link
Sends a magic link for one-click consent verification.
Request
Customer identifier
Consent identifier to verify
URL to redirect after verification (must be whitelisted)
Link expiration time in minutes (default: 60, max: 1440)
Code Examples
Verify Token
Verifies a consent using the token from the verification email or magic link.
Request
Verification token from email or magic link
Tenant identifier
Code Examples
Verification Flow
Delivery Channels
| Channel | Description |
|---|---|
EMAIL | Verification sent via email |
SMS | Verification sent via SMS (if enabled) |
Response Codes
| Code | Description |
|---|---|
200 | Operation successful |
400 | Invalid request data or token |
401 | Not Authorized |
403 | Not Allowed |
404 | Consent or customer not found |
410 | Token expired |
429 | Rate limit exceeded |
500 | Internal server error |