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

# Download a cover letter in PDF, DOCX, Markdown or JSON

> Uses live linked sender/design details. Structured letter greetings default to English; supply words to localize them. Dates use the document locale.



## OpenAPI

````yaml /spec.json get /cover-letters/{id}/exports/{format}
openapi: 3.1.1
info:
  title: Reactive Resume
  version: 6.0.0
  description: >-
    Reactive Resume API. Mutations do not support Idempotency-Key. Do not
    automatically retry POST, PUT, PATCH or DELETE requests after a timeout:
    first read the resource to determine whether the operation succeeded.
    Existing enum values and response shapes are retained for compatibility.
  license:
    name: MIT
    url: https://github.com/reactive-resume/reactive-resume/blob/main/LICENSE
  contact:
    name: Amruth Pillai
    email: hello@amruthpillai.com
    url: https://amruthpillai.com
servers:
  - url: https://rxresu.me/api/openapi
security:
  - apiKey: []
  - bearerAuth: []
  - cookieAuth: []
externalDocs:
  url: https://docs.rxresu.me
  description: Reactive Resume Documentation
paths:
  /cover-letters/{id}/exports/{format}:
    get:
      tags:
        - Cover Letters
      summary: Download a cover letter in PDF, DOCX, Markdown or JSON
      description: >-
        Uses live linked sender/design details. Structured letter greetings
        default to English; supply words to localize them. Dates use the
        document locale.
      operationId: exportCoverLetterFile
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            minLength: 1
        - name: format
          in: path
          required: true
          schema:
            enum:
              - pdf
              - docx
              - md
              - json
            type: string
        - name: words
          in: query
          schema:
            type: object
            properties:
              greeting:
                type: string
                maxLength: 500
                description: Use {name} for the recipient.
              teamGreeting:
                type: string
                maxLength: 500
              hiringTeam:
                type: string
                maxLength: 500
              signOff:
                type: string
                maxLength: 500
            required:
              - greeting
              - teamGreeting
              - hiringTeam
              - signOff
          style: deepObject
          explode: true
          allowEmptyValue: true
          allowReserved: true
      responses:
        '200':
          description: OK
          headers:
            content-disposition:
              schema:
                type: string
              required: true
          content:
            '*/*':
              schema:
                type: string
                contentMediaType: '*/*'
        default:
          description: >-
            Structured API error. See status and code; do not branch on message
            text.
          content:
            application/json:
              schema:
                type: object
                required:
                  - defined
                  - code
                  - status
                  - message
                properties:
                  defined:
                    type: boolean
                  code:
                    type: string
                  status:
                    type: integer
                  message:
                    type: string
                  data: {}
      security:
        - apiKey: []
        - bearerAuth: []
        - cookieAuth: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      name: x-api-key
      in: header
      description: The API key to authenticate requests.
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: An OAuth access token issued by this instance for its API/MCP resource.
    cookieAuth:
      type: apiKey
      in: cookie
      name: better-auth.session_token
      description: >-
        Browser session (secure deployments use the __Secure- prefix). Cookie
        requests must originate from this instance.

````

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