Download a Sandbox specimen
curl --request GET \
--url https://app.sahlfinancial.com/api/v1/sandbox/specimens/{specimen_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.sahlfinancial.com/api/v1/sandbox/specimens/{specimen_id}', 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/{specimen_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)"<string>"{
"detail": "Invalid or revoked API key"
}{
"detail": {
"code": "not_found",
"message": "No such specimen."
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"code": "internal_error",
"message": "An unexpected error occurred",
"details": null
}Download a Sandbox specimen
Any valid API key, no scope needed.
The specimen file itself, with its SHA-256 in the X-Content-SHA256 header. 404 not_found for an unknown id.
GET
/
v1
/
sandbox
/
specimens
/
{specimen_id}
Download a Sandbox specimen
curl --request GET \
--url https://app.sahlfinancial.com/api/v1/sandbox/specimens/{specimen_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.sahlfinancial.com/api/v1/sandbox/specimens/{specimen_id}', 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/{specimen_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)"<string>"{
"detail": "Invalid or revoked API key"
}{
"detail": {
"code": "not_found",
"message": "No such specimen."
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"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.
Response
The file, with its media type and an X-Content-SHA256 header.
The response is of type file.