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

# Get template

> Fetch a single template by id.



## OpenAPI

````yaml /openapi.json get /v1/whatsapp/templates/{template_id}
openapi: 3.1.0
info:
  title: Briq API
  description: Karibu Briq API Documentation
  version: '0.8'
servers:
  - url: https://karibu.briq.tz
    description: Production
  - url: https://pre-release.karibu.briq.tz
    description: Pre-release
  - url: http://karibu.briq.tz
    description: LocalPass
security: []
paths:
  /v1/whatsapp/templates/{template_id}:
    get:
      tags:
        - Karibu-Whatsapp-Templates
      summary: Get template
      description: Fetch a single template by id.
      operationId: wa_get_template
      parameters:
        - name: template_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Template id.
      responses:
        '200':
          description: The template.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WaTemplateItem'
        '404':
          description: Template not found in this workspace.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WaErrorEnvelope'
components:
  schemas:
    WaTemplateItem:
      type: object
      description: >-
        An admin-managed WhatsApp template. Only APPROVED templates are
        sendable.
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        language:
          type: string
          nullable: true
        category:
          allOf:
            - $ref: '#/components/schemas/WaTemplateCategory'
          nullable: true
        status:
          $ref: '#/components/schemas/WaTemplateAdminStatus'
        params:
          type: object
          nullable: true
          description: Declared template parameters.
        parameter_format:
          type: string
          nullable: true
          description: NAMED or POSITIONAL.
        template_type:
          allOf:
            - $ref: '#/components/schemas/WaTemplateType'
          nullable: true
        whatsapp_sender_number_id:
          type: string
          format: uuid
          nullable: true
          description: Owning sender.
        provider:
          type: string
          nullable: true
        provider_template_id:
          type: string
          nullable: true
        rejection_reason_text:
          type: string
          nullable: true
        quality_score:
          type: string
          nullable: true
        is_deleted:
          type: boolean
        last_sent_at:
          type: string
          format: date-time
          nullable: true
        approved_at:
          type: string
          format: date-time
          nullable: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    WaErrorEnvelope:
      type: object
      properties:
        success:
          type: boolean
          example: false
        data:
          type: object
          nullable: true
          description: >-
            On a failed send that still produced a record, carries the pollable
            message_id with status='failed'; otherwise null.
        errors:
          type: array
          items:
            $ref: '#/components/schemas/WaApiError'
        request_id:
          type: string
    WaTemplateCategory:
      type: string
      enum:
        - AUTH
        - UTILITY
        - MARKETING
    WaTemplateAdminStatus:
      type: string
      enum:
        - DRAFT
        - IN_REVIEW
        - APPROVED
        - PAUSED
        - REJECTED
        - DISABLED
        - IN_APPEAL
        - PENDING_DELETION
        - DELETED
        - LIMIT_EXCEEDED
        - ARCHIVED
    WaTemplateType:
      type: string
      enum:
        - standard
        - authentication
        - flow
        - limited_time_offer
    WaApiError:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        field:
          type: string
          nullable: true

````