Skip to content

List Templates

GET
/platform/v1/templates
curl --request GET \
--url https://example.com/platform/v1/templates

List the account’s templates (newest first); all filters AND-combined.

All query params are OPTIONAL; absent = no filter. Unknown values return the empty list (no 422 — free filter, predictable API).

name
Any of:
string
status
Any of:
string
category
Any of:
string
language
Any of:
string

Successful Response

Media type application/json
Response List Templates Platform V1 Templates Get
Array<object>
PlatformTemplateResponse

Response shape — exposes Meta status snapshot + WF6 component fields.

object
body_text
required
Body Text
string
category
required
Category
string
components
Any of:
Array
Any of:
PlatformTemplateHeaderComponent

HEADER — one per template/card. format drives the invariants.

TEXT requires text; IMAGE/VIDEO/DOCUMENT require example.header_handle; LOCATION carries neither. Enforced by build_template_components._build_header.

object
example
Any of:
PlatformTemplateHeaderExample

HEADER example — header_text (TEXT) XOR header_handle (media).

header_handle is the list-of-one Meta upload handle returned by POST /platform/v1/templates/header-media.

object
header_handle
Any of:
Array<string>
header_text
Any of:
Array<string>
format
required
Format
string
Allowed values: TEXT IMAGE VIDEO DOCUMENT LOCATION
text
Any of:
string
type
required
Type
string
Allowed value: HEADER
created_at
required
Created At
string format: date-time
header_format
Any of:
string
id
required
Id
integer
is_active
required
Is Active
boolean
language_code
required
Language Code
string
meta_category
Any of:
string
meta_rejection_reason
Any of:
string
meta_status
Any of:
string
meta_template_id
Any of:
string
name
required
Name
string
parameter_format
Any of:
string
platform_channel_id
Any of:
integer
variables
required
Variables
Array<string>
Example
[
{
"components": [
{
"format": "TEXT",
"type": "HEADER"
}
]
}
]

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}