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

# Archive inbox contact thread

> Archive one inbox contact thread.

Required parameters:
- contactId: contact ID path parameter.

Notes:
- Archiving is lead-level, so all visible threads for that contact move into the archived inbox.
- The endpoint is idempotent. If the contact is already archived it still returns success.

    > **Required scope:** `MESSAGING_WRITE`
    >
    > **Rate limit:** 30 requests per minute



## OpenAPI

````yaml https://openapi.enginy.ai/definitions.json post /v1/inboxes/:contactId/archive
openapi: 3.1.0
info:
  title: Enginy API
  version: 1.0.0
  description: Public API for Enginy platform
servers:
  - url: https://openapi.enginy.ai
    description: Configured server
security: []
tags:
  - name: AI Variables
    description: >-
      Manage AI variables and discover the entity fields you can reference in
      prompts and entity requests.
  - name: Inbox
    description: >-
      Inbox endpoints for listing contact threads, reading thread messages,
      managing tags, and sending manual replies.
  - name: Workflows
    description: >-
      Build, validate, publish, run, and inspect advanced (graph) workflows,
      plus the block/condition catalog needed to author a workflow plan.
paths:
  /v1/inboxes/:contactId/archive:
    post:
      tags:
        - Inbox
      summary: Archive inbox contact thread
      description: >-
        Archive one inbox contact thread.


        Required parameters:

        - contactId: contact ID path parameter.


        Notes:

        - Archiving is lead-level, so all visible threads for that contact move
        into the archived inbox.

        - The endpoint is idempotent. If the contact is already archived it
        still returns success.

            > **Required scope:** `MESSAGING_WRITE`
            >
            > **Rate limit:** 30 requests per minute
      parameters:
        - schema:
            type: string
            description: Contact ID for the thread you want to inspect
            example: '123'
          required: true
          description: Contact ID for the thread you want to inspect
          name: contactId
          in: path
      responses:
        '200':
          description: Inbox thread archived successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - success
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      contactId:
                        type: number
                        description: Contact ID
                      archived:
                        type: boolean
                        description: Requested archive state after the operation
                      updatedCount:
                        type: number
                        description: >-
                          Number of archive rows changed. Zero means the contact
                          was already in the requested state
                      success:
                        type: boolean
                        description: Whether the archive mutation completed successfully
                    required:
                      - contactId
                      - archived
                      - updatedCount
                      - success
                required:
                  - status
                  - message
                  - data
              examples:
                default:
                  summary: Archive one contact thread
                  value:
                    status: success
                    message: Inbox thread archived successfully
                    data:
                      contactId: 123
                      archived: true
                      updatedCount: 1
                      success: true
        '400':
          description: Invalid contact ID
        '404':
          description: Contact or inbox thread not found
      security:
        - apiKey: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````