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

# Tag an item

> Add or remove a tag on an inbox item, conversation, post, workflow, or media.



## OpenAPI

````yaml openapi.json PATCH /api/v1/tags/item
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/tags/item:
    patch:
      tags:
        - Tags
      summary: Add or remove a tag on an item
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateTagOnItem'
      responses:
        '200':
          description: Tag update result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagUpdateItemResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    UpdateTagOnItem:
      type: object
      properties:
        tagId:
          type: string
          description: Tag ID
          example: tag_abc123
        action:
          type: string
          enum:
            - add
            - remove
          description: Action to perform
          example: add
        item:
          type: object
          properties:
            id:
              type: string
              description: Item ID to tag
              example: item_xyz789
            type:
              type: string
              enum:
                - inboxItem
                - conversation
                - post
                - workflow
                - media
              description: Item type
              example: post
            channelId:
              type: string
              description: Channel ID (for conversation creation)
            platform:
              type: string
              description: Platform name (for conversation creation)
            externalId:
              type: string
              description: External conversation ID
            participants:
              description: Participants JSON
            snippet:
              type:
                - string
                - 'null'
              description: Last message snippet
            lastMessageAt:
              anyOf:
                - type: string
                  format: date-time
                - type: string
                - type: number
              description: Last message timestamp
            unread:
              type: boolean
              description: Unread indicator
          required:
            - id
            - type
      required:
        - tagId
        - action
        - item
    TagUpdateItemResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Success status
        error:
          type: string
          description: Error message
        data:
          type: object
          properties:
            tagId:
              type: string
              description: Tag ID
            action:
              type: string
              description: Action performed
              example: add
            itemId:
              type: string
              description: Item ID
          required:
            - tagId
            - action
            - itemId
        message:
          type: string
          description: Status message
      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.