Create a template
POST
/api/v1/templatesBearer key, test or live
Request body
namestringrequiredbodystringrequiredText with {{variable}} placeholders.
Responses
201The template.409An active template already uses the name.curl -X POST 'https://staging.useline.io/api/v1/templates' \
-H "Authorization: Bearer $LINE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"name": "Appointment reminder",
"body": "Hi {{first_name}}, see you on {{date}}."
}'