API reference
KYC sharing
Share finished sessions with connected companies and read sessions shared with you.
Connections are made in the console (Settings → KYC sharing). Once a company has accepted, you can share by API.
GET
/v3/kyc-sharing/partners/Your sharing_code and your connections: {id, partner_name, status, direction, sent, received}POST
/v3/session/{id}/share/{partner_id, consent: true, note}. Copies the result and every file. Returns {id, partner_name, files}bash
curl -X POST https://{{HOST}}/v3/session/ver_.../share/ -H "x-api-key: sk_live_..." -H "Content-Type: application/json" \
-d '{"partner_id":"kycp_...","consent":true,"note":"Customer is opening an account with you"}'Errors: 400 consent_required, 404 not_found (session or partner), 409 not_finished, 409 already_shared.
#Sessions shared with you
GET
/v3/imports/{results: [{id, from, status, name, dob, nationality, document, files, source_session_id, new, created_at}]}. Filter with qGET
/v3/imports/{id}/Full result: applicant, document, checks, decision_reasons, risk_score, note, consent and files[] with download urlGET
/v3/imports/{id}/files/{file_id}/The file (send your API key)Sandbox keys see sessions shared from sandbox, live keys see live ones. When something is shared with you, the kyc_import.received webhook is sent:
json
{ "webhook_type": "kyc_import.received", "import_id": "kimp_...", "from": "Alpha Pay", "source_session_id": "ver_...", "status": "approved", "files": 3 }