> ## Documentation Index
> Fetch the complete documentation index at: https://api-documentation.kare-app.fr/llms.txt
> Use this file to discover all available pages before exploring further.

# Render the synthetic security register (any subset of its 4 sections) to a PDF and return a presigned download URL.



## OpenAPI

````yaml /api/rs/openapi.json get /rs/security-register/v1/export-pdf
openapi: 3.0.3
info:
  title: KARE API
  description: Backend API for the KARE platform
  version: dev
servers:
  - url: http://localhost:3000
    description: Local dev
security: []
tags:
  - name: better-auth
    description: >-
      Better Auth's own endpoints (sign-in, session, MFA, password) - generated
      from the audience's live config via `generateOpenAPISchema()`, not
      hand-written.
paths:
  /rs/security-register/v1/export-pdf:
    get:
      tags:
        - security-register
      summary: >-
        Render the synthetic security register (any subset of its 4 sections) to
        a PDF and return a presigned download URL.
      operationId: exportSecurityRegisterPdfRSV1
      parameters:
        - schema:
            minItems: 1
            maxItems: 250
            type: array
            items:
              type: string
              format: uuid
              pattern: >-
                ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
            example:
              - 550e8400-e29b-41d4-a716-446655440000
              - 6ba7b810-9dad-11d1-80b4-00c04fd430c8
          in: query
          name: whereUnitIds
          required: false
          description: >-
            The security-register unit. Required - the register is
            single-establishment.
        - schema:
            minItems: 1
            type: array
            items:
              type: string
              enum:
                - periodic_checks
                - exercises
                - collective_trainings
                - safety_staff
          in: query
          name: sections
          required: false
          description: >-
            Sections to include, rendered in document order whatever the order
            given.
        - schema:
            type: string
            enum:
              - fr
              - en
              - de
          in: query
          name: lang
          required: false
          description: >-
            Document language. Defaults to the language resolved for the
            request.
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  presignedUrl:
                    type: string
                    format: uri
                required:
                  - presignedUrl
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  requestId:
                    type: string
                  details: {}
                required:
                  - error
                  - message
                  - requestId
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  requestId:
                    type: string
                  details: {}
                required:
                  - error
                  - message
                  - requestId
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  requestId:
                    type: string
                  details: {}
                required:
                  - error
                  - message
                  - requestId
                additionalProperties: false

````