> ## 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 new 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_write`


## OpenAPI

````yaml /api/configuration/v3.7/openapi.json post /action/create_canned_response
openapi: 3.1.0
info:
  title: Configuration API
  version: v3.7
servers:
  - url: https://api.livechatinc.com/v3.7/configuration
security:
  - PersonalAccessToken: []
  - OAuth2BearerToken: []
paths:
  /action/create_canned_response:
    post:
      tags:
        - Canned responses
      summary: Create canned response
      description: >-
        Creates a new 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. Sanitized on creation — if
            sanitization removes all content, the request is rejected as
            invalid.
        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
          description: >-
            If set to `true`: the canned response will be private. If set to
            `false`: it will be public. Default: `false`.
    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

````