# Create an SMS template

POST https://api.close.com/api/v1/sms_template/
Content-Type: application/json

Reference: https://developer.close.com/api/resources/sms-templates/create

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: Close API
  version: 1.0.0
paths:
  /sms_template/:
    post:
      operationId: create
      summary: Create an SMS template
      tags:
        - subpackage_smsTemplates
      parameters:
        - name: Authorization
          in: header
          description: Basic authentication
          required: true
          schema:
            type: string
      responses:
        '201':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sms_templates_create_Response_201'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                description: Any type
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                description: Any type
        '404':
          description: Not found
          content:
            application/json:
              schema:
                description: Any type
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSMSTemplate'
servers:
  - url: https://api.close.com/api/v1
components:
  schemas:
    CreateSMSTemplateAttachment:
      type: object
      properties:
        content_type:
          type: string
        filename:
          type: string
        url:
          type: string
      required:
        - content_type
        - filename
        - url
      title: CreateSMSTemplateAttachment
    CreateSMSTemplate:
      type: object
      properties:
        attachments:
          type: array
          items:
            $ref: '#/components/schemas/CreateSMSTemplateAttachment'
        is_shared:
          type: boolean
        name:
          type: string
        text:
          type: string
      required:
        - name
      title: CreateSMSTemplate
    sms_templates_create_Response_201:
      type: object
      properties: {}
      description: Empty response body
      title: sms_templates_create_Response_201
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: basic
    OAuth2:
      type: http
      scheme: bearer

```