List the Sandbox specimens
curl --request GET \
--url https://app.sahlfinancial.com/api/v1/sandbox/specimens \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.sahlfinancial.com/api/v1/sandbox/specimens', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.sahlfinancial.com/api/v1/sandbox/specimens"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"count": 2,
"specimen_ice": [
"001234567000062"
],
"specimens": [
{
"id": "cin_recto",
"doc_type": "carte_nationale",
"title_fr": "CIN marocaine (recto)",
"title_en": "Moroccan ID card (front)",
"filename": "specimen-cin-recto.png",
"content_type": "image/png",
"size": 75674,
"sha256": "fa2452e4d766b9ef94544d1685828b27ade75989b8b1c5fef46db83d1eabcb4a"
},
{
"id": "modele_j",
"doc_type": "modele_j",
"title_fr": "Modèle J (registre de commerce)",
"title_en": "Modèle J (trade register extract)",
"filename": "specimen-modele-j.pdf",
"content_type": "application/pdf",
"size": 6207,
"sha256": "d0a8b02038b5389621ce8b3005dc74b669c11032b1544dd094fb14f6e8cafdaa"
}
]
}{
"detail": "Invalid or revoked API key"
}{
"code": "internal_error",
"message": "An unexpected error occurred",
"details": null
}List the Sandbox specimens
Any valid API key, no scope needed.
The documents the Sandbox accepts, with the id to download each one. specimen_ice lists the ICE that the specimen Modèle J, Modèle 7 and IF attestation carry.
GET
/
v1
/
sandbox
/
specimens
List the Sandbox specimens
curl --request GET \
--url https://app.sahlfinancial.com/api/v1/sandbox/specimens \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.sahlfinancial.com/api/v1/sandbox/specimens', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.sahlfinancial.com/api/v1/sandbox/specimens"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"count": 2,
"specimen_ice": [
"001234567000062"
],
"specimens": [
{
"id": "cin_recto",
"doc_type": "carte_nationale",
"title_fr": "CIN marocaine (recto)",
"title_en": "Moroccan ID card (front)",
"filename": "specimen-cin-recto.png",
"content_type": "image/png",
"size": 75674,
"sha256": "fa2452e4d766b9ef94544d1685828b27ade75989b8b1c5fef46db83d1eabcb4a"
},
{
"id": "modele_j",
"doc_type": "modele_j",
"title_fr": "Modèle J (registre de commerce)",
"title_en": "Modèle J (trade register extract)",
"filename": "specimen-modele-j.pdf",
"content_type": "application/pdf",
"size": 6207,
"sha256": "d0a8b02038b5389621ce8b3005dc74b669c11032b1544dd094fb14f6e8cafdaa"
}
]
}{
"detail": "Invalid or revoked API key"
}{
"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.