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

# Create canned response

> Creates a canned response.

The `text` field is sanitized on creation. If sanitization removes all content and the input becomes empty, the system rejects the request as invalid.

**Required scopes:** `canned_responses--groups:rw`, <Tooltip tip="Required to create canned responses in any group.">`canned_responses--all:rw`</Tooltip>


## OpenAPI

````yaml /api/configuration/v3.6/openapi.json post /action/create_canned_response
openapi: 3.1.0
info:
  title: Configuration API
  version: v3.6
servers:
  - url: https://api.livechatinc.com/v3.6/configuration
security:
  - PersonalAccessToken: []
  - OAuth2BearerToken: []
paths:
  /action/create_canned_response:
    post:
      tags:
        - Canned responses
      summary: Create canned response
      description: >-
        Creates a canned response.


        The `text` field is sanitized on creation. If sanitization removes all
        content and the input becomes empty, the system rejects the request as
        invalid.
      operationId: create-canned-response
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCannedResponseRequest'
            example:
              text: Thank you for contacting us! How can I help you today?
              tags:
                - greeting
                - support
              group_id: 1
              is_private: false
      responses:
        '200':
          description: Canned response created successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateCannedResponseResponse'
              example:
                id: 12345
components:
  schemas:
    CreateCannedResponseRequest:
      type: object
      required:
        - text
        - tags
        - group_id
      properties:
        text:
          type: string
          description: >-
            The canned response text content. The API sanitizes the text on
            creation and rejects the request as invalid if sanitization removes
            all content.
        tags:
          type: array
          items:
            type: string
          description: An array of tags.
        group_id:
          type: integer
          description: The ID of the group the canned response belongs to.
        is_private:
          type: boolean
          default: false
          description: >-
            If set to `true`: makes the canned response private. If set to
            `false`: makes it public.
    CreateCannedResponseResponse:
      type: object
      properties:
        id:
          type: integer
          description: The ID of the created canned response.
  securitySchemes:
    PersonalAccessToken:
      type: http
      scheme: basic
      description: >-
        Use your `account ID` as the username and your personal access token
        (PAT) as the password, or pass a Base64-encoded value directly in the
        Authorization header. For more information, see the <a
        href="/authentication/personal-access-tokens">personal access tokens
        guide</a>.
    OAuth2BearerToken:
      type: http
      scheme: bearer
      description: Authenticate using an OAuth 2.0 Bearer token.
      x-example: us-south1:MQraNrGCsoJvtxD7KNJQB1kM3d5

````

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