Skip to main content

What it does

Returns the current detail of a single template (by Meta sourceId). 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

Authorization
string
required
Secret key in Bearer sk_... format. See Secret Key authentication.

Path parameters

app_id
string
required
Application ID. Must belong to the organization.
source_id
string
required
The template’s Meta ID.

Query parameters

expand
string[]
components → also returns the components. Default: metadata only.

Response

Type: Result[TemplateResponseModel] (single). The envelope is { "data": { ... }, "isSuccess": true }.
isSuccess
boolean
true when the request completed successfully.
data
object
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


Errors

errors
object
Error details with code, group, and description; isSuccess is false.

Auth / tenant

Request validation (422)

Meta-side