> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sahlfinancial.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sandbox specimens

> The specimen documents the Sandbox reads, how to list and download them, and what happens to anything else.

The Sandbox reads **specimen documents only**. Sahl publishes a gallery of them so you can run every call without a real client document. Every person, company and bank on a specimen is fictitious.

This applies to workspaces created on or after 24 October 2026, on every plan, in the API, the console and the verification widget. A workspace created before that date keeps the open Sandbox it had. Production reads real documents.

| Endpoint | Does | Scope |
| - | - | - |
| `GET /v1/sandbox/specimens` | Lists the specimens. | Any valid API key. No scope needed. |
| `GET /v1/sandbox/specimens/{id}` | Downloads one file. | Any valid API key. |

A signed-in console user can call the same paths with a session.

## List the specimens

```bash cURL theme={"dark"}
curl -s https://app.sahlfinancial.com/api/v1/sandbox/specimens \
  -H "Authorization: Bearer $SAHL_API_KEY"
```

```javascript JavaScript theme={"dark"}
const res = await fetch("https://app.sahlfinancial.com/api/v1/sandbox/specimens", {
  headers: { Authorization: `Bearer ${process.env.SAHL_API_KEY}` },
});
const { specimens, count, specimen_ice } = await res.json();
```

```python Python theme={"dark"}
import os, requests

body = requests.get(
    "https://app.sahlfinancial.com/api/v1/sandbox/specimens",
    headers={"Authorization": f"Bearer {os.environ['SAHL_API_KEY']}"},
).json()
for s in body["specimens"]:
    print(s["id"], s["doc_type"], s["filename"])
```

```json theme={"dark"}
{
  "specimens": [
    {
      "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": "..."
    }
  ],
  "count": 23,
  "specimen_ice": ["001234567000062"]
}
```

`specimen_ice` is the ICE the Sandbox [ICE check](https://docs.sahlfinancial.com/guides/kyb-morocco.md#check-an-ice) uses as its example.

## Download one

```bash theme={"dark"}
curl -s https://app.sahlfinancial.com/api/v1/sandbox/specimens/cin_recto \
  -H "Authorization: Bearer $SAHL_API_KEY" -o specimen-cin-recto.png
```

The answer is the file, with the `X-Content-SHA256` header. An unknown id answers 404 `not_found`.

## The gallery

| `id` | `doc_type` | Document | File |
| - | - | - | - |
| `cin_recto` | `carte_nationale` | Moroccan ID card (front) | `specimen-cin-recto.png` |
| `cin_verso` | `carte_nationale` | Moroccan ID card (back, MRZ) | `specimen-cin-verso.png` |
| `passport` | `passport` | ICAO passport (UTO, ERIKSSON) | `specimen-passport-icao.png` |
| `bank_statement` | `releve_bancaire` | Bank statement | `specimen-releve-bancaire.pdf` |
| `payslip` | `bulletin_paie` | Payslip | `specimen-bulletin-de-paie.pdf` |
| `modele_j` | `modele_j` | Modèle J (trade register extract) | `specimen-modele-j.pdf` |
| `modele_7` | `modele_j` | Modèle 7 (registration certificate) | `specimen-modele-7.pdf` |
| `attestation_if` | `attestation_if` | Tax ID certificate (IF) | `specimen-attestation-if.pdf` |
| `liasse_fiscale` | `bilan` | Tax return 2025 (balance sheet, P\&L, prior year) | `specimen-liasse-fiscale-2025.pdf` |
| `statuts` | `statuts` | Articles of association (SARL) | `specimen-statuts.pdf` |
| `company_statement` | `releve_bancaire` | Company bank statement (3 months) | `specimen-releve-entreprise-3-mois.pdf` |
| `loan_schedule` | `tableau_amortissement` | Loan amortisation schedule (current loan) | `specimen-tableau-amortissement.pdf` |
| `attestation_cnss` | `attestation_cnss` | CNSS social security certificate | `specimen-attestation-cnss.pdf` |
| `attestation_fiscale` | `attestation_regularite_fiscale` | Tax compliance certificate | `specimen-attestation-regularite-fiscale.pdf` |
| `pv_assemblee` | `pv_assemblee` | General meeting minutes (2025 accounts, borrowing) | `specimen-pv-assemblee.pdf` |
| `declaration_be` | `declaration_beneficiaires_effectifs` | Beneficial ownership declaration | `specimen-declaration-beneficiaires.pdf` |
| `business_plan` | `business_plan` | Business plan 2026-2029 (loan request) | `specimen-business-plan.pdf` |
| `financial_projections` | `financial_projections` | Financial projections 2026-2029 (Excel) | `specimen-projections-financieres.xlsx` |
| `attestation_travail` | `attestation_travail` | Employment certificate (permanent contract) | `specimen-attestation-travail.pdf` |
| `rib` | `rib_certificate` | Bank details (RIB) | `specimen-rib.pdf` |
| `justificatif_domicile` | `utility_bill` | Proof of address (utility bill) | `specimen-justificatif-domicile.pdf` |
| `compromis_vente` | `contrat_vente` | Sale agreement (property) | `specimen-compromis-vente.pdf` |
| `certificat_propriete` | `certificat_propriete` | Land title certificate (ANCFCC) | `specimen-certificat-propriete.pdf` |

The list in the answer is authoritative: Sahl can add specimens, so read `GET /v1/sandbox/specimens` rather than hard-coding this table.

## What counts as a specimen

A document is a specimen when it is one of Sahl's gallery files (matched by its SHA-256), or when its content shows it: a SPÉCIMEN, ÉCHANTILLON or SAMPLE marking or watermark, a specimen holder, or the ICAO specimen passport (issuing state `UTO`). A fake document you made yourself is accepted when it prints SPECIMEN across it.

Anything else is refused in the Sandbox with 422, and nothing read from it is returned or kept:

```json theme={"dark"}
{
  "detail": {
    "code": "sandbox_specimen_required",
    "message": "Sandbox only accepts specimen documents. Use Production for real documents.",
    "message_fr": "La Sandbox accepte uniquement les documents spécimens. Pour vos vrais documents, passez en Production.",
    "message_en": "Sandbox only accepts specimen documents. Use Production for real documents.",
    "specimens_url": "/api/v1/sandbox/specimens"
  }
}
```

* `message` follows `Accept-Language`: French for `fr`, English otherwise. `message_fr` and `message_en` are always there.
* On `POST /v1/kyb/ma/onboard` the body also has `documents`, naming the parts that are not specimens.
* A queued statement that is not a specimen ends `failed` with `error_code` `sandbox_specimen_required`, and the job carries `error_message` and `error_message_fr`.
* The rule covers `/v1/kyc/extract`, `/v1/kyb/ma/onboard`, `/v1/statements/extract` and the [document request](https://docs.sahlfinancial.com/guides/document-requests.md) upload page. The ICE check carries no document, so it checks the format of any ICE in the Sandbox.
* The `authenticity:specimen:` check still runs on a specimen and fails, as it would in Production. That is the check working, not an error in your integration.

See also [Sandbox and production](https://docs.sahlfinancial.com/sandbox.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.