curl --request POST \
--url https://app.sahlfinancial.com/api/v1/requests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reference": "client-0001",
"applicant": {
"name": "Test Client",
"email": "test.client@example.com"
},
"documents": [
"payslip",
"national_id"
],
"reason": "Salary advance file",
"locale": "en",
"expires_in_days": 7,
"send_email": true,
"channel": "link",
"metadata": {
"loan_ref": "L-1042"
}
}
'{
"id": "3f2b8c1e-5a47-4d0e-9b6a-1c7e2d4f8a90",
"reference": "client-0001",
"status": "pending",
"environment": "sandbox",
"case_id": "7e3b9a14-2d6c-4c85-b1f0-6a8d4e2c9b37",
"url": null,
"expires_at": "2026-12-01T09:00:00+00:00",
"created_at": "2026-11-24T09:00:00+00:00",
"opened_at": null,
"submitted_at": null,
"completed_at": null,
"applicant": {
"name": "Test Client",
"email_masked": "t***@example.com",
"phone_masked": null
},
"documents": [
{
"type": "payslip",
"label": "Payslip",
"status": "missing"
},
{
"type": "national_id",
"label": "National ID card (CIN)",
"status": "missing"
}
],
"channel": "link",
"locale": "en",
"reason": "Salary advance file",
"email_sent_at": null,
"resend_count": 0,
"metadata": {
"loan_ref": "L-1042"
},
"email_sent": false,
"existing": true
}{
"id": "3f2b8c1e-5a47-4d0e-9b6a-1c7e2d4f8a90",
"reference": "client-0001",
"status": "pending",
"environment": "sandbox",
"case_id": "7e3b9a14-2d6c-4c85-b1f0-6a8d4e2c9b37",
"url": "https://app.sahlfinancial.com/r/EXAMPLE-TOKEN-SHOWN-ONCE",
"expires_at": "2026-12-01T09:00:00+00:00",
"created_at": "2026-11-24T09:00:00+00:00",
"opened_at": null,
"submitted_at": null,
"completed_at": null,
"applicant": {
"name": "Test Client",
"email_masked": "t***@example.com",
"phone_masked": null
},
"documents": [
{
"type": "payslip",
"label": "Payslip",
"status": "missing"
},
{
"type": "national_id",
"label": "National ID card (CIN)",
"status": "missing"
}
],
"channel": "link",
"locale": "en",
"reason": "Salary advance file",
"email_sent_at": null,
"resend_count": 0,
"metadata": {
"loan_ref": "L-1042"
},
"email_sent": false
}{
"detail": "Invalid or revoked API key"
}{
"detail": {
"code": "production_api_not_approved",
"message": "This workspace is not yet approved for Production API calls. Request production access in Settings → API. Sandbox stays open meanwhile."
}
}{
"detail": {
"code": "privacy_controller_missing",
"message": "This workspace has not named its data controller (Settings > Privacy & compliance), so it cannot collect documents yet."
}
}{
"detail": {
"code": "email_required",
"message": "send_email needs applicant.email."
}
}{
"detail": {
"code": "rate_limit_exceeded",
"message": "More than 60 calls a minute with this API key. Slow down.",
"limit": 60
}
}{
"code": "internal_error",
"message": "An unexpected error occurred",
"details": null
}Create a document request
Required scope: requests:write.
Asks an applicant for documents. The answer carries a url to give the applicant (a link, or a page to embed when channel is embed). The link’s token exists only in the response of create and resend; Sahl keeps only its hash.
A request is open while pending, opened or submitted. Creating again for the same reference returns the open request (200, existing: true, no url); send force_new: true to revoke it and mint a new one (201). send_email: true needs applicant.email. The workspace must have named its data controller (Settings, Privacy and compliance), otherwise 409 privacy_controller_missing. A new reference counts against the workspace’s case quota.
This route also accepts a signed-in dashboard user; this reference documents the API-key use. Choose the environment with the X-Sahl-Environment header or the environment field/parameter; the Sandbox is the default. Two values that disagree are refused (422 environment_conflict). In Production the workspace must be approved by Sahl (403 production_api_not_approved until then), its subscription must be active (403 production_requires_paid_plan), and a Free workspace needs a verified work email (403 work_email_required). The Sandbox is always open.
curl --request POST \
--url https://app.sahlfinancial.com/api/v1/requests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reference": "client-0001",
"applicant": {
"name": "Test Client",
"email": "test.client@example.com"
},
"documents": [
"payslip",
"national_id"
],
"reason": "Salary advance file",
"locale": "en",
"expires_in_days": 7,
"send_email": true,
"channel": "link",
"metadata": {
"loan_ref": "L-1042"
}
}
'{
"id": "3f2b8c1e-5a47-4d0e-9b6a-1c7e2d4f8a90",
"reference": "client-0001",
"status": "pending",
"environment": "sandbox",
"case_id": "7e3b9a14-2d6c-4c85-b1f0-6a8d4e2c9b37",
"url": null,
"expires_at": "2026-12-01T09:00:00+00:00",
"created_at": "2026-11-24T09:00:00+00:00",
"opened_at": null,
"submitted_at": null,
"completed_at": null,
"applicant": {
"name": "Test Client",
"email_masked": "t***@example.com",
"phone_masked": null
},
"documents": [
{
"type": "payslip",
"label": "Payslip",
"status": "missing"
},
{
"type": "national_id",
"label": "National ID card (CIN)",
"status": "missing"
}
],
"channel": "link",
"locale": "en",
"reason": "Salary advance file",
"email_sent_at": null,
"resend_count": 0,
"metadata": {
"loan_ref": "L-1042"
},
"email_sent": false,
"existing": true
}{
"id": "3f2b8c1e-5a47-4d0e-9b6a-1c7e2d4f8a90",
"reference": "client-0001",
"status": "pending",
"environment": "sandbox",
"case_id": "7e3b9a14-2d6c-4c85-b1f0-6a8d4e2c9b37",
"url": "https://app.sahlfinancial.com/r/EXAMPLE-TOKEN-SHOWN-ONCE",
"expires_at": "2026-12-01T09:00:00+00:00",
"created_at": "2026-11-24T09:00:00+00:00",
"opened_at": null,
"submitted_at": null,
"completed_at": null,
"applicant": {
"name": "Test Client",
"email_masked": "t***@example.com",
"phone_masked": null
},
"documents": [
{
"type": "payslip",
"label": "Payslip",
"status": "missing"
},
{
"type": "national_id",
"label": "National ID card (CIN)",
"status": "missing"
}
],
"channel": "link",
"locale": "en",
"reason": "Salary advance file",
"email_sent_at": null,
"resend_count": 0,
"metadata": {
"loan_ref": "L-1042"
},
"email_sent": false
}{
"detail": "Invalid or revoked API key"
}{
"detail": {
"code": "production_api_not_approved",
"message": "This workspace is not yet approved for Production API calls. Request production access in Settings → API. Sandbox stays open meanwhile."
}
}{
"detail": {
"code": "privacy_controller_missing",
"message": "This workspace has not named its data controller (Settings > Privacy & compliance), so it cannot collect documents yet."
}
}{
"detail": {
"code": "email_required",
"message": "send_email needs applicant.email."
}
}{
"detail": {
"code": "rate_limit_exceeded",
"message": "More than 60 calls a minute with this API key. Slow down.",
"limit": 60
}
}{
"code": "internal_error",
"message": "An unexpected error occurred",
"details": null
}Authorizations
API key created in the console. Scopes: kyc:extract, kyc:verify, kyc:eid; kyb:onboard, kyb:ice; statements:read; webhooks:manage; requests:read, requests:write; bank:read, bank:write (Growth plan, enabled per workspace by Sahl); registry:read; cases:read; scoring:read, scoring:write; policy:read, policy:write; usage:read. The Sandbox specimen routes, GET /v1/partner/me and GET /v1/partner/errors need any valid key.
Headers
Query Parameters
Body
Document type keys to ask for, 1 to 12, repeats ignored: bank_statement, payslip, national_id, passport, proof_of_address, employment_attestation, salary_certificate, tax_clearance, cnss_attestation, rib_certificate, company_registration, invoice. Another key is refused.
1 - 12 elementsResponse
An open request already exists for this reference: returned as is, without a url. Send force_new: true to replace it.