Templates
Create template
POST
/
v1
/
templates
Create template
curl --request POST \
--url https://api.wazapin.com/v1/templates \
--header 'Content-Type: application/json' \
--data '
{
"body_text": "<string>",
"category": "<string>",
"header_format": "<string>",
"language": "<string>",
"name": "<string>",
"submit_to_meta": true,
"builder_json": "<unknown>",
"builder_version": 123,
"buttons": [
{
"text": "<string>",
"type": "<string>",
"example": "<string>",
"flow_action": "<string>",
"flow_id": "<string>",
"navigate_screen": "<string>",
"otp_type": "<string>",
"package_name": "<string>",
"phone_number": "<string>",
"signature_hash": "<string>",
"url": "<string>"
}
],
"channel_id": "<string>",
"editor_mode": "<string>",
"footer_text": "<string>",
"header_handle": "<string>",
"header_text": "<string>",
"variables": [
{
"component_type": "<string>",
"display_name": "<string>",
"example_value": "<string>",
"position": 123,
"source_type": "<string>",
"source_key": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
body_text: '<string>',
category: '<string>',
header_format: '<string>',
language: '<string>',
name: '<string>',
submit_to_meta: true,
builder_json: '<unknown>',
builder_version: 123,
buttons: [
{
text: '<string>',
type: '<string>',
example: '<string>',
flow_action: '<string>',
flow_id: '<string>',
navigate_screen: '<string>',
otp_type: '<string>',
package_name: '<string>',
phone_number: '<string>',
signature_hash: '<string>',
url: '<string>'
}
],
channel_id: '<string>',
editor_mode: '<string>',
footer_text: '<string>',
header_handle: '<string>',
header_text: '<string>',
variables: [
{
component_type: '<string>',
display_name: '<string>',
example_value: '<string>',
position: 123,
source_type: '<string>',
source_key: '<string>'
}
]
})
};
fetch('https://api.wazapin.com/v1/templates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/templates"
payload = {
"body_text": "<string>",
"category": "<string>",
"header_format": "<string>",
"language": "<string>",
"name": "<string>",
"submit_to_meta": True,
"builder_json": "<unknown>",
"builder_version": 123,
"buttons": [
{
"text": "<string>",
"type": "<string>",
"example": "<string>",
"flow_action": "<string>",
"flow_id": "<string>",
"navigate_screen": "<string>",
"otp_type": "<string>",
"package_name": "<string>",
"phone_number": "<string>",
"signature_hash": "<string>",
"url": "<string>"
}
],
"channel_id": "<string>",
"editor_mode": "<string>",
"footer_text": "<string>",
"header_handle": "<string>",
"header_text": "<string>",
"variables": [
{
"component_type": "<string>",
"display_name": "<string>",
"example_value": "<string>",
"position": 123,
"source_type": "<string>",
"source_key": "<string>"
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"body_text": "<string>",
"category": "<string>",
"components_json": "<unknown>",
"created_at": "<string>",
"header_format": "<string>",
"id": "<string>",
"language": "<string>",
"name": "<string>",
"organization_id": "<string>",
"status": "<string>",
"updated_at": "<string>",
"builder_json": "<unknown>",
"builder_version": 123,
"buttons": [
{
"text": "<string>",
"type": "<string>",
"example": "<string>",
"flow_action": "<string>",
"flow_id": "<string>",
"navigate_screen": "<string>",
"otp_type": "<string>",
"package_name": "<string>",
"phone_number": "<string>",
"signature_hash": "<string>",
"url": "<string>"
}
],
"channel_id": "<string>",
"editor_mode": "<string>",
"footer_text": "<string>",
"header_handle": "<string>",
"header_text": "<string>",
"meta_synced_at": "<string>",
"meta_template_id": "<string>",
"quality_score": "<string>",
"rejection_reason": "<string>",
"variables": [
{
"component_type": "<string>",
"display_name": "<string>",
"example_value": "<string>",
"id": "<string>",
"position": 123,
"source_type": "<string>",
"source_key": "<string>"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Body
application/json
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
Created
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I
Create template
curl --request POST \
--url https://api.wazapin.com/v1/templates \
--header 'Content-Type: application/json' \
--data '
{
"body_text": "<string>",
"category": "<string>",
"header_format": "<string>",
"language": "<string>",
"name": "<string>",
"submit_to_meta": true,
"builder_json": "<unknown>",
"builder_version": 123,
"buttons": [
{
"text": "<string>",
"type": "<string>",
"example": "<string>",
"flow_action": "<string>",
"flow_id": "<string>",
"navigate_screen": "<string>",
"otp_type": "<string>",
"package_name": "<string>",
"phone_number": "<string>",
"signature_hash": "<string>",
"url": "<string>"
}
],
"channel_id": "<string>",
"editor_mode": "<string>",
"footer_text": "<string>",
"header_handle": "<string>",
"header_text": "<string>",
"variables": [
{
"component_type": "<string>",
"display_name": "<string>",
"example_value": "<string>",
"position": 123,
"source_type": "<string>",
"source_key": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
body_text: '<string>',
category: '<string>',
header_format: '<string>',
language: '<string>',
name: '<string>',
submit_to_meta: true,
builder_json: '<unknown>',
builder_version: 123,
buttons: [
{
text: '<string>',
type: '<string>',
example: '<string>',
flow_action: '<string>',
flow_id: '<string>',
navigate_screen: '<string>',
otp_type: '<string>',
package_name: '<string>',
phone_number: '<string>',
signature_hash: '<string>',
url: '<string>'
}
],
channel_id: '<string>',
editor_mode: '<string>',
footer_text: '<string>',
header_handle: '<string>',
header_text: '<string>',
variables: [
{
component_type: '<string>',
display_name: '<string>',
example_value: '<string>',
position: 123,
source_type: '<string>',
source_key: '<string>'
}
]
})
};
fetch('https://api.wazapin.com/v1/templates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/templates"
payload = {
"body_text": "<string>",
"category": "<string>",
"header_format": "<string>",
"language": "<string>",
"name": "<string>",
"submit_to_meta": True,
"builder_json": "<unknown>",
"builder_version": 123,
"buttons": [
{
"text": "<string>",
"type": "<string>",
"example": "<string>",
"flow_action": "<string>",
"flow_id": "<string>",
"navigate_screen": "<string>",
"otp_type": "<string>",
"package_name": "<string>",
"phone_number": "<string>",
"signature_hash": "<string>",
"url": "<string>"
}
],
"channel_id": "<string>",
"editor_mode": "<string>",
"footer_text": "<string>",
"header_handle": "<string>",
"header_text": "<string>",
"variables": [
{
"component_type": "<string>",
"display_name": "<string>",
"example_value": "<string>",
"position": 123,
"source_type": "<string>",
"source_key": "<string>"
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"body_text": "<string>",
"category": "<string>",
"components_json": "<unknown>",
"created_at": "<string>",
"header_format": "<string>",
"id": "<string>",
"language": "<string>",
"name": "<string>",
"organization_id": "<string>",
"status": "<string>",
"updated_at": "<string>",
"builder_json": "<unknown>",
"builder_version": 123,
"buttons": [
{
"text": "<string>",
"type": "<string>",
"example": "<string>",
"flow_action": "<string>",
"flow_id": "<string>",
"navigate_screen": "<string>",
"otp_type": "<string>",
"package_name": "<string>",
"phone_number": "<string>",
"signature_hash": "<string>",
"url": "<string>"
}
],
"channel_id": "<string>",
"editor_mode": "<string>",
"footer_text": "<string>",
"header_handle": "<string>",
"header_text": "<string>",
"meta_synced_at": "<string>",
"meta_template_id": "<string>",
"quality_score": "<string>",
"rejection_reason": "<string>",
"variables": [
{
"component_type": "<string>",
"display_name": "<string>",
"example_value": "<string>",
"id": "<string>",
"position": 123,
"source_type": "<string>",
"source_key": "<string>"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}