curl --request GET \
--url https://api.wapikit.com/api/organization/templates
[
{
"id": "<string>",
"category": "UTILITY",
"components": [
{
"add_security_recommendation": true,
"buttons": [
{
"type": "QUICK_REPLY",
"text": "<string>",
"phone_number": "<string>",
"example": [
"<string>"
],
"url": "<string>"
}
],
"cards": [
{}
],
"code_expiration_minutes": 123,
"example": {
"header_handle": [
"<string>"
],
"header_text": [
"<string>"
],
"header_text_named_params": [
{
"param_name": "<string>",
"example": "<string>"
}
],
"body_text": [
[
"<string>"
]
],
"body_text_named_params": [
{
"param_name": "<string>",
"example": "<string>"
}
]
},
"format": "TEXT",
"limited_time_offer": {
"offer_code": "<string>",
"expiry_minutes": 123
},
"text": "<string>",
"type": "GREETING"
}
],
"correct_category": "<string>",
"cta_url_link_tracking_opted_out": true,
"language": "<string>",
"library_template_name": "<string>",
"message_send_ttl_seconds": 123,
"name": "<string>",
"previous_category": "<string>",
"quality_score": {
"date": 123,
"reasons": [
"<string>"
],
"score": 123
},
"rejected_reason": "<string>",
"status": "APPROVED"
}
]
returns all templates
curl --request GET \
--url https://api.wapikit.com/api/organization/templates
[
{
"id": "<string>",
"category": "UTILITY",
"components": [
{
"add_security_recommendation": true,
"buttons": [
{
"type": "QUICK_REPLY",
"text": "<string>",
"phone_number": "<string>",
"example": [
"<string>"
],
"url": "<string>"
}
],
"cards": [
{}
],
"code_expiration_minutes": 123,
"example": {
"header_handle": [
"<string>"
],
"header_text": [
"<string>"
],
"header_text_named_params": [
{
"param_name": "<string>",
"example": "<string>"
}
],
"body_text": [
[
"<string>"
]
],
"body_text_named_params": [
{
"param_name": "<string>",
"example": "<string>"
}
]
},
"format": "TEXT",
"limited_time_offer": {
"offer_code": "<string>",
"expiry_minutes": 123
},
"text": "<string>",
"type": "GREETING"
}
],
"correct_category": "<string>",
"cta_url_link_tracking_opted_out": true,
"language": "<string>",
"library_template_name": "<string>",
"message_send_ttl_seconds": 123,
"name": "<string>",
"previous_category": "<string>",
"quality_score": {
"date": 123,
"reasons": [
"<string>"
],
"score": 123
},
"rejected_reason": "<string>",
"status": "APPROVED"
}
]
templates list
The response is of type object[]
.
Was this page helpful?