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

# WhatsApp Canned Responses API — Reply Shortcuts

> Create and manage WhatsApp canned responses on Vobiz - reusable reply snippets that agents trigger with a /shortcut command directly inside the inbox.

> [!NOTE]
>
> **How agents use them:** In the inbox, an agent types `/greeting` and the pre-saved content is automatically inserted into the reply box.

**Base URL:** `https://api.vobiz.ai/api/v1/Account/{auth_id}/WhatsApp`

**Authentication:** every request needs the `X-Auth-ID: MA_XXXXXXXX` and `X-Auth-Token: YOUR_AUTH_TOKEN` headers, and the `{auth_id}` in the path must be the account those credentials belong to. Set `Content-Type: application/json` on requests with a body. Get your credentials from [console.vobiz.ai](https://console.vobiz.ai).

## Endpoints overview

| Method | Endpoint | Description |
| - | - | - |
| `GET` | `/api/v1/Account/{auth_id}/WhatsApp/CannedResponse/` | List all canned responses |
| `POST` | `/api/v1/Account/{auth_id}/WhatsApp/CannedResponse/` | Create a canned response |
| `DELETE` | `/api/v1/Account/{auth_id}/WhatsApp/CannedResponse/{id}/` | Delete a canned response |

## List canned responses

```http theme={null}
GET https://api.vobiz.ai/api/v1/Account/{auth_id}/WhatsApp/CannedResponse/
```

Returns all canned responses for your account, newest first. The list isn't paginated: `page` is always `1`, `limit` is always `100`, and `has_more` is always `false`. This request takes no path parameters and no request body.

```bash cURL theme={null}
curl -X GET \
  "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/WhatsApp/CannedResponse/" \
  -H "X-Auth-ID: MA_XXXXXXXX" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN"
```

```json 200 OK theme={null}
{
  "items": [
    {
      "id": "c4d5e6f7-0819-42a3-b4c5-d6e7f8091021",
      "shortcut": "/hours",
      "content": "Our support hours are Monday-Friday, 9am-6pm IST.",
      "created_at": "2026-03-02T11:00:00Z"
    },
    {
      "id": "b3c4d5e6-f708-4192-a3b4-c5d6e7f80910",
      "shortcut": "/greeting",
      "content": "Hello! Thank you for reaching out. How can I help you today?",
      "created_at": "2026-03-01T10:00:00Z"
    }
  ],
  "total": 2,
  "page": 1,
  "limit": 100,
  "has_more": false
}
```

## Create canned response

```http theme={null}
POST https://api.vobiz.ai/api/v1/Account/{auth_id}/WhatsApp/CannedResponse/
```

Create a new canned response. The `shortcut` is the trigger agents type in the inbox, and it must be unique on your account. The `content` is the full text inserted. A missing field or a shortcut that already exists returns `400`. Returns `201 Created`.

| Field | Required | Description |
| - | - | - |
| `shortcut` | Yes | Trigger keyword (e.g. `/greeting`). Must be unique on your account. |
| `content` | Yes | Full text of the canned reply |

```bash cURL theme={null}
curl -X POST \
  "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/WhatsApp/CannedResponse/" \
  -H "X-Auth-ID: MA_XXXXXXXX" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"shortcut":"/greeting","content":"Hello! Thank you for reaching out. How can I help you today?"}'
```

```json 201 Created theme={null}
{
  "id": "b3c4d5e6-f708-4192-a3b4-c5d6e7f80910",
  "shortcut": "/greeting",
  "content": "Hello! Thank you for reaching out. How can I help you today?",
  "created_at": "2026-03-01T10:00:00Z"
}
```

## Delete canned response

```http theme={null}
DELETE https://api.vobiz.ai/api/v1/Account/{auth_id}/WhatsApp/CannedResponse/{id}/
```

Permanently delete a canned response. Agents can no longer insert it with its shortcut. Returns `204 No Content`, or `404` for an unknown canned response.

```bash cURL theme={null}
curl -X DELETE \
  "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/WhatsApp/CannedResponse/{id}/" \
  -H "X-Auth-ID: MA_XXXXXXXX" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN"
```

```text 204 No Content theme={null}
// Empty body on success
```

## Canned response object

| Field | Type | Description |
| - | - | - |
| `id` | UUID | Canned response ID |
| `shortcut` | string | Trigger keyword (e.g. `/greeting`) |
| `content` | string | Full text inserted into the reply box |
| `created_at` | RFC3339 | Creation timestamp (UTC) |


## OpenAPI

````yaml openapi-whatsapp.yaml GET /api/v1/Account/{auth_id}/WhatsApp/CannedResponse/
openapi: 3.1.0
info:
  title: Vobiz WhatsApp API
  description: >
    Connect WhatsApp Business channels, submit message templates, send text,
    media and template

    messages, place and answer WhatsApp voice calls, run template campaigns, and
    manage contacts,

    canned responses, webhooks (callbacks) and media on the WhatsApp Business
    Platform through Vobiz.


    **Base URL:** `https://api.vobiz.ai/api/v1/Account/{auth_id}/WhatsApp`,
    where `{auth_id}` is your

    account Auth ID. Paths in descriptions, such as `POST /Message/`, are
    relative to it. The trailing

    slash is optional on every path.


    **Authentication:** every request needs the `X-Auth-ID` and `X-Auth-Token`
    headers. The

    `{auth_id}` in the path must be the account those credentials belong to,
    otherwise the request

    returns `403`. Send `Content-Type: application/json` on requests with a JSON
    body.


    **Conventions:** field names are snake_case. IDs that Vobiz issues
    (channels, templates,

    contacts, conversations, messages, campaigns, webhooks) are UUIDs; send them
    exactly as

    returned. Timestamps are RFC 3339 in UTC.

    Errors return a flat object with one `error` string. Authentication and
    authorization errors

    (`401` and `403`) nest a `code` and `message` under `error`.
  version: '1.0'
  contact:
    email: support@vobiz.ai
    url: https://www.vobiz.ai
servers:
  - url: https://api.vobiz.ai
    description: Production
security:
  - AuthID: []
    AuthToken: []
tags:
  - name: Channels
    description: >-
      WhatsApp Business phone numbers connected to your Vobiz account. Every
      send, template, call and campaign runs on a channel.
  - name: SIP integration
    description: >-
      Route a channel's WhatsApp voice calls over SIP to your own PBX or contact
      center instead of the browser (WebRTC) calling flow.
  - name: Templates
    description: >-
      Meta-approved message templates, the only messages you can send outside
      the 24-hour customer service window.
  - name: Numbers
    description: >-
      Search and buy WhatsApp-capable numbers from Vobiz inventory, or verify
      ownership of a number you already have (BYON).
  - name: Conversations
    description: >-
      Threads between one of your channels and one contact, with their message
      history.
  - name: Messages
    description: Send text, media and template messages.
  - name: Calls
    description: >-
      Place, answer and end WhatsApp Business voice calls with WebRTC signaling,
      and list call history.
  - name: Webhooks
    description: >-
      Subscriptions that deliver inbound messages, delivery status and call
      events to your server.
  - name: Media
    description: >-
      Upload media for outbound messages and download inbound attachments
      without handling Meta access tokens.
  - name: Contacts
    description: >-
      The people you message, with tags and custom attributes used for campaign
      targeting.
  - name: Canned responses
    description: Reusable reply snippets that inbox agents insert with a shortcut.
  - name: Campaigns
    description: >-
      Bulk sends of one approved template to a tagged, selected or full contact
      audience.
paths:
  /api/v1/Account/{auth_id}/WhatsApp/CannedResponse/:
    parameters:
      - $ref: '#/components/parameters/AuthId'
    get:
      tags:
        - Canned responses
      summary: List canned responses
      description: >-
        Returns all your canned responses, newest first. The list is not
        paginated.
      operationId: whatsapp-list-canned-responses
      responses:
        '200':
          description: Your canned responses.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CannedResponseList'
              example:
                items:
                  - id: 2b4d6f8a-0c1e-4a3b-9d5f-7e9a1c3b5d17
                    shortcut: thanks
                    content: Thanks for reaching out! We'll get back to you shortly.
                    created_at: '2026-10-12T08:00:00Z'
                total: 1
                page: 1
                limit: 100
                has_more: false
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/ServerError'
components:
  parameters:
    AuthId:
      name: auth_id
      in: path
      required: true
      description: Your account Auth ID. It must match the `X-Auth-ID` header.
      schema:
        type: string
        example: MA_XXXXXXXX
  schemas:
    CannedResponseList:
      type: object
      required:
        - items
        - total
        - page
        - limit
        - has_more
      properties:
        items:
          type: array
          description: All your canned responses, newest first.
          items:
            $ref: '#/components/schemas/CannedResponse'
        total:
          type: integer
          description: Number of canned responses.
          example: 1
        page:
          type: integer
          description: >-
            The page number. The list returns every canned response at once, so
            this is `1`.
          example: 1
        limit:
          type: integer
          description: The page size, `100`.
          example: 100
        has_more:
          type: boolean
          description: '`false`, because the list returns every canned response at once.'
          example: false
    CannedResponse:
      type: object
      required:
        - id
        - shortcut
        - content
        - created_at
      properties:
        id:
          type: string
          format: uuid
          description: Canned response ID.
          example: 2b4d6f8a-0c1e-4a3b-9d5f-7e9a1c3b5d17
        shortcut:
          type: string
          description: The shortcut agents type to insert it.
          example: thanks
        content:
          type: string
          description: The reply text.
          example: Thanks for reaching out! We'll get back to you shortly.
        created_at:
          type: string
          format: date-time
          example: '2026-10-12T08:00:00Z'
    GatewayError:
      type: object
      description: The body of an authentication (`401`) or authorization (`403`) error.
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: integer
              description: The HTTP status code, repeated.
              example: 401
            message:
              type: string
              description: What went wrong.
              example: Invalid authentication credentials
    Error:
      type: object
      description: >-
        An error response: a flat object with one `error` string. Use the HTTP
        status code to decide how to handle the error, and log `error` for
        diagnosis.
      required:
        - error
      properties:
        error:
          type: string
          description: >-
            Human-readable explanation of the error. Branch on the HTTP status
            code rather than on this text.
          example: channel not found
  responses:
    Unauthorized:
      description: Missing or invalid `X-Auth-ID` / `X-Auth-Token`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/GatewayError'
          examples:
            invalid:
              summary: Invalid credentials
              value:
                error:
                  code: 401
                  message: Invalid authentication credentials
            missing:
              summary: Missing credentials
              value:
                error:
                  code: 401
                  message: >-
                    Authentication required: provide either Authorization header
                    or X-Auth-ID and X-Auth-Token headers
    Forbidden:
      description: >-
        The `{auth_id}` in the path is not the account your credentials belong
        to.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/GatewayError'
          example:
            error:
              code: 403
              message: 'Access denied: account ID mismatch'
    ServerError:
      description: >-
        The request couldn't be completed. Retry it, and contact Vobiz support
        if the error persists.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    AuthID:
      type: apiKey
      in: header
      name: X-Auth-ID
      description: Your Vobiz account Auth ID (`MA_XXXXXXXX`).
    AuthToken:
      type: apiKey
      in: header
      name: X-Auth-Token
      description: Your Vobiz account Auth Token.

````

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