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

# Get template

> Retrieve comprehensive configuration, components, and approval status for a template

Retrieve full metadata for a message template by its UUID identifier, including component structures, Meta review status, quality rating, and associated channel bindings.

***

### Authentication

This endpoint requires Bearer token authentication.

```http theme={null}
Authorization: Bearer <token>
```

| Header          | Type     | Required | Description                                     | Format           |
| :-------------- | :------- | :------- | :---------------------------------------------- | :--------------- |
| `Authorization` | `string` | **Yes**  | Scoped organization API key or Bearer JWT token | `Bearer <token>` |

***

### Input parameters

<ParamField path="template_id" type="string" required>
  Unique UUID identifier of the template. Example: `3a4b5c6d-7e8f-9012-3456-789abcdef012`.
</ParamField>

<ParamField header="Authorization" type="string" required>
  Bearer token for authentication. Format: `Bearer <token>`.
</ParamField>

***

### Response Fields

<ResponseField name="id" type="string">
  Template UUID in Sayvy AI.
</ResponseField>

<ResponseField name="account_id" type="string">
  Internal system account identifier.
</ResponseField>

<ResponseField name="channel_id" type="string">
  Associated WhatsApp phone number channel UUID.
</ResponseField>

<ResponseField name="waba_id" type="string">
  Meta WhatsApp Business Account identifier.
</ResponseField>

<ResponseField name="meta_template_id" type="string">
  Meta Graph API template ID.
</ResponseField>

<ResponseField name="name" type="string">
  Unique template slug name.
</ResponseField>

<ResponseField name="language" type="string">
  BCP-47 language tag (e.g. `en_US`).
</ResponseField>

<ResponseField name="category" type="string">
  Category: `MARKETING`, `UTILITY`, or `AUTHENTICATION`.
</ResponseField>

<ResponseField name="status" type="string">
  Current operational status: `PENDING`, `APPROVED`, or `REJECTED`.
</ResponseField>

<ResponseField name="components" type="object[]">
  Structured header, body, footer, and button components.
</ResponseField>

<ResponseField name="quality_score" type="string">
  Meta quality score: `GREEN`, `YELLOW`, `RED`, or `UNKNOWN`.
</ResponseField>

<ResponseField name="created_at" type="string">
  Creation timestamp.
</ResponseField>

<ResponseField name="updated_at" type="string">
  Last modification timestamp.
</ResponseField>

***

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://api.sayvy.ai/api/v1/templates/3a4b5c6d-7e8f-9012-3456-789abcdef012" \
    -H "Authorization: Bearer <token>"
  ```

  ```python Python theme={null}
  import requests

  url = "https://api.sayvy.ai/api/v1/templates/3a4b5c6d-7e8f-9012-3456-789abcdef012"

  headers = {
      "Authorization": "Bearer <token>"
  }

  response = requests.get(url, headers=headers)
  print(response.status_code)
  print(response.json())
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch("https://api.sayvy.ai/api/v1/templates/3a4b5c6d-7e8f-9012-3456-789abcdef012", {
    method: "GET",
    headers: {
      "Authorization": "Bearer <token>"
    }
  });

  const data = await response.json();
  console.log(data);
  ```

  ```java Java theme={null}
  HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://api.sayvy.ai/api/v1/templates/3a4b5c6d-7e8f-9012-3456-789abcdef012"))
      .header("Authorization", "Bearer <token>")
      .GET()
      .build();

  HttpResponse<String> response =
      HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
  System.out.println(response.body());
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "id": "3a4b5c6d-7e8f-9012-3456-789abcdef012",
    "account_id": "act_88492019",
    "channel_id": "8f3b0e2a-71d3-4a5f-9e6b-123456789abc",
    "waba_id": "104928374829102",
    "meta_template_id": "992817482910293",
    "name": "summer_promo_2026",
    "language": "en_US",
    "category": "MARKETING",
    "status": "APPROVED",
    "components": [
      {
        "type": "HEADER",
        "format": "TEXT",
        "text": "Exclusive Summer VIP Offer"
      },
      {
        "type": "BODY",
        "text": "Hi {{1}}, thank you for being a valued customer! Enjoy 20% off your next purchase with code {{2}}."
      },
      {
        "type": "FOOTER",
        "text": "Reply STOP to unsubscribe"
      },
      {
        "type": "BUTTONS",
        "buttons": [
          {
            "type": "URL",
            "text": "Shop Now",
            "url": "https://example.com/shop"
          }
        ]
      }
    ],
    "quality_score": "GREEN",
    "created_at": "2026-09-07T11:20:00Z",
    "updated_at": "2026-09-07T11:25:00Z"
  }
  ```

  ```json 401 Unauthorized theme={null}
  {
    "detail": "Unauthorized"
  }
  ```

  ```json 404 Not Found theme={null}
  {
    "detail": "Template not found or does not belong to this organization."
  }
  ```
</ResponseExample>

***

<div
  style={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
backgroundColor: "rgba(255, 255, 255, 0.03)",
border: "1px solid rgba(255, 255, 255, 0.08)",
borderRadius: "16px",
padding: "10px 18px",
marginTop: "40px",
gap: "16px",
flexWrap: "wrap"
}}
>
  <a
    href="/api-reference/templates/list-templates"
    style={{
display: "inline-flex",
alignItems: "center",
gap: "6px",
color: "#94A3B8",
textDecoration: "none",
fontSize: "14px",
fontWeight: "500",
padding: "4px 8px"
}}
  >
    <span style={{ fontSize: "16px" }}>‹</span> Previous
  </a>

  <div
    style={{
display: "flex",
alignItems: "center",
gap: "16px",
backgroundColor: "rgba(255, 255, 255, 0.04)",
border: "1px solid rgba(255, 255, 255, 0.06)",
borderRadius: "12px",
padding: "8px 16px",
marginLeft: "auto"
}}
  >
    <div style={{ textAlign: "right" }}>
      <div style={{ fontSize: "13px", fontWeight: "700", color: "#F8FAFC" }}>Delete template</div>

      <div style={{ fontSize: "11px", color: "#94A3B8", maxWidth: "260px", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }}>
        DELETE /api/v1/templates/\{template\_id}
      </div>
    </div>

    <div style={{ width: "1px", height: "24px", backgroundColor: "rgba(255, 255, 255, 0.1)" }} />

    <a
      href="/api-reference/templates/delete-template"
      style={{
  display: "inline-flex",
  alignItems: "center",
  gap: "6px",
  color: "#94A3B8",
  textDecoration: "none",
  fontSize: "14px",
  fontWeight: "500"
}}
    >
      Next <span style={{ fontSize: "16px" }}>›</span>
    </a>
  </div>
</div>
