KYC
Endpoints related to KYC verification sessions
Creates a new verification session for the user if no active session exists.
Body
userIdstringRequiredExample:
User identifier for whom to create the verification session
user_1234567890abcdefResponses
201
Verification session successfully created
application/json
400
Missing user id
application/json
409
Active verification session already exists
application/json
500
Internal server error
application/json
post
/api/kyc/create-verification-sessionPOST /api/kyc/create-verification-session HTTP/1.1
Host: platform.madra.finance
Content-Type: application/json
Accept: */*
Content-Length: 34
{
"userId": "user_1234567890abcdef"
}{
"message": "Session created",
"verificationSession": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}Fetches existing verification session and updates the verification status.
Query parameters
userIdstringRequiredExample:
User identifier to fetch session
user_1234567890abcdefResponses
200
Verification session found and updated
application/json
400
Missing userId query parameter
application/json
404
No active session found for the user
application/json
500
Internal server error
application/json
get
/api/kyc/get-verification-sessionGET /api/kyc/get-verification-session?userId=user_1234567890abcdef HTTP/1.1
Host: platform.madra.finance
Accept: */*
{
"verificationSession": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}