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

# Execute conversation action

> Execute an action on a conversation.

<Note>
  **Required scope:** `CONVERSATIONS_WRITE`
</Note>

## Available actions

| Action      | Effect                                              |
| ----------- | --------------------------------------------------- |
| `READ`      | Mark the conversation as read                       |
| `UNREAD`    | Mark the conversation as unread                     |
| `ARCHIVE`   | Archive the conversation and mark all items as read |
| `UNARCHIVE` | Unarchive the conversation                          |

Passing an unsupported action returns a `400` error with code `INVALID_ACTION`.

## Idempotency

All actions are **idempotent** — calling `READ` on an already-read conversation is a no-op and returns `200`.

This endpoint also supports the `Idempotency-Key` header. See [Idempotency](/en/v2/api-reference/guides/error-handling#idempotency).

## Scoping to a line

Omit `allo_number` to apply the action across all Allo numbers. Provide it to scope the action to a specific line.


## OpenAPI

````yaml PUT /v2/api/conversations/{contact_number}/action
openapi: 3.0.3
info:
  title: Allo API
  description: >-
    Allo API provides programmatic access to your Allo account, allowing you to
    manage webhooks, retrieve calls and contacts, and send SMS messages.


    All requests to `/v1/api/**` endpoints automatically go through quota
    checking and scope validation.
  version: 1.0.0
  contact:
    name: Allo Support
servers:
  - url: https://api.withallo.com
    description: Production server
security: []
tags:
  - name: Summary Templates
    description: >-
      Manage call summary templates that control how AI-generated call summaries
      are structured for your team.
  - name: Webhooks
    description: >-
      Manage webhook endpoints to receive real-time notifications about events
      in your Allo account. Each endpoint subscribes to one or more event topics
      and is verified with a signing secret.
  - name: Calls
    description: >-
      Retrieve and search call records with filtering and pagination. Filter
      calls by your Allo phone number.
  - name: Contacts
    description: >-
      Search and retrieve contact information with sorting and pagination.
      Includes engagement level tracking.
  - name: SMS
    description: Send SMS messages to phone numbers using your Allo numbers.
  - name: Phone Numbers
    description: Retrieve information about your Allo phone numbers.
  - name: Analytics
    description: Pre-computed call metrics, team performance, and outbound dial funnel
  - name: CRM
    description: Manage people, companies, and deals in your CRM.
paths:
  /v2/api/conversations/{contact_number}/action:
    put:
      tags:
        - Conversations
      summary: Execute conversation action
      description: Execute an action on a conversation.
      operationId: executeConversationAction
      parameters:
        - name: contact_number
          in: path
          required: true
          description: >-
            The external phone number in E.164 format. URL-encode the `+` as
            `%2B`.
          schema:
            type: string
            example: '+14155551234'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                action:
                  type: string
                  enum:
                    - READ
                    - UNREAD
                    - ARCHIVE
                    - UNARCHIVE
                  description: The action to execute.
                allo_number:
                  type: string
                  description: >-
                    Scope the action to a specific Allo number (E.164). Without
                    this, the action applies across all lines.
                  example: '+14155550100'
              required:
                - action
            example:
              action: READ
              allo_number: '+14155550100'
      responses:
        '200':
          description: Action executed successfully
        '401':
          $ref: '#/components/responses/ApiUnauthorized'
        '404':
          $ref: '#/components/responses/ApiNotFound'
        '429':
          $ref: '#/components/responses/ApiRateLimited'
      security:
        - ApiKeyAuth: []
components:
  responses:
    ApiUnauthorized:
      description: Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    ApiNotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    ApiRateLimited:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  schemas:
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
            code:
              type: string
            message:
              type: string
            retryable:
              type: boolean
            request_id:
              type: string
            retry_after_seconds:
              type: integer
              nullable: true
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

````