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
boolean
required
Whether the consent is acceptedExample:
truestring
required
Consent versionExample:
"1.0"Headers
string
required
Tenant identifier
string
required
Bearer token for authentication
string
required
Must be
application/jsonstring
required
Source identifier for request origin tracking
string
required
Client application identifier — required by the global request filter
string
required
Client platform identifier. Also accepted as
sec-ch-ua-platformstring
required
Unique 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
string
required
Bearer token for authentication
string
required
Tenant identifier
string
required
Customer identifier
string
required
Consent identifier to verify
string
Delivery channel:
EMAIL, SMS (default: EMAIL)Code Examples
Send Magic Link
Sends a magic link for one-click consent verification.
Request
string
required
Customer identifier
string
required
Consent identifier to verify
string
URL to redirect after verification (must be whitelisted)
integer
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
string
required
Verification token from email or magic link
string
required
Tenant identifier
Code Examples
Verification Flow
1
Request Verification
Call
/resend or /send-magic-link to send verification to customer2
Customer Clicks Link
Customer receives email and clicks the verification link
3
Token Validation
System validates the token via
/verify/{token}4
Consent Confirmed
Consent status updated to
ACCEPTED and customer redirected