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

# Archive or unarchive

> Archive or unarchive an inbox item.



## OpenAPI

````yaml openapi.json PATCH /api/v1/inbox/update-archived
openapi: 3.1.0
info:
  title: Posttu API
  version: 1.0.0
  description: >-
    Posttu V1 REST API — Workflow automation, social-media post management,
    inbox, tags, and calendar.
servers:
  - url: https://posttu.com
    description: Production
security: []
paths:
  /api/v1/inbox/update-archived:
    patch:
      tags:
        - Inbox
      summary: Archive or unarchive
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateArchivedStatus'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InboxUpdateArchivedResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    UpdateArchivedStatus:
      type: object
      properties:
        inboxItemId:
          type: string
          description: Posttu Inbox item ID (CUID)
          example: clx123abc456
        isArchived:
          type: boolean
          description: Archived status
          example: true
      required:
        - inboxItemId
    InboxUpdateArchivedResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Success status
        error:
          type: string
          description: Error message
        data:
          type:
            - object
            - 'null'
          properties:
            inboxItemId:
              type: string
              description: Posttu Inbox item ID
            isArchived:
              type: boolean
              description: Updated archived status
          required:
            - inboxItemId
            - isArchived
      required:
        - success
        - data
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: 'Pass your API key via the Authorization header: `Bearer <api-key>`'

````

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