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

# Get one thing to process



## OpenAPI

````yaml /api/rs/openapi.json get /rs/inbox-items/v1/{id}
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/inbox-items/v1/{id}:
    get:
      tags:
        - inbox-items
      summary: Get one thing to process
      operationId: getInboxItemRSV1
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - mail
                - actions-info
                - download-url
                - latest-analysis
                - sender-provider
              description: >-
                Extend options (JSON-encoded array, e.g.
                `?extend=["category"]`):

                - "mail": Include the mail this item came out of (door, sender,
                subject, body, reception date).

                - "actions-info": Projects `{ canBeDismissed, canBeDeleted,
                canBecomeReport }`.

                - "download-url": Adds a presigned `downloadUrl` for the item's
                file, before any conversion.

                - "latest-analysis": Newest analysis run of the item (null when
                it has none), with the provider and unit its succeeded
                `metadata` step retained and the score each was retained on.

                - "sender-provider": Provider the sending address belongs to,
                when exactly one live contact of the organization carries it -
                the attribution that comes from the mail thread rather than from
                the document. Null when no contact, or contacts of several
                providers, answer to that address.
          in: query
          name: extend
          required: false
        - schema:
            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)$
          in: path
          name: id
          required: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    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)$
                  inboxMailId:
                    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)$
                  organizationId:
                    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)$
                  type:
                    type: string
                    enum:
                      - unknown
                      - report
                      - quote
                  status:
                    type: string
                    enum:
                      - pending
                      - processed
                      - dismissed
                  file:
                    type: object
                    properties:
                      name:
                        type: string
                        minLength: 1
                        maxLength: 255
                      mimeType:
                        type: string
                        minLength: 1
                        maxLength: 100
                      size:
                        type: integer
                        minimum: 0
                        exclusiveMinimum: true
                        maximum: 1073741824
                      storageKey:
                        type: string
                        minLength: 1
                        maxLength: 512
                    required:
                      - name
                      - mimeType
                      - size
                      - storageKey
                    additionalProperties: false
                  classifyParked:
                    type: boolean
                  reportId:
                    nullable: true
                    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)$
                  processedAt:
                    nullable: true
                    type: string
                    format: date-time
                  createdAt:
                    type: string
                    format: date-time
                  updatedAt:
                    type: string
                    format: date-time
                  inboxMail:
                    type: object
                    properties:
                      id:
                        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)$
                      source:
                        type: string
                        enum:
                          - email
                          - import
                      fromEmail:
                        type: string
                        format: email
                        pattern: >-
                          ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
                      subject:
                        nullable: true
                        type: string
                        maxLength: 300
                      body:
                        nullable: true
                        type: string
                        maxLength: 10000
                      receivedAt:
                        type: string
                        format: date-time
                    required:
                      - id
                      - source
                      - fromEmail
                      - subject
                      - body
                      - receivedAt
                    additionalProperties: false
                  actions:
                    type: object
                    properties:
                      canBeDismissed:
                        type: boolean
                      canBeDeleted:
                        type: boolean
                      canBecomeReport:
                        type: boolean
                    required:
                      - canBeDismissed
                      - canBeDeleted
                      - canBecomeReport
                    additionalProperties: false
                  downloadUrl:
                    type: string
                    format: uri
                  latestAnalysis:
                    nullable: true
                    type: object
                    properties:
                      id:
                        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)$
                      step:
                        type: string
                        enum:
                          - metadata
                          - anomalies
                          - comparison
                      status:
                        type: string
                        enum:
                          - pending
                          - running
                          - succeeded
                          - failed
                          - cancelled
                      error:
                        nullable: true
                        type: string
                        maxLength: 2000
                      startedAt:
                        nullable: true
                        type: string
                        format: date-time
                      finishedAt:
                        nullable: true
                        type: string
                        format: date-time
                      createdAt:
                        type: string
                        format: date-time
                      proposal:
                        nullable: true
                        type: object
                        properties:
                          provider:
                            nullable: true
                            type: object
                            properties:
                              label:
                                type: string
                              confidence:
                                type: number
                                minimum: 0
                                maximum: 1
                            required:
                              - label
                              - confidence
                            additionalProperties: false
                          unit:
                            nullable: true
                            type: object
                            properties:
                              label:
                                type: string
                              confidence:
                                type: number
                                minimum: 0
                                maximum: 1
                            required:
                              - label
                              - confidence
                            additionalProperties: false
                        required:
                          - provider
                          - unit
                        additionalProperties: false
                      reportType:
                        nullable: true
                        type: string
                        enum:
                          - pv
                          - rvre
                          - rvrat
                          - cr
                      metadataAnalysisId:
                        nullable: true
                        type: string
                    required:
                      - id
                      - step
                      - status
                      - error
                      - startedAt
                      - finishedAt
                      - createdAt
                      - proposal
                      - reportType
                      - metadataAnalysisId
                    additionalProperties: false
                  senderProvider:
                    nullable: true
                    type: object
                    properties:
                      id:
                        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)$
                      name:
                        type: string
                        minLength: 1
                        maxLength: 150
                    required:
                      - id
                      - name
                    additionalProperties: false
                required:
                  - id
                  - inboxMailId
                  - organizationId
                  - type
                  - status
                  - file
                  - classifyParked
                  - reportId
                  - processedAt
                  - createdAt
                  - updatedAt
                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

````