WhatsApp Templates
GET List Whatsapp Templates
GET
https://server.gallabox.com/devapi/accounts/{{accountId}}/whatsappTemplates
Headers
name
value
Description
apikey
{{apikey}}
Your api key
apiSecret
{{apiSecret}}
Your api Secret
Content-Type
application/json
content type
Path Parameters
name
value
Description
accountId
{{accountId}}
Your Unique account Id
Response
[
{
"_id": "667d659c17a1e0313b12c9fb",
"accountId": "629e06e58e13b5000ae338d5",
"channelId": "629e0b6c3d6ad600044197a0",
"creatorId": "629e06e48e13b5000ae338d3",
"status": "approved",
"isSystemTemplate": false,
"name": "template_different_country",
"language": "en",
"category": "UTILITY",
"components": [
{
"type": "HEADER",
"format": "TEXT",
"text": "Payment Required",
"fileMetaData": {}
},
{
"type": "BODY",
"text": "Hey there! We noticed that you recently made a purchase for a new product. Just a friendly reminder that payment is due. Please make sure to settle the payment as soon as possible. If you have any questions or need assistance, feel free to reach out to us. Thank you for choosing our product!",
"fileMetaData": {}
},
{
"type": "BUTTONS",
"buttons": [
{
"type": "ORDER_DETAILS",
"text": "Review and Pay",
"example": {
"orderDetails": {
"currency": "INR",
"paymentProvider": "upi",
"orderType": "direct_order",
"items": [
{
"quantity": 1,
"amount": 100000,
"name": "Product 1"
}
],
"productAdditionalDetails": {
"country_of_origin": "AF",
"importer_name": "Importer Name 1",
"importer_address": {
"address_line1": "No.2",
"address_line2": "Ramesh Illam",
"city": "600119",
"zone_code": "12354",
"postal_code": "600119",
"country_code": "23456"
}
}
}
}
}
],
"fileMetaData": {}
}
],
"allow_category_change": false,
"createdAt": "2024-06-27T13:14:04.606Z",
"updatedAt": "2024-06-27T13:20:13.680Z",
"__v": 0,
"statusUpdatedAt": "2024-06-27T13:20:13.679Z",
"rejected_reason": "NONE",
"account": {
"_id": "629e06e58e13b5000ae338d5",
"name": "Rohit Caterers",
"id": "629e06e58e13b5000ae338d5"
},
"channel": {
"_id": "629e0b6c3d6ad600044197a0",
"assignToIds": [
"6541e1e7741db9205bf30824",
"636b7ed205cf71995632d369",
"629ee7a28e13b5000ae33a28",
"629e06e48e13b5000ae338d3",
"655da385e95147dd92e9a208",
"65b89d8a42e9369b4b4ad563",
"65d58053bc1950aa90d127cf"
],
"accountId": "629e06e58e13b5000ae338d5",
"createdById": "629e06e48e13b5000ae338d3",
"channelType": "whatsapp",
"whatsapp": {
"webhookUrl": "",
"whatsappNumber": "917825875224",
"whatsappName": "Rohit Caterers",
"whatsappColor": "#48BB78",
"apiEndpoint": "https://waba-v2.360dialog.io",
"adminUsername": "fd1ef12540bf7dc0463f2b884a623c8b",
"adminPassword": "fd1ef12540bf7dc0463f2b884a623c8b",
"accessToken": "dummy",
"namespaceId": "7a02c263_24b6_4f91_8849_83c6962cf609",
"wabaId": "105970132138876",
"provider": "dialog360CloudApi",
"dialog360CloudApi": {
"apiKey": "dd194e6765213dd0815f5b671f79bbc88c742991f45ead5573c7426fa5901045",
"providerId": "wwLayXCH",
"lastSyncedDate": "2024-05-09T07:14:48.687Z"
},
"mode": "live",
"broadcastLimit": 250,
"currentTier": "TIER_1K",
"isOba": false,
"currentQualityRating": "High",
"fbAccountStatus": "verified",
"shareableLinks": [],
"activeIntegrations": [
{
"integrationId": "650bea095e8cfa9378c3326c",
"integrationType": "leadsquared"
}
]
},
"createdAt": "2022-06-06T14:13:01.557Z",
"updatedAt": "2024-06-20T09:55:20.498Z",
"__v": 12,
"botId": "62a14871fd73d200085ee68a",
"configurations": {
"assignmentRules": {
"type": "bot",
"assignmentId": "6673f81b6a872e58e8c6ffa7",
"isActive": true,
"shouldAutoReassign": false,
"createdAt": "2024-06-20T09:55:20.498Z",
"updatedAt": "2024-06-20T09:55:20.498Z"
},
"workingHours": [
{
"day": "monday",
"from": "2024-03-12T05:00:00.000Z",
"to": "2024-03-12T05:15:00.000Z",
"createdAt": "2024-03-12T09:53:41.021Z",
"updatedAt": "2024-03-12T09:53:41.021Z"
},
{
"day": "tuesday",
"from": "2024-03-12T05:00:00.000Z",
"to": "2024-03-12T05:15:00.000Z",
"createdAt": "2024-03-12T09:53:41.021Z",
"updatedAt": "2024-03-12T09:53:41.021Z"
},
{
"day": "wednesday",
"from": "2024-03-12T05:00:00.000Z",
"to": "2024-03-12T05:15:00.000Z",
"createdAt": "2024-03-12T09:53:41.021Z",
"updatedAt": "2024-03-12T09:53:41.021Z"
},
{
"day": "monday",
"from": "2024-03-12T09:00:00.000Z",
"to": "2024-03-12T09:15:00.000Z",
"createdAt": "2024-03-12T09:53:41.021Z",
"updatedAt": "2024-03-12T09:53:41.021Z"
},
{
"day": "monday",
"from": "2024-03-12T10:00:00.000Z",
"to": "2024-03-12T10:30:00.000Z",
"createdAt": "2024-03-12T09:53:41.021Z",
"updatedAt": "2024-03-12T09:53:41.021Z"
}
],
"awayMessage": {
"cannedResponseId": "64a6ba0fa112b77c94a74ca9",
"isActive": false,
"createdAt": "2024-03-12T09:53:41.069Z",
"updatedAt": "2024-03-12T09:53:41.069Z"
},
"autoUpdateMsgOptin": {
"isActive": false,
"text": "unscribe.1",
"updatedAt": "2022-08-10T10:09:56.240Z",
"createdAt": "2022-08-10T10:09:56.240Z"
},
"welcomeMessage": {
"cannedResponseId": "64c74f91a7217e06c6bc0812",
"isActive": false,
"updatedAt": "2023-08-03T09:46:49.050Z",
"createdAt": "2023-08-03T09:46:49.050Z"
},
"autoReply": {
"minutes": 1,
"preference": "allOpenConversations",
"cannedResponseId": "64c74fdba7217e06c6bc09ce",
"isActive": true,
"createdAt": "2024-02-16T05:01:11.332Z",
"updatedAt": "2024-02-16T05:01:11.332Z"
},
"reEngagementMessage": {
"minutes": 1,
"cannedResponseId": "655849740800b78cf9a916f5",
"isActive": false,
"createdAt": "2024-01-30T06:50:55.510Z",
"updatedAt": "2024-01-30T06:50:55.510Z"
},
"conversationResolve": {
"isActive": true,
"days": 14,
"createdAt": "2023-06-05T06:01:13.063Z",
"updatedAt": "2023-06-05T06:01:13.063Z"
}
},
"inboundMessageReadReceipt": true,
"isDeleted": false,
"toSync": true,
"id": "629e0b6c3d6ad600044197a0"
},
"id": "667d659c17a1e0313b12c9fb",
"variables": [],
"footerVariables": []
}
]
GET GET Whatsapp Template
GET
https://server.gallabox.com/devapi/accounts/{{accountId}}/whatsappTemplates/{{templateId}}
Headers
name
value
Description
apikey
{{apikey}}
Your api key
apiSecret
{{apiSecret}}
Your api Secret
Content-Type
application/json
content type
Path Parameters
name
value
Description
accountId
{{accountId}}
Your Unique account Id
templateId
{{templateId}}
Your Unique Template Id
Response
{
"_id": "667d659c17a1e0313b12c9fb",
"accountId": "629e06e58e13b5000ae338d5",
"channelId": "629e0b6c3d6ad600044197a0",
"creatorId": "629e06e48e13b5000ae338d3",
"status": "approved",
"isSystemTemplate": false,
"name": "template_different_country",
"language": "en",
"category": "UTILITY",
"components": [
{
"type": "HEADER",
"format": "TEXT",
"text": "Payment Required",
"fileMetaData": {}
},
{
"type": "BODY",
"text": "Hey there! We noticed that you recently made a purchase for a new product. Just a friendly reminder that payment is due. Please make sure to settle the payment as soon as possible. If you have any questions or need assistance, feel free to reach out to us. Thank you for choosing our product!",
"fileMetaData": {}
},
{
"type": "BUTTONS",
"buttons": [
{
"type": "ORDER_DETAILS",
"text": "Review and Pay",
"example": {
"orderDetails": {
"currency": "INR",
"paymentProvider": "upi",
"orderType": "direct_order",
"items": [
{
"quantity": 1,
"amount": 100000,
"name": "Product 1"
}
],
"productAdditionalDetails": {
"country_of_origin": "AF",
"importer_name": "Importer Name 1",
"importer_address": {
"address_line1": "No.2",
"address_line2": "Ramesh Illam",
"city": "600119",
"zone_code": "12354",
"postal_code": "600119",
"country_code": "23456"
}
}
}
}
}
],
"fileMetaData": {}
}
],
"allow_category_change": false,
"createdAt": "2024-06-27T13:14:04.606Z",
"updatedAt": "2024-06-27T13:20:13.680Z",
"__v": 0,
"statusUpdatedAt": "2024-06-27T13:20:13.679Z",
"rejected_reason": "NONE",
"id": "667d659c17a1e0313b12c9fb",
"variables": [],
"footerVariables": []
}
Last updated