What it does
Returns the current detail of a single template (by MetasourceId). Data is read fresh directly from Meta (no caching); the app_id is verified to belong to the organization. With expand=components, the body/header/button details are included too.
Endpoint
Headers
Secret key in
Bearer sk_... format. See Secret Key authentication.Path parameters
Application ID. Must belong to the organization.
The template’s Meta ID.
Query parameters
components → also returns the components. Default: metadata only.Response
Type:Result[TemplateResponseModel] (single). The envelope is { "data": { ... }, "isSuccess": true }.
true when the request completed successfully.Null fields (
id, createdAt, messageSendTtlSeconds, correctCategory, previousCategory) are dropped from the response. Phone buttons are returned from Meta in RFC3966 format (tel:+90-555-123-45-67).Examples
Demo 1 — detail (default, without components)
Demo 1 — detail (default, without components)
Demo 2 — detail + components (expand=components)
Demo 2 — detail + components (expand=components)
Demo 3 — rejected template (rejectedReason populated)
Demo 3 — rejected template (rejectedReason populated)
Demo 4 — AUTHENTICATION template detail
Demo 4 — AUTHENTICATION template detail
Demo 5 — not found (invalid source_id) → 404
Demo 5 — not found (invalid source_id) → 404
Errors
Error details with
code, group, and description; isSuccess is false.