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

# Send a document request again

> Required scope: `requests:write`.

Mints a fresh link (the old one stops working) and, by default, emails it. Allowed on `pending` and `opened` requests only (409 `not_resendable`), at most 3 times (429 `resend_limit`), one a minute (429 `rate_limited` with `Retry-After`). The body is optional; `send_email` defaults to true and needs the request's applicant email (422 `email_required`).



## OpenAPI

````yaml /openapi.json post /v1/requests/{request_id}/resend
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/requests/{request_id}/resend:
    post:
      tags:
        - Document requests
      summary: Send a document request again
      description: >-
        Required scope: `requests:write`.


        Mints a fresh link (the old one stops working) and, by default, emails
        it. Allowed on `pending` and `opened` requests only (409
        `not_resendable`), at most 3 times (429 `resend_limit`), one a minute
        (429 `rate_limited` with `Retry-After`). The body is optional;
        `send_email` defaults to true and needs the request's applicant email
        (422 `email_required`).
      operationId: requests_resend
      parameters:
        - name: request_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Request Id
          description: The `id` of a document request.
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
                - $ref: '#/components/schemas/ResendRequest'
                - type: 'null'
              title: Body
            examples:
              default:
                summary: Email the new link
                value:
                  send_email: true
        description: Optional. Without a body, `send_email` is true.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentRequest'
              example:
                id: 3f2b8c1e-5a47-4d0e-9b6a-1c7e2d4f8a90
                reference: client-0001
                status: pending
                environment: sandbox
                case_id: 7e3b9a14-2d6c-4c85-b1f0-6a8d4e2c9b37
                url: https://app.sahlfinancial.com/r/EXAMPLE-TOKEN-SHOWN-ONCE
                expires_at: '2026-12-01T09:00:00+00:00'
                created_at: '2026-11-24T09:00:00+00:00'
                opened_at: null
                submitted_at: null
                completed_at: null
                applicant:
                  name: Test Client
                  email_masked: t***@example.com
                  phone_masked: null
                documents:
                  - type: payslip
                    label: Payslip
                    status: missing
                  - type: national_id
                    label: National ID card (CIN)
                    status: missing
                channel: link
                locale: en
                reason: Salary advance file
                email_sent_at: null
                resend_count: 1
                metadata:
                  loan_ref: L-1042
                email_sent: true
        '401':
          description: Missing, invalid, revoked or expired API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                detail: Invalid or revoked API key
        '403':
          description: The key lacks the `requests:write` scope (`insufficient_scope`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                detail: API key lacks the requests:write scope
        '404':
          description: Unknown id or another workspace's request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                detail:
                  code: not_found
                  message: No such request.
        '409':
          description: Not `pending` or `opened` (`not_resendable`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                detail:
                  code: not_resendable
                  message: A completed request cannot be sent again.
        '422':
          description: '`email_required`: the request has no applicant email.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                detail:
                  code: email_required
                  message: This request has no applicant email.
        '429':
          description: >-
            `resend_limit` (3 resends done), `rate_limited` (one a minute, with
            `Retry-After`), or the per-key rate limit.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                detail:
                  code: resend_limit
                  message: A request can be sent again 3 times; create a new one.
        '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:
    ResendRequest:
      properties:
        send_email:
          type: boolean
          title: Send Email
          default: true
          description: Email the new link. Default true.
      additionalProperties: false
      type: object
      title: ResendRequest
    DocumentRequest:
      type: object
      title: DocumentRequest
      properties:
        id:
          type: string
          format: uuid
          description: Request id.
        reference:
          type: string
          description: Your id for the client.
        status:
          type: string
          enum:
            - pending
            - opened
            - submitted
            - completed
            - expired
            - revoked
        environment:
          type: string
          enum:
            - sandbox
            - production
        case_id:
          type:
            - string
            - 'null'
          format: uuid
          description: The case the documents are filed on.
        url:
          type:
            - string
            - 'null'
          description: >-
            The applicant's link. Only in the response of create (201) and
            resend; null everywhere else.
        expires_at:
          type:
            - string
            - 'null'
          format: date-time
        created_at:
          type:
            - string
            - 'null'
          format: date-time
        opened_at:
          type:
            - string
            - 'null'
          format: date-time
        submitted_at:
          type:
            - string
            - 'null'
          format: date-time
        completed_at:
          type:
            - string
            - 'null'
          format: date-time
        applicant:
          type: object
          description: Contact details are masked.
          properties:
            name:
              type:
                - string
                - 'null'
            email_masked:
              type:
                - string
                - 'null'
            phone_masked:
              type:
                - string
                - 'null'
        documents:
          type: array
          items:
            $ref: '#/components/schemas/DocumentRequestDocument'
        channel:
          type: string
          enum:
            - link
            - embed
        locale:
          type: string
          enum:
            - en
            - fr
            - ar
        reason:
          type:
            - string
            - 'null'
          description: Why the documents are asked for.
        email_sent_at:
          type:
            - string
            - 'null'
          format: date-time
        resend_count:
          type: integer
          description: Times the link was sent again (maximum 3).
        metadata:
          type:
            - object
            - 'null'
          additionalProperties: true
          description: What you sent in `metadata`.
        email_sent:
          type: boolean
          description: 'Only on create and resend: whether the email left.'
        existing:
          type: boolean
          description: >-
            Only on a create that returned the open request for the reference
            (200).
        result:
          type: object
          description: Only on `GET /v1/requests/{request_id}` once `completed`.
          properties:
            risk_level:
              type:
                - string
                - 'null'
            score_band:
              type:
                - string
                - 'null'
              description: >-
                A 100-point band of the 0 to 1000 score, for example `600-699`.
                Null when not scored.
      required:
        - id
        - reference
        - status
        - environment
        - applicant
        - documents
        - channel
        - locale
        - resend_count
    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
    DocumentRequestDocument:
      type: object
      title: DocumentRequestDocument
      properties:
        type:
          type: string
          description: Document type key requested.
        label:
          type: string
          description: The label the applicant sees, in the request's `locale`.
        status:
          type: string
          enum:
            - missing
            - received
            - readable
            - unreadable
      required:
        - type
        - label
        - status
  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.