> ## 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.

# 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.



## OpenAPI

````yaml /openapi.json get /v1/sandbox/specimens
openapi: 3.1.0
info:
  title: Sahl Partner API
  version: 0.2.0
  description: >-
    Server-to-server API for lenders and banks: document reading, verification,
    risk assessment, eID checks, Moroccan company (KYB) onboarding, bank
    statements, document requests, webhooks, registry checks, cases, scoring,
    KYC policy, webhook deliveries and bank connections. Authenticate with
    `Authorization: Bearer <API key>`. Paths are relative to the server URL. New
    workspaces start in sandbox.
servers:
  - url: https://app.sahlfinancial.com/api
    description: Single API host. Send environment=sandbox (the default) for test data.
security:
  - bearerAuth: []
tags:
  - name: KYC
    description: Read documents, verify a profile, assess risk, start an eID check.
  - name: Bank connections (Growth)
    description: >-
      Growth plan, switched on per workspace by Sahl. Sandbox simulation today;
      production answers 409 until a bank data provider is live.
  - name: KYB
    description: >-
      Moroccan company file: read the Modèle J, the IF attestation and the
      manager's CIN, check an ICE. Every plan.
  - name: Statements
    description: Read a bank statement line by line and reconcile it. Every plan.
  - name: Webhooks
    description: >-
      Manage webhook endpoints with an API key (scope `webhooks:manage`). Every
      plan.
  - name: Document requests
    description: >-
      Ask an applicant for documents through a link or an embedded page, and
      follow the request.
  - name: Sandbox
    description: 'The specimen gallery: the only documents a new workspace''s Sandbox reads.'
  - name: Registry
    description: >-
      Check a SIREN, a VAT number, a LEI, an IBAN, a Moroccan RIB or ICE. Scope
      `registry:read`.
  - name: Cases
    description: >-
      Read the cases your calls filed, their documents and the fields read.
      Scope `cases:read`.
  - name: Scoring
    description: >-
      Read, re-run or simulate a case's credit score. Scopes `scoring:read`,
      `scoring:write`.
  - name: Policy
    description: >-
      Read and save the KYC policy your `/v1/kyc/*` calls run under. Scopes
      `policy:read`, `policy:write`.
  - name: Webhook deliveries
    description: >-
      See what was sent to your endpoints and send a delivery again. Scope
      `webhooks:manage`.
  - name: Account
    description: The calling key, its usage, its recent calls and the error catalogue.
paths:
  /v1/sandbox/specimens:
    get:
      tags:
        - Sandbox
      summary: List the Sandbox specimens
      description: >-
        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.
      operationId: sandbox_list_specimens
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SpecimenList'
              example:
                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
        '401':
          description: Missing, invalid, revoked or expired API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                detail: Invalid or revoked API key
        '500':
          description: Unexpected server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorFlat'
              example:
                code: internal_error
                message: An unexpected error occurred
                details: null
      security:
        - bearerAuth: []
components:
  schemas:
    SpecimenList:
      type: object
      title: SpecimenList
      properties:
        specimens:
          type: array
          items:
            $ref: '#/components/schemas/Specimen'
        count:
          type: integer
        specimen_ice:
          type: array
          items:
            type: string
          description: ICE carried by the specimen Modèle J, Modèle 7 and IF attestation.
      required:
        - specimens
        - count
        - specimen_ice
    Error:
      type: object
      title: Error
      description: >-
        FastAPI error body. `detail` is a string, a list (validation 422), or an
        object with `code` and `message` (extra keys possible).
      properties:
        detail:
          oneOf:
            - type: string
            - type: array
              items:
                additionalProperties: true
                type: object
              description: Validation errors (422).
            - type: object
              additionalProperties: true
              properties:
                code:
                  type: string
                message:
                  type: string
      required:
        - detail
    ErrorFlat:
      type: object
      title: ErrorFlat
      description: >-
        Body of a rate-limit 429, an unknown route 404 and a 500: `code` and
        `message` at the top level, with no `detail`.
      properties:
        code:
          type: string
        message:
          type: string
        details:
          type:
            - string
            - 'null'
          description: Present on a 500 only; null unless the server runs in debug mode.
      required:
        - code
        - message
    Specimen:
      type: object
      title: Specimen
      properties:
        id:
          type: string
          description: Use it in `GET /v1/sandbox/specimens/{specimen_id}`.
        doc_type:
          type: string
          description: Registry document type.
        title_fr:
          type: string
          description: French title.
        title_en:
          type: string
          description: English title.
        filename:
          type: string
          description: File name.
        content_type:
          type: string
          description: Media type.
        size:
          type: integer
          description: Bytes.
        sha256:
          type: string
          description: SHA-256 of the file.
      required:
        - id
        - doc_type
        - title_fr
        - title_en
        - filename
        - content_type
        - size
        - sha256
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        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.

````

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