Skip to main content

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/verification

Available Operations

Resend Verification

POST /resend

Send Magic Link

POST /send-magic-link

Verify Token

GET /verify/{token}

Accept Consent

POST /consents/{type}

Directly accept a consent on behalf of a customer (used in onboarding flows).

Endpoints

  • POST /api/v2.1/customer/individual/{customerId}/consents/terms
  • POST /api/v2.1/customer/individual/{customerId}/consents/privacy
  • POST /api/v2.1/customer/individual/{customerId}/consents/data-processing
  • POST /api/v2.1/customer/organization/{organizationId}/consents/terms
  • POST /api/v2.1/customer/organization/{organizationId}/consents/privacy
  • POST /api/v2.1/customer/organization/{organizationId}/consents/data-processing

Request Body

boolean
required
Whether the consent is acceptedExample: true
string
required
Consent versionExample: "1.0"

Headers

string
required
Tenant identifier
string
required
Bearer token for authentication
string
required
Must be application/json
string
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-platform
string
required
Unique device identifier for session tracking. Also accepted as X-Device-Id or device-id

Code 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
Consent identifier to verify
string
Delivery channel: EMAIL, SMS (default: EMAIL)

Code Examples


Sends a magic link for one-click consent verification.

Request

string
required
Customer identifier
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 customer
2

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

Delivery Channels

Response Codes