curl --request POST \
--url https://spectrum.photon.codes/projects/{projectId}/whatsapp-business/accounts/{accountId}/templates/ \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"language": "<string>",
"components": [
{
"type": "<string>"
}
],
"allowCategoryChange": true
}
'{
"succeed": true,
"data": {
"id": "<string>"
}
}Creates a message template under the given WhatsApp Business account. Body fields (name, language, category, components, parameterFormat, allowCategoryChange) map to Meta’s POST /{waba_id}/message_templates payload; component JSON should follow Meta’s components reference and is forwarded unchanged. Returns Meta’s { id, status, category } — newly-created templates start in PENDING and require Meta approval before they can be sent.
curl --request POST \
--url https://spectrum.photon.codes/projects/{projectId}/whatsapp-business/accounts/{accountId}/templates/ \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"language": "<string>",
"components": [
{
"type": "<string>"
}
],
"allowCategoryChange": true
}
'{
"succeed": true,
"data": {
"id": "<string>"
}
}Documentation Index
Fetch the complete documentation index at: https://docs.photon.codes/docs/llms.txt
Use this file to discover all available pages before exploring further.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$1 - 5122 - 20MARKETING, UTILITY, AUTHENTICATION 1Show child attributes
POSITIONAL, NAMED Was this page helpful?