> ## Documentation Index
> Fetch the complete documentation index at: https://developer.omni.z-api.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Action capabilities

> The channel's message actions

## Overview

The channel's message actions.

> [!NOTE]
>
> On a Meta channel, `operations` is empty.


## OpenAPI

````yaml en/message-actions/openapi.json GET /v1/channels/{channelId}/messages/capabilities
openapi: 3.1.0
info:
  title: Omni Z-API - Message actions
  version: 1.0.0
servers:
  - url: https://api.omni.z-api.io
security:
  - bearerAuth: []
paths:
  /v1/channels/{channelId}/messages/capabilities:
    get:
      tags:
        - Ações em mensagem
      summary: Action capabilities
      description: >-
        Lists the message actions available on the channel. On a Meta channel
        the list is empty.
      operationId: messageActionCapabilities
      parameters:
        - name: channelId
          in: path
          required: true
          description: Channel id
          schema:
            type: string
            example: 58907809F0964E998D36C87F10EBA60C
      responses:
        '200':
          description: Action capabilities
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                  operations:
                    type: array
                    items:
                      type: string
              examples:
                whatsappWeb:
                  value:
                    type: Z_API_WHATSAPP
                    operations:
                      - DELETE_MESSAGE
                      - FORWARD_MESSAGE
                      - PIN_MESSAGE
                      - UNPIN_MESSAGE
                      - CHOOSE_OPTION
                meta:
                  value:
                    type: META_WHATSAPP
                    operations: []
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/IpNotAllowed'
        '404':
          description: Channel not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                instanceNotFound:
                  summary: Channel does not exist
                  value:
                    error: instance not found
components:
  responses:
    Unauthorized:
      description: Credential refused (Omni API)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Authorization invalid
            message: >-
              Authorization invalid: the Authorization header is missing or
              empty. Send the workspace Secret Key as "Authorization: Bearer
              <secret-key>". See
              https://developer.omni.z-api.io/en/authentication
      headers:
        WWW-Authenticate:
          description: Always `Bearer`.
          schema:
            type: string
          example: Bearer
    IpNotAllowed:
      description: IP not on the allow list (Omni API)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: ip_not_allowed
            message: >-
              203.0.113.10 not allowed: this workspace only accepts API calls
              from the IPs on its allow list. The workspace Owner can add this
              IP under Administration > Security > IP Restriction in the panel
              (changes take up to 10 minutes to apply), or call from an allowed
              IP. See https://developer.omni.z-api.io/en/security/ip-restriction
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
        field:
          type: string
        code:
          type: string
        subCode:
          type: string
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Secret Key

````

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