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

# アリムトークのテンプレートを取得する

> 配信プラットフォームが`Notifly`のカカオトークチャンネルで、アリムトークテンプレートを本文とともに1件取得します。`#{変数名}`は置換前の形式で返ります。



## OpenAPI

````yaml /ja/api-reference/openapi.yaml get /v1/projects/{projectId}/messages/kakao-alimtalk/templates/{templateCode}
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サーバー
security: []
tags:
  - name: catalog
    x-group: カタログ
paths:
  /v1/projects/{projectId}/messages/kakao-alimtalk/templates/{templateCode}:
    get:
      summary: get-kakao-bizmessage-alimtalk-template
      operationId: getKakaoBizmessageAlimtalkTemplate
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
          description: プロジェクトIDです。
        - name: templateCode
          in: path
          required: true
          schema:
            type: string
          description: テンプレートコードです。
        - name: sender_channel_id
          in: query
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 200
          description: >-
            プロジェクトに登録済みのカカオトークチャンネルIDです。配信プラットフォームが`Notifly`のチャンネルに対応します。`Notifly
            (Legacy)`のチャンネルは旧バージョンのテンプレート一覧取得APIを使います。
      responses:
        '200':
          description: テンプレートの詳細を取得しました。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KakaoAlimtalkTemplateDetailResponse'
        '400':
          description: リクエストパラメーターが不正です。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotiflyV1ErrorResponse'
        '401':
          description: トークンが無効か期限切れのため、認証に失敗しました。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotiflyV1ErrorResponse'
        '403':
          description: プロジェクトへのアクセス権限がありません。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotiflyV1ErrorResponse'
        '404':
          description: カカオトークチャンネルまたはテンプレートが見つかりません。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotiflyV1ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    KakaoAlimtalkTemplateDetailResponse:
      type: object
      required:
        - data
        - error
      properties:
        data:
          type: object
          properties:
            sender_channel_id:
              type: string
            template_code:
              type: string
            template_name:
              type: string
            template_message_type:
              type: string
              nullable: true
            template_emphasize_type:
              type: string
              nullable: true
            status:
              type: string
              enum:
                - registered
                - requested
                - approved
                - rejected
            template:
              type: object
              nullable: true
              description: >-
                Notiflyに保存されたテンプレートの内容です。本文（`template_content`）、タイトル、画像、アイテム、ボタン（`template_buttons`）、クイック返信（`template_quick_replies`）などを含みます。`#{変数名}`は置換前の原文です。保存された内容がない場合は`null`です。
        error:
          nullable: true
          description: 成功時はnullです。
    NotiflyV1ErrorResponse:
      type: object
      properties:
        data:
          type: object
          nullable: true
          description: 失敗時はnullです。
        error:
          oneOf:
            - type: string
            - $ref: '#/components/schemas/NotiflyV1ErrorObject'
          description: >-
            v1
            APIのエラーレスポンスです。認証や権限のエラーはcodeとmessageを持つオブジェクト、リクエストの検証エラーは文字列で返される場合があります。
      example:
        data: null
        error:
          code: UNAUTHORIZED
          message: Invalid Authorization Token
    NotiflyV1ErrorObject:
      type: object
      properties:
        code:
          type: string
          description: エラーコードです。
        message:
          type: string
          description: エラーメッセージです。
  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.