curl --request GET \
--url https://app.sahlfinancial.com/api/v1/partner/policy \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.sahlfinancial.com/api/v1/partner/policy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.sahlfinancial.com/api/v1/partner/policy"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"environment": "sandbox",
"regulation": {
"key": "<string>",
"label": "<string>",
"regulator": "<string>",
"law": "<string>",
"locked": [
"<string>"
],
"retention_days": 123,
"assumed": true
},
"policies": [
{
"client_type": "individual",
"kind": "kyc",
"environment": "sandbox",
"source": "tenant",
"policy_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": 123,
"managed_by_flow": true,
"created_at": "2023-11-07T05:31:56Z",
"parameters": {
"duplicate_document_action": "flag",
"duplicate_hamming_threshold": 123,
"name_match_threshold": 123,
"max_document_age_days_by_type": {},
"min_applicant_age_years": 123,
"max_id_age_years": 123,
"liveness_strictness": "standard",
"fake_image_action": "flag",
"sanctions_pep_action": "refuse",
"sanctions_name_match_threshold": 123
},
"locked": [
"<string>"
],
"regulator_locked": [
"<string>"
],
"config": {
"document_country": "CA",
"required_documents": {},
"document_slot_enforcement": "off",
"enabled_checks": [
"<string>"
],
"thresholds": {
"document_recency_days": 90,
"backdate_days": 14,
"id_expiry_days": 90,
"duplicate_document_action": "flag",
"duplicate_hamming_threshold": 6,
"name_match_threshold": 0.5,
"max_document_age_days_by_type": {},
"min_applicant_age_years": 0,
"max_id_age_years": 0
},
"risk_bands": {
"low_max_points": 1,
"medium_max_points": 3
},
"screening": {
"sanctions_bundle": true,
"canchek": false,
"pep_hio_determination": false
},
"third_party_determination": false,
"eid_required_non_face_to_face": false,
"corporations_canada_lookup": true,
"beneficial_ownership_threshold_pct": 25,
"record_retention_days": 1825,
"liveness_strictness": "standard",
"fake_image_action": "flag",
"sanctions_pep_action": "refuse",
"sanctions_name_match_threshold": 0.88,
"locked": [
"<string>"
]
}
}
]
}{
"detail": {
"code": "partner_identity_rejected",
"message": "The key is bound to a service account and X-Partner-Identity was missing or did not verify for it."
}
}{
"detail": "API key lacks the required scope"
}{
"detail": {
"code": "policy_conflict",
"message": "The policy was changed at the same time; read it again and retry."
}
}{
"detail": {
"code": "invalid_environment",
"message": "environment / X-Sahl-Environment must be 'sandbox' or 'production'."
}
}{
"detail": {
"code": "rate_limit_exceeded",
"message": "Too many calls a minute: per API key on the partner routes, or per key / per address at the edge. Wait for Retry-After."
}
}{
"detail": {
"code": "internal_error",
"message": "Unexpected error. Quote X-Request-ID to support."
}
}Get the effective KYC policy
Required scope: policy:read.
The policy /v1/kyc/* applies to this workspace’s calls, for individuals and
for companies, in the call’s environment: where it comes from (a saved version or
the regime’s default), the main parameters, the full config, and which items are
locked and by whom.
Choose the environment with the X-Sahl-Environment header or the environment parameter or field; the Sandbox is the default. Two values that disagree are refused (422 environment_conflict).
curl --request GET \
--url https://app.sahlfinancial.com/api/v1/partner/policy \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.sahlfinancial.com/api/v1/partner/policy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.sahlfinancial.com/api/v1/partner/policy"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"environment": "sandbox",
"regulation": {
"key": "<string>",
"label": "<string>",
"regulator": "<string>",
"law": "<string>",
"locked": [
"<string>"
],
"retention_days": 123,
"assumed": true
},
"policies": [
{
"client_type": "individual",
"kind": "kyc",
"environment": "sandbox",
"source": "tenant",
"policy_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": 123,
"managed_by_flow": true,
"created_at": "2023-11-07T05:31:56Z",
"parameters": {
"duplicate_document_action": "flag",
"duplicate_hamming_threshold": 123,
"name_match_threshold": 123,
"max_document_age_days_by_type": {},
"min_applicant_age_years": 123,
"max_id_age_years": 123,
"liveness_strictness": "standard",
"fake_image_action": "flag",
"sanctions_pep_action": "refuse",
"sanctions_name_match_threshold": 123
},
"locked": [
"<string>"
],
"regulator_locked": [
"<string>"
],
"config": {
"document_country": "CA",
"required_documents": {},
"document_slot_enforcement": "off",
"enabled_checks": [
"<string>"
],
"thresholds": {
"document_recency_days": 90,
"backdate_days": 14,
"id_expiry_days": 90,
"duplicate_document_action": "flag",
"duplicate_hamming_threshold": 6,
"name_match_threshold": 0.5,
"max_document_age_days_by_type": {},
"min_applicant_age_years": 0,
"max_id_age_years": 0
},
"risk_bands": {
"low_max_points": 1,
"medium_max_points": 3
},
"screening": {
"sanctions_bundle": true,
"canchek": false,
"pep_hio_determination": false
},
"third_party_determination": false,
"eid_required_non_face_to_face": false,
"corporations_canada_lookup": true,
"beneficial_ownership_threshold_pct": 25,
"record_retention_days": 1825,
"liveness_strictness": "standard",
"fake_image_action": "flag",
"sanctions_pep_action": "refuse",
"sanctions_name_match_threshold": 0.88,
"locked": [
"<string>"
]
}
}
]
}{
"detail": {
"code": "partner_identity_rejected",
"message": "The key is bound to a service account and X-Partner-Identity was missing or did not verify for it."
}
}{
"detail": "API key lacks the required scope"
}{
"detail": {
"code": "policy_conflict",
"message": "The policy was changed at the same time; read it again and retry."
}
}{
"detail": {
"code": "invalid_environment",
"message": "environment / X-Sahl-Environment must be 'sandbox' or 'production'."
}
}{
"detail": {
"code": "rate_limit_exceeded",
"message": "Too many calls a minute: per API key on the partner routes, or per key / per address at the edge. Wait for Retry-After."
}
}{
"detail": {
"code": "internal_error",
"message": "Unexpected error. Quote X-Request-ID to support."
}
}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.