> ## 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.

# 카카오 브랜드 메시지 기본형 발송

> 템플릿을 사용하여 발송합니다.

> [!WARNING]
>
> **주의 사항**
>
> * HTTP API 발송은 카카오톡 발송 플랫폼이 `Notifly`인 경우만 지원합니다. `Notifly (Legacy)`는 사용할 수 없습니다.
> * `200` 응답의 `{ "success": true }`는 발송 요청이 큐에 접수되었다는 의미이며, 카카오의 최종 발송 성공을 의미하지 않습니다.
> * 아직 API를 이용한 발송 결과에 대한 통계는 UI로 제공되지 않습니다. 정보가 필요하실 경우 [contact@notifly.tech](mailto:contact@notifly.tech)으로 문의해주세요.


## OpenAPI

````yaml /ko/api-reference/openapi.yaml post /messages/kakao-brand-message
openapi: 3.0.3
info:
  title: Notifly API
  version: 1.0.0
  contact:
    email: contact@notifly.tech
servers:
  - url: https://api.notifly.tech
    description: 노티플라이 API 서버입니다
security: []
tags:
  - name: catalog
    x-group: 카탈로그
paths:
  /messages/kakao-brand-message:
    post:
      summary: send-kakao-brand-message
      operationId: sendKakaoBrandMessage
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - projectId
                - templateId
                - brandMessageTarget
                - recipientList
              properties:
                projectId:
                  type: string
                  description: 노티플라이 설정 페이지에서 확인 가능
                templateId:
                  type: string
                  description: 등록한 발송 템플릿 ID
                brandMessageTarget:
                  type: string
                  enum:
                    - M
                    - 'N'
                    - I
                    - I+N
                  description: >-
                    발송 타겟. 허용값: M(마케팅 동의), N(비친구), I(채널 친구), I+N(채널 친구 우선 발송: I로
                    먼저 발송하고 비친구 실패분은 N으로 재발송)
                senderGroupingKey:
                  type: string
                  description: 발신 그룹핑 키 (최대 100자)
                recipientList:
                  type: array
                  items:
                    type: object
                    required:
                      - recipientNo
                    properties:
                      recipientNo:
                        type: string
                        description: 수신 번호
                      templateParameter:
                        type: object
                        description: >-
                          브랜드 메시지 템플릿의 `#{변수}`에 넣을 값입니다. 예: `#{customer_name}` →
                          `{ "customer_name": "홍길동" }`
                      failoverTextMessageTemplateParameter:
                        type: object
                        description: >
                          대체문자 템플릿의 변수 값입니다.


                          예: 대체문자 템플릿에 `{{ event["coupon_name"] }}`가 있으면 `{
                          "coupon_name": "8월 할인 쿠폰" }`을 입력합니다.


                          브랜드 메시지의 대체문자는 광고 SMS로 발송되며, 080 수신 거부 번호가 등록되어 있어야
                          합니다.
                  description: 수신자 목록 (최대 1,000명)
            example:
              projectId: example_project_1234567890abcdef
              templateId: template-id
              brandMessageTarget: M
              recipientList:
                - recipientNo: '01012345678'
                  templateParameter:
                    customer_name: 홍길동
                  failoverTextMessageTemplateParameter:
                    coupon_name: 8월 할인 쿠폰
      responses:
        '200':
          description: 발송 요청이 큐에 접수되었습니다. 카카오의 최종 발송 성공을 의미하지 않습니다.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
              example:
                success: true
        '400':
          description: 발신자 정보가 등록되지 않았습니다
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  error:
                    type: string
              example:
                success: false
                error: Sender info is not registered.
        '500':
          description: 서버 내부 오류입니다
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  error:
                    type: string
              example:
                success: false
                error: Internal Server Error
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: POST /authenticate로 발급받은 인증 토큰을 Bearer 형식으로 전달합니다.

````

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