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

# Register an AlimTalk template

> Register one AlimTalk template on a direct Kakao BizMessage channel and submit it for review. The server assigns a nine-character alphanumeric template code.

`requested` means Kakao has received the review request. Use the returned `data.template_code` to [check whether the template was approved or rejected](https://docs.notifly.tech/en/api-reference/get-kakao-bizmessage-alimtalk-template.md).

If you receive no response, [search for the template](https://docs.notifly.tech/en/api-reference/list-kakao-bizmessage-alimtalk-templates.md) by name on the same channel before submitting it again.


## OpenAPI

````yaml /en/api-reference/openapi.yaml post /v1/projects/{projectId}/messages/kakao-alimtalk/templates
openapi: 3.0.3
info:
  title: Notifly API
  version: 1.0.0
  contact:
    email: contact@notifly.tech
servers:
  - url: https://api.notifly.tech
    description: Notifly API server
security: []
tags:
  - name: catalog
    x-group: Catalogs
paths:
  /v1/projects/{projectId}/messages/kakao-alimtalk/templates:
    post:
      summary: create-kakao-bizmessage-alimtalk-template
      operationId: createKakaoBizmessageAlimtalkTemplate
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
          description: Project ID.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateKakaoAlimtalkTemplateRequest'
            example:
              sender_channel_id: '@example'
              template_name: Course registration
              template:
                template_content: 'Your registration for #{course} has been received.'
      responses:
        '200':
          description: Review submission accepted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateKakaoAlimtalkTemplateResponse'
              example:
                data:
                  sender_channel_id: '@example'
                  template_code: Ab3De6Gh9
                  status: requested
                error: null
        '400':
          description: >-
            Invalid JSON or input (INVALID_ARGUMENT), or Kakao explicitly
            rejected registration (TEMPLATE_REGISTRATION_REJECTED). The example
            shows an EX request missing the required template_extra.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/KakaoAlimtalkTemplateRegistrationErrorResponse
              example:
                data: null
                error:
                  code: INVALID_ARGUMENT
                  message: Invalid Kakao Alimtalk template.
                  fields:
                    - template.template_extra
        '401':
          description: Authentication required.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotiflyV1ErrorResponse'
              example:
                data: null
                error:
                  code: UNAUTHENTICATED
                  message: Invalid Authorization Token.
        '403':
          description: Access to the project denied.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotiflyV1ErrorResponse'
        '404':
          description: The project or direct sender channel could not be found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotiflyV1ErrorResponse'
        '408':
          description: Timed out while reading the request body (REQUEST_TIMEOUT).
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/KakaoAlimtalkTemplateRegistrationErrorResponse
        '413':
          description: The request body exceeds 1 MiB (PAYLOAD_TOO_LARGE).
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/KakaoAlimtalkTemplateRegistrationErrorResponse
        '500':
          description: >-
            TEMPLATE_STORAGE_FAILED after confirmed compensation,
            TEMPLATE_STORAGE_UNKNOWN if storage or compensation is uncertain, or
            TEMPLATE_REVIEW_STATUS_UNKNOWN if the accepted review state could
            not be saved. Other unexpected errors return INTERNAL.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/KakaoAlimtalkTemplateRegistrationErrorResponse
              example:
                data: null
                error:
                  code: INTERNAL
                  message: Internal server error.
        '502':
          description: >-
            If review submission fails, check the status using
            `error.template_code`. If the status stays `registered`, contact
            Notifly with that code.


            TEMPLATE_REGISTRATION_UNKNOWN when creation cannot be confirmed,
            TEMPLATE_REVIEW_REQUEST_FAILED when review submission is explicitly
            refused, or TEMPLATE_REVIEW_STATUS_UNKNOWN when review submission
            cannot be confirmed.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/KakaoAlimtalkTemplateRegistrationErrorResponse
              example:
                data: null
                error:
                  code: TEMPLATE_REVIEW_REQUEST_FAILED
                  message: Template registered, but Kakao rejected its review request.
                  template_code: Ab3De6Gh9
      security:
        - bearerAuth: []
components:
  schemas:
    CreateKakaoAlimtalkTemplateRequest:
      type: object
      additionalProperties: false
      required:
        - sender_channel_id
        - template_name
        - template
      properties:
        sender_channel_id:
          type: string
          minLength: 1
          maxLength: 200
          description: Exact channel ID of a project-owned direct Kakao BizMessage sender.
        template_name:
          type: string
          minLength: 1
          maxLength: 200
          description: Template name.
        template:
          type: object
          description: >-
            Only fields used by the selected types are registered. An empty
            optional string is treated as omitted.
          additionalProperties: false
          required:
            - template_content
          properties:
            template_content:
              type: string
              minLength: 1
              description: 'Template text with placeholders such as #{course}.'
            template_message_type:
              description: EX and MI require extra text. BA and AD ignore template_extra.
              type: string
              enum:
                - BA
                - EX
                - AD
                - MI
              default: BA
            template_emphasize_type:
              description: >-
                TEXT requires a title and subtitle. IMAGE requires an image name
                and URL. The image for ITEM_LIST is optional and requires both
                its name and URL.
              type: string
              enum:
                - NONE
                - TEXT
                - IMAGE
                - ITEM_LIST
              default: NONE
            template_extra:
              type: string
              description: >-
                Required for EX and MI. BA and AD omit this value from the
                registered template.
            template_title:
              type: string
            template_subtitle:
              type: string
            template_header:
              type: string
            template_image_name:
              type: string
            template_image_url:
              type: string
            template_item_highlight:
              type: object
              additionalProperties: false
              properties:
                title:
                  type: string
                description:
                  type: string
                image_url:
                  type: string
            template_item:
              type: object
              description: >-
                ITEM_LIST requires at least one of a header, highlight, list of
                2–10 items, or image.
              additionalProperties: false
              properties:
                list:
                  type: array
                  items:
                    $ref: '#/components/schemas/KakaoAlimtalkTemplateItemUnit'
                summary:
                  $ref: '#/components/schemas/KakaoAlimtalkTemplateItemUnit'
            template_buttons:
              type: array
              description: >-
                AD and MI automatically add the channel-add button first.
                Including that button, the limit is five buttons, or two when
                quick replies are present.
              items:
                type: object
                additionalProperties: false
                required:
                  - type
                  - name
                properties:
                  type:
                    type: string
                    enum:
                      - WL
                      - AL
                      - BK
                      - MD
                      - BC
                      - BT
                  name:
                    type: string
                    minLength: 1
                    maxLength: 14
                  link_mo:
                    type: string
                  link_pc:
                    type: string
                  scheme_android:
                    type: string
                  scheme_ios:
                    type: string
                allOf:
                  - $ref: '#/components/schemas/KakaoAlimtalkTemplateActionLinkRules'
                  - anyOf:
                      - properties:
                          type:
                            enum:
                              - BK
                              - MD
                              - BC
                              - BT
                      - properties:
                          link_mo:
                            $ref: >-
                              #/components/schemas/KakaoAlimtalkTemplateButtonWebLink
                          link_pc:
                            anyOf:
                              - type: string
                                maxLength: 0
                              - $ref: >-
                                  #/components/schemas/KakaoAlimtalkTemplateButtonWebLink
              maxItems: 5
              default: []
            template_quick_replies:
              type: array
              description: Up to five quick replies. BF quick replies require biz_form_id.
              items:
                type: object
                additionalProperties: false
                required:
                  - type
                  - name
                properties:
                  type:
                    type: string
                    enum:
                      - WL
                      - AL
                      - BK
                      - BC
                      - BT
                      - BF
                  name:
                    type: string
                    minLength: 1
                    maxLength: 14
                  link_mo:
                    type: string
                  link_pc:
                    type: string
                  scheme_android:
                    type: string
                  scheme_ios:
                    type: string
                  biz_form_id:
                    type: integer
                allOf:
                  - $ref: '#/components/schemas/KakaoAlimtalkTemplateActionLinkRules'
                  - anyOf:
                      - properties:
                          type:
                            enum:
                              - WL
                              - AL
                              - BK
                              - BC
                              - BT
                      - required:
                          - biz_form_id
                        properties:
                          biz_form_id:
                            type: integer
                            minimum: 1
                            maximum: 9007199254740991
              maxItems: 5
              default: []
            category_code:
              type: string
              pattern: ^$|\S
            security_flag:
              type: boolean
              default: false
          allOf:
            - anyOf:
                - properties:
                    template_message_type:
                      enum:
                        - BA
                        - AD
                - required:
                    - template_extra
                  properties:
                    template_extra:
                      type: string
                      minLength: 1
                      pattern: \S
            - anyOf:
                - properties:
                    template_emphasize_type:
                      enum:
                        - NONE
                        - IMAGE
                        - ITEM_LIST
                - required:
                    - template_title
                    - template_subtitle
                  properties:
                    template_title:
                      type: string
                      minLength: 1
                      pattern: \S
                    template_subtitle:
                      type: string
                      minLength: 1
                      pattern: \S
            - anyOf:
                - properties:
                    template_emphasize_type:
                      enum:
                        - NONE
                        - TEXT
                        - ITEM_LIST
                - $ref: >-
                    #/components/schemas/KakaoAlimtalkTemplateUploadedImageFields
            - anyOf:
                - properties:
                    template_emphasize_type:
                      enum:
                        - NONE
                        - TEXT
                        - IMAGE
                - allOf:
                    - anyOf:
                        - required:
                            - template_header
                          properties:
                            template_header:
                              type: string
                              minLength: 1
                              pattern: \S
                        - required:
                            - template_item_highlight
                        - required:
                            - template_item
                        - $ref: >-
                            #/components/schemas/KakaoAlimtalkTemplateUploadedImageFields
                    - anyOf:
                        - properties:
                            template_image_name:
                              type: string
                              maxLength: 0
                            template_image_url:
                              type: string
                              maxLength: 0
                        - $ref: >-
                            #/components/schemas/KakaoAlimtalkTemplateUploadedImageFields
                  properties:
                    template_header:
                      type: string
                      pattern: ^$|\S
                    template_item_highlight:
                      required:
                        - title
                        - description
                      properties:
                        title:
                          type: string
                          minLength: 1
                          pattern: \S
                        description:
                          type: string
                          minLength: 1
                          pattern: \S
                        image_url:
                          anyOf:
                            - type: string
                              maxLength: 0
                            - type: string
                              format: uri
                              pattern: ^[Hh][Tt][Tt][Pp][Ss]?://
                    template_item:
                      required:
                        - list
                      properties:
                        list:
                          minItems: 2
                          maxItems: 10
                          items:
                            required:
                              - title
                              - description
                            properties:
                              title:
                                type: string
                                minLength: 1
                                pattern: \S
                              description:
                                type: string
                                minLength: 1
                                pattern: \S
                        summary:
                          required:
                            - title
                            - description
                          properties:
                            title:
                              type: string
                              minLength: 1
                              pattern: \S
                            description:
                              type: string
                              minLength: 1
                              pattern: \S
            - anyOf:
                - properties:
                    template_message_type:
                      enum:
                        - BA
                        - EX
                - properties:
                    template_buttons:
                      maxItems: 4
            - anyOf:
                - properties:
                    template_quick_replies:
                      maxItems: 0
                - properties:
                    template_buttons:
                      maxItems: 1
                - properties:
                    template_message_type:
                      enum:
                        - BA
                        - EX
                    template_buttons:
                      maxItems: 2
    CreateKakaoAlimtalkTemplateResponse:
      type: object
      additionalProperties: false
      required:
        - data
        - error
      properties:
        data:
          type: object
          additionalProperties: false
          required:
            - sender_channel_id
            - template_code
            - status
          properties:
            sender_channel_id:
              type: string
            template_code:
              type: string
              pattern: ^[A-Za-z0-9]{9}$
            status:
              type: string
              enum:
                - requested
        error:
          type: object
          nullable: true
          enum:
            - null
    KakaoAlimtalkTemplateRegistrationErrorResponse:
      type: object
      required:
        - data
        - error
      properties:
        data:
          type: object
          nullable: true
          enum:
            - null
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            fields:
              type: array
              items:
                type: string
              description: Input field paths for validation errors.
            template_code:
              type: string
              pattern: ^[A-Za-z0-9]{9}$
    NotiflyV1ErrorResponse:
      type: object
      properties:
        data:
          type: object
          nullable: true
          description: null on failure.
        error:
          oneOf:
            - type: string
            - $ref: '#/components/schemas/NotiflyV1ErrorObject'
          description: >-
            Error returned by the v1 API. Authentication and authorization
            errors may be returned as an object with code and message fields.
            Request validation errors may be returned as a string.
      example:
        data: null
        error:
          code: UNAUTHORIZED
          message: Invalid Authorization Token
    KakaoAlimtalkTemplateItemUnit:
      type: object
      additionalProperties: false
      properties:
        title:
          type: string
        description:
          type: string
    KakaoAlimtalkTemplateActionLinkRules:
      type: object
      allOf:
        - anyOf:
            - properties:
                type:
                  enum:
                    - BK
                    - MD
                    - BC
                    - BT
                    - BF
            - required:
                - link_mo
              properties:
                link_mo:
                  $ref: '#/components/schemas/KakaoAlimtalkTemplateQuickReplyWebLink'
                link_pc:
                  anyOf:
                    - type: string
                      maxLength: 0
                    - $ref: >-
                        #/components/schemas/KakaoAlimtalkTemplateQuickReplyWebLink
        - anyOf:
            - properties:
                type:
                  enum:
                    - WL
                    - BK
                    - MD
                    - BC
                    - BT
                    - BF
            - required:
                - scheme_android
                - scheme_ios
              properties:
                scheme_android:
                  type: string
                  minLength: 1
                  pattern: \S
                scheme_ios:
                  type: string
                  minLength: 1
                  pattern: \S
    KakaoAlimtalkTemplateButtonWebLink:
      type: string
      anyOf:
        - pattern: >-
            ^[Hh][Tt][Tt][Pp][Ss]?://(?:(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\.)+[A-Za-z]{2,}|(?:[0-9]{1,3}\.){3}[0-9]{1,3})(?::[0-9]+)?(?:/[-A-Za-z0-9%_.~+@:/]*)?(?:\?[;&A-Za-z0-9%_.~+=-]*)?(?:#[-A-Za-z0-9%_.~+@:/?\[\]&=]*)?$
        - allOf:
            - pattern: (?:#\{[^}\r\n\u2028\u2029]*\}|\{\{[^{}]*\}\})
            - pattern: >-
                ^(?:(?:#\{[^}\r\n\u2028\u2029]*\}|\{\{[^{}]*\}\})|[-A-Za-z0-9._~:/?#\[\]@!$&'()*+,;=%])*$
    KakaoAlimtalkTemplateUploadedImageFields:
      type: object
      required:
        - template_image_name
        - template_image_url
      properties:
        template_image_name:
          type: string
          minLength: 1
          pattern: \S
        template_image_url:
          type: string
          format: uri
          pattern: ^[Hh][Tt][Tt][Pp][Ss]?://
    NotiflyV1ErrorObject:
      type: object
      properties:
        code:
          type: string
          description: Error code.
        message:
          type: string
          description: Error message.
    KakaoAlimtalkTemplateQuickReplyWebLink:
      anyOf:
        - $ref: '#/components/schemas/KakaoAlimtalkTemplateButtonWebLink'
        - type: string
          pattern: ^[Hh][Tt][Tt][Pp][Ss]?://[/\\]*[^\s/?#\\]+(?:[/\\?#]|$)
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Pass the token issued by `POST /authenticate` as a bearer token.

````

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