{"_id":"587f316ba67ea037002675ae","category":{"_id":"58172386715dce0f00da4aa0","project":"54eb50e5615ffc1900305a16","version":"54eb63b859b1172100334fae","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-10-31T10:57:10.541Z","from_sync":false,"order":14,"slug":"facebook-messages","title":"Facebook messenger"},"project":"54eb50e5615ffc1900305a16","user":"582ddb2f8653af2d00f5a9c5","__v":1,"parentDoc":null,"version":{"_id":"54eb63b859b1172100334fae","project":"54eb50e5615ffc1900305a16","forked_from":"54eb63a1867e1917009b711d","__v":27,"createdAt":"2015-02-23T17:30:32.501Z","releaseDate":"2015-02-23T17:30:32.501Z","categories":["54eb63b959b1172100334faf","54eb63b959b1172100334fb0","54eb63b959b1172100334fb1","54eb63b959b1172100334fb2","54ed8dd4ab373e2300f50eae","54ed99b2ab373e2300f50ede","55153a6de68daa2f00cff838","551546edbc466623002afe72","5515472ac28d6125001b8884","55154749c28d6125001b8885","555d9b4106dfec0d00d38ea7","5613e06e433e5735007c7708","5624bbb785a31117001c5403","56669e857cc81e0d00253f8e","568b8d837a42220d00498311","56a632277ef6620d00e2f18a","56d8147c3eb4dd0b00201aac","57a9ce2fac6db30e000d7efd","57a9cf4e944ea60e00dc3f74","58172386715dce0f00da4aa0","582dc59ee1b8692300c0dd03","589b19b4fec2730f0082e040","58b04a023529383900a759b5","58b92d1598157a0f004869bf","592e7685c58275000f20174f","59392839e376d4002f8a0474","59393064e376d4002f8a05a1","5947ae0d4005e2000f3a4fec","594a74df1d1de5001ab3517a","5954bc387a147f001b918915"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-01-18T09:12:11.864Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"554860d6d2c8410d006c215e","examples":{"codes":[{"name":"","code":"POST /facebook/1/single HTTP/1.1\nHost: api.infobip.com\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\nContent-Type: application/json\nAccept: application/json\n\n{  \n  \"from\":\"8F0792F86035A9F4290821F1EE6BC06A\",\n  \"to\":\"37512FEC78DBC1895567B09AE6D9439328C12E83BC83D449BC4A9F32F1AE3C3A\",\n  \"message\": {\n    \"type\":\"TEXT\",\n    \"text\":\"Hello, World!\"\n  }\n}","language":"json"}]},"method":"post","results":{"codes":[{"name":"","status":200,"language":"json","code":"{\n  \"to\": \"37512FEC78DBC1895567B09AE6D9439328C12E83BC83D449BC4A9F32F1AE3C3A\",\n  \"messageCount\": 1,\n  \"messageId\": \"1215f543ab19-345f-adbd-12ad31451ed25f35\",\n  \"status\": {\n    \"groupId\": 1,\n    \"groupName\": \"PENDING\",\n    \"id\": 7,\n    \"name\": \"PENDING_ENROUTE\",\n    \"description\": \"Message sent to next instance\"\n  }\n}"},{"status":400,"language":"json","code":"{\n  \"requestError\": {\n    \"serviceException\": {\n      \"messageId\": \"BAD_REQUEST\",\n      \"text\": \"Bad request\"\n    }\n  }\n}","name":""},{"language":"json","status":401,"code":"{\n  \"requestError\": {\n    \"serviceException\": {\n      \"messageId\": \"UNAUTHORIZED\",\n      \"text\": \"Invalid login details\"\n    }\n  }\n}"}]},"auth":"required","params":[{"_id":"55155f2abc466623002afe8b","ref":"","in":"body","required":true,"desc":"Application key you are using to send messages.","default":"","type":"string","name":"from"},{"_id":"55155f2abc466623002afe8a","ref":"","in":"body","required":true,"desc":"User key or phone number. User key is not facebook_id. User key is a assigned when user is registering to be contacted by your Facebook application. User can register in different ways described <a href=\"/docs/facebook-messenger-introduction#how-can-my-organisation-contact-people-over-Facebook\">here</a>.","default":"","type":"string","name":"to"},{"_id":"55155f2abc466623002afe89","ref":"","in":"body","required":true,"desc":"<a href=\"#section-message-object\">Message object</a> contains type and text properties","default":"","type":"object","name":"message"}],"url":"/facebook/:version/single"},"isReference":false,"order":1,"body":"# Response format \nIf successful, response header HTTP status code will be 200 OK and the message will be sent.\nIf you try to send the message without authorization, you will receive an 401 Unauthorized error.\nOn a wrongly formatted request the HTTP status code will be `400 Bad Request`.\n\n\n####Response\n\n|Parameter|Type|Description|\n|-|-|-|\n|*to*|String|User key or phone number.|\n|*status*|[Status](#section-status)|Indicates whether the message is  sent successfully, not sent, delivered, not delivered, waiting for delivery or any other possible status.|\n|*messageCount*|int|The number of sent message segments.|\n|*messageId*|String|The ID that uniquely identifies the sent message.|\n\n####Status\n\n|Parameter|Type|Description|\n|-|-|-|\n|*groupId*|int|Status [group ID](http://dev.infobip.com/v1/docs/response-codes#status-object-example).|\n|*groupName*|String|Status [group name](http://dev.infobip.com/v1/docs/response-codes#status-object-example).|\n|*id*|int|Status [ID](http://dev.infobip.com/v1/docs/response-codes#status-object-example).|\n|*name*|String|Status [name](http://dev.infobip.com/v1/docs/response-codes#status-object-example).|\n|*description*|String|Human readable [description](http://dev.infobip.com/v1/docs/response-codes#status-object-example) of the status.|\n|*action*|String|[Action](http://dev.infobip.com/v1/docs/response-codes#status-object-example) that should be taken to eliminate the error.|\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Facebook OMNI\",\n  \"body\": \"Facebook API is available also as a part of our [OMNI experience](/docs/omni-channel-facebook-messenger-example).\"\n}\n[/block]\n# Request Format\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Property name\",\n    \"h-1\": \"Type\",\n    \"0-0\": \"from\",\n    \"1-0\": \"to\",\n    \"2-0\": \"message\",\n    \"0-1\": \"String\",\n    \"1-1\": \"String\",\n    \"2-1\": \"Object\",\n    \"0-2\": \"Application key you are using to send messages.\",\n    \"1-2\": \"User key.\",\n    \"2-2\": \"[Message object](#section-message-object).\",\n    \"h-2\": \"Description\"\n  },\n  \"cols\": 3,\n  \"rows\": 3\n}\n[/block]\n## Message Object\n\nSupported message objects are: \n* [Text message](#section-text-message) (`TEXT`)\n* [Media message](#section-media-message) (`IMAGE`, `VIDEO`, `AUDIO`)\n* [Template message](#section-template-messages) (`TEMPLATE`)\n* [Sender action message](#section-sender-actions) (`SENDER_ACTION`)\n\n\n### Text Message\nType `TEXT` is used when sending a text message. Message must be UTF-8 encoded and under 640 character limit. Messages longer than 640 character will be truncated.\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Property name\",\n    \"h-1\": \"Type\",\n    \"h-2\": \"Description\",\n    \"0-0\": \"type\",\n    \"0-1\": \"String\",\n    \"0-2\": \"Constant value - `TEXT`.\",\n    \"1-0\": \"text\",\n    \"1-1\": \"String\",\n    \"1-2\": \"Text of the message.\"\n  },\n  \"cols\": 3,\n  \"rows\": 2\n}\n[/block]\nRequest example\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"POST /facebook/1/single HTTP/1.1\\nHost: api.infobip.com\\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\nContent-Type: application/json\\nAccept: application/json\\n\\n{  \\n  \\\"from\\\":\\\"8F0792F86035A9F4290821F1EE6BC06A\\\",\\n  \\\"to\\\":\\\"37512FEC78DBC1895567B09AE6D9439328C12E83BC83D449BC4A9F32F1AE3C3A\\\",\\n  \\\"message\\\": {\\n    \\\"type\\\":\\\"TEXT\\\",\\n    \\\"text\\\":\\\"Hello, World!\\\"\\n  }\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n### Media Message\n\nBesides the text message, media file can also be sent over API. Before sending the message, you will need to upload your media to publicly accessible server and supply `url` of the file.\n\nAccording to supplied file type, Facebook will attempt to render media preview inside of the client chat application.\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Property name\",\n    \"h-1\": \"Type\",\n    \"h-2\": \"Description\",\n    \"0-0\": \"type\",\n    \"0-1\": \"String\",\n    \"0-2\": \"Constant value - allowed values are `IMAGE`, `AUDIO`, `VIDEO` or `FILE`.\",\n    \"1-0\": \"url\",\n    \"1-1\": \"String\",\n    \"1-2\": \"URL of the attachment.\"\n  },\n  \"cols\": 3,\n  \"rows\": 2\n}\n[/block]\nRequest example\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"POST /facebook/1/single HTTP/1.1\\nHost: api.infobip.com\\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\nContent-Type: application/json\\nAccept: application/json\\n\\n{  \\n  \\\"from\\\":\\\"8F0792F86035A9F4290821F1EE6BC06A\\\",\\n  \\\"to\\\":\\\"37512FEC78DBC1895567B09AE6D9439328C12E83BC83D449BC4A9F32F1AE3C3A\\\",\\n  \\\"message\\\": {\\n    \\\"type\\\":\\\"IMAGE\\\",\\n    \\\"url\\\":\\\"https://petersapparel.com/img/shirt.png\\\"\\n  }\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n### Sender Actions\n\nBesides sending messages, you may also want to send typing indicators or send read receipts using the API, to let users know you are processing their request. This way your customers can see if you have seen the message or typing reply.\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Property name\",\n    \"h-1\": \"Type\",\n    \"h-2\": \"Description\",\n    \"0-2\": \"Constant value - `SENDER_ACTION`.\",\n    \"0-0\": \"type\",\n    \"0-1\": \"String\",\n    \"1-0\": \"senderAction\",\n    \"1-1\": \"String\",\n    \"1-2\": \"Constant value - `MARK_SEEN`, `TYPING_ON`, `TYPING_OFF`\"\n  },\n  \"cols\": 3,\n  \"rows\": 2\n}\n[/block]\nRequest example\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"POST /facebook/1/single HTTP/1.1\\nHost: api.infobip.com\\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\nContent-Type: application/json\\nAccept: application/json\\n\\n{  \\n  \\\"from\\\":\\\"8F0792F86035A9F4290821F1EE6BC06A\\\",\\n  \\\"to\\\":\\\"37512FEC78DBC1895567B09AE6D9439328C12E83BC83D449BC4A9F32F1AE3C3A\\\",\\n  \\\"message\\\": {\\n    \\\"type\\\":\\\"SENDER_ACTION\\\",\\n    \\\"senderAction\\\":\\\"MARK_SEEN\\\"\\n  }\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n### Template messages\n\nUse the Button Template with the Send API to send a text and buttons attachment to request input from the user. The buttons can open a URL, or make a back-end call to your webhook.\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Property name\",\n    \"h-1\": \"Type\",\n    \"h-2\": \"Description\",\n    \"0-2\": \"Constant value - `TEMPLATE`.\",\n    \"0-0\": \"type\",\n    \"0-1\": \"String\",\n    \"1-0\": \"payload\",\n    \"1-1\": \"Object\",\n    \"1-2\": \"Payload object\"\n  },\n  \"cols\": 3,\n  \"rows\": 2\n}\n[/block]\n\nPayload Object\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Property name\",\n    \"h-1\": \"Type\",\n    \"h-2\": \"Description\",\n    \"0-2\": \"Constant value - `BUTTON`.\",\n    \"0-0\": \"type\",\n    \"0-1\": \"String\",\n    \"1-0\": \"text\",\n    \"1-1\": \"String\",\n    \"1-2\": \"UTF-8 encoded text of up to 320 characters that appears the in main body.\",\n    \"2-0\": \"buttons\",\n    \"2-2\": \"Set of, one to three, buttons that appear as call-to-actions\",\n    \"2-1\": \"Array of button\"\n  },\n  \"cols\": 3,\n  \"rows\": 3\n}\n[/block]\n\n\nButton Object\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Property name\",\n    \"h-1\": \"Type\",\n    \"h-2\": \"Description\",\n    \"0-2\": \"Constant value - `POSTBACK`, `URL`.\",\n    \"0-0\": \"type\",\n    \"0-1\": \"String\",\n    \"1-0\": \"title\",\n    \"1-1\": \"String\",\n    \"1-2\": \"Button title. 20 character limit.\",\n    \"2-0\": \"payload\",\n    \"2-2\": \"Use if `POSTBACK` type is set.\\nThis data will be sent back to your webhook. 1000 character limit.\",\n    \"2-1\": \"String\",\n    \"3-0\": \"url\",\n    \"3-1\": \"String\",\n    \"3-2\": \"Use if `URL` type is set.\\nThis URL is opened in a mobile browser when the button is tapped.\"\n  },\n  \"cols\": 3,\n  \"rows\": 4\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"POST /facebook/1/single HTTP/1.1\\nHost: api.infobip.com\\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\nContent-Type: application/json\\nAccept: application/json\\n\\n{  \\n  \\\"from\\\":\\\"8F0792F86035A9F4290821F1EE6BC06A\\\",\\n  \\\"to\\\":\\\"37512FEC78DBC1895567B09AE6D9439328C12E83BC83D449BC4A9F32F1AE3C3A\\\",\\n  \\\"message\\\": {\\n      \\\"type\\\":\\\"TEMPLATE\\\",\\n      \\\"payload\\\":{\\n       \\\"type\\\":\\\"BUTTON\\\",\\n       \\\"text\\\":\\\"Test\\\",\\n       \\\"buttons\\\":[\\n        {\\n         \\\"type\\\":\\\"POSTBACK\\\",\\n         \\\"title\\\":\\\"title\\\",\\n         \\\"payload\\\":\\\"payload\\\"\\n        },\\n        {\\n         \\\"type\\\":\\\"URL\\\",\\n         \\\"title\\\":\\\"title\\\",\\n         \\\"url\\\":\\\"www.infobip.com\\\"\\n        }\\n       ]\\n      }\\n     }\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]","excerpt":"This method allows you to send a single message.","slug":"send-single-facebook-messenger-message","type":"endpoint","title":"Send Facebook message"}

postSend Facebook message

This method allows you to send a single message.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

from:
required
string
Application key you are using to send messages.
to:
required
string
User key or phone number. User key is not facebook_id. User key is a assigned when user is registering to be contacted by your Facebook application. User can register in different ways described <a href="/docs/facebook-messenger-introduction#how-can-my-organisation-contact-people-over-Facebook">here</a>.
message:
required
object
<a href="#section-message-object">Message object</a> contains type and text properties

Examples


Result Format


Documentation

# Response format If successful, response header HTTP status code will be 200 OK and the message will be sent. If you try to send the message without authorization, you will receive an 401 Unauthorized error. On a wrongly formatted request the HTTP status code will be `400 Bad Request`. ####Response |Parameter|Type|Description| |-|-|-| |*to*|String|User key or phone number.| |*status*|[Status](#section-status)|Indicates whether the message is sent successfully, not sent, delivered, not delivered, waiting for delivery or any other possible status.| |*messageCount*|int|The number of sent message segments.| |*messageId*|String|The ID that uniquely identifies the sent message.| ####Status |Parameter|Type|Description| |-|-|-| |*groupId*|int|Status [group ID](http://dev.infobip.com/v1/docs/response-codes#status-object-example).| |*groupName*|String|Status [group name](http://dev.infobip.com/v1/docs/response-codes#status-object-example).| |*id*|int|Status [ID](http://dev.infobip.com/v1/docs/response-codes#status-object-example).| |*name*|String|Status [name](http://dev.infobip.com/v1/docs/response-codes#status-object-example).| |*description*|String|Human readable [description](http://dev.infobip.com/v1/docs/response-codes#status-object-example) of the status.| |*action*|String|[Action](http://dev.infobip.com/v1/docs/response-codes#status-object-example) that should be taken to eliminate the error.| [block:callout] { "type": "info", "title": "Facebook OMNI", "body": "Facebook API is available also as a part of our [OMNI experience](/docs/omni-channel-facebook-messenger-example)." } [/block] # Request Format [block:parameters] { "data": { "h-0": "Property name", "h-1": "Type", "0-0": "from", "1-0": "to", "2-0": "message", "0-1": "String", "1-1": "String", "2-1": "Object", "0-2": "Application key you are using to send messages.", "1-2": "User key.", "2-2": "[Message object](#section-message-object).", "h-2": "Description" }, "cols": 3, "rows": 3 } [/block] ## Message Object Supported message objects are: * [Text message](#section-text-message) (`TEXT`) * [Media message](#section-media-message) (`IMAGE`, `VIDEO`, `AUDIO`) * [Template message](#section-template-messages) (`TEMPLATE`) * [Sender action message](#section-sender-actions) (`SENDER_ACTION`) ### Text Message Type `TEXT` is used when sending a text message. Message must be UTF-8 encoded and under 640 character limit. Messages longer than 640 character will be truncated. [block:parameters] { "data": { "h-0": "Property name", "h-1": "Type", "h-2": "Description", "0-0": "type", "0-1": "String", "0-2": "Constant value - `TEXT`.", "1-0": "text", "1-1": "String", "1-2": "Text of the message." }, "cols": 3, "rows": 2 } [/block] Request example [block:code] { "codes": [ { "code": "POST /facebook/1/single HTTP/1.1\nHost: api.infobip.com\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\nContent-Type: application/json\nAccept: application/json\n\n{ \n \"from\":\"8F0792F86035A9F4290821F1EE6BC06A\",\n \"to\":\"37512FEC78DBC1895567B09AE6D9439328C12E83BC83D449BC4A9F32F1AE3C3A\",\n \"message\": {\n \"type\":\"TEXT\",\n \"text\":\"Hello, World!\"\n }\n}", "language": "json" } ] } [/block] ### Media Message Besides the text message, media file can also be sent over API. Before sending the message, you will need to upload your media to publicly accessible server and supply `url` of the file. According to supplied file type, Facebook will attempt to render media preview inside of the client chat application. [block:parameters] { "data": { "h-0": "Property name", "h-1": "Type", "h-2": "Description", "0-0": "type", "0-1": "String", "0-2": "Constant value - allowed values are `IMAGE`, `AUDIO`, `VIDEO` or `FILE`.", "1-0": "url", "1-1": "String", "1-2": "URL of the attachment." }, "cols": 3, "rows": 2 } [/block] Request example [block:code] { "codes": [ { "code": "POST /facebook/1/single HTTP/1.1\nHost: api.infobip.com\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\nContent-Type: application/json\nAccept: application/json\n\n{ \n \"from\":\"8F0792F86035A9F4290821F1EE6BC06A\",\n \"to\":\"37512FEC78DBC1895567B09AE6D9439328C12E83BC83D449BC4A9F32F1AE3C3A\",\n \"message\": {\n \"type\":\"IMAGE\",\n \"url\":\"https://petersapparel.com/img/shirt.png\"\n }\n}", "language": "json" } ] } [/block] ### Sender Actions Besides sending messages, you may also want to send typing indicators or send read receipts using the API, to let users know you are processing their request. This way your customers can see if you have seen the message or typing reply. [block:parameters] { "data": { "h-0": "Property name", "h-1": "Type", "h-2": "Description", "0-2": "Constant value - `SENDER_ACTION`.", "0-0": "type", "0-1": "String", "1-0": "senderAction", "1-1": "String", "1-2": "Constant value - `MARK_SEEN`, `TYPING_ON`, `TYPING_OFF`" }, "cols": 3, "rows": 2 } [/block] Request example [block:code] { "codes": [ { "code": "POST /facebook/1/single HTTP/1.1\nHost: api.infobip.com\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\nContent-Type: application/json\nAccept: application/json\n\n{ \n \"from\":\"8F0792F86035A9F4290821F1EE6BC06A\",\n \"to\":\"37512FEC78DBC1895567B09AE6D9439328C12E83BC83D449BC4A9F32F1AE3C3A\",\n \"message\": {\n \"type\":\"SENDER_ACTION\",\n \"senderAction\":\"MARK_SEEN\"\n }\n}", "language": "json" } ] } [/block] ### Template messages Use the Button Template with the Send API to send a text and buttons attachment to request input from the user. The buttons can open a URL, or make a back-end call to your webhook. [block:parameters] { "data": { "h-0": "Property name", "h-1": "Type", "h-2": "Description", "0-2": "Constant value - `TEMPLATE`.", "0-0": "type", "0-1": "String", "1-0": "payload", "1-1": "Object", "1-2": "Payload object" }, "cols": 3, "rows": 2 } [/block] Payload Object [block:parameters] { "data": { "h-0": "Property name", "h-1": "Type", "h-2": "Description", "0-2": "Constant value - `BUTTON`.", "0-0": "type", "0-1": "String", "1-0": "text", "1-1": "String", "1-2": "UTF-8 encoded text of up to 320 characters that appears the in main body.", "2-0": "buttons", "2-2": "Set of, one to three, buttons that appear as call-to-actions", "2-1": "Array of button" }, "cols": 3, "rows": 3 } [/block] Button Object [block:parameters] { "data": { "h-0": "Property name", "h-1": "Type", "h-2": "Description", "0-2": "Constant value - `POSTBACK`, `URL`.", "0-0": "type", "0-1": "String", "1-0": "title", "1-1": "String", "1-2": "Button title. 20 character limit.", "2-0": "payload", "2-2": "Use if `POSTBACK` type is set.\nThis data will be sent back to your webhook. 1000 character limit.", "2-1": "String", "3-0": "url", "3-1": "String", "3-2": "Use if `URL` type is set.\nThis URL is opened in a mobile browser when the button is tapped." }, "cols": 3, "rows": 4 } [/block] [block:code] { "codes": [ { "code": "POST /facebook/1/single HTTP/1.1\nHost: api.infobip.com\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\nContent-Type: application/json\nAccept: application/json\n\n{ \n \"from\":\"8F0792F86035A9F4290821F1EE6BC06A\",\n \"to\":\"37512FEC78DBC1895567B09AE6D9439328C12E83BC83D449BC4A9F32F1AE3C3A\",\n \"message\": {\n \"type\":\"TEMPLATE\",\n \"payload\":{\n \"type\":\"BUTTON\",\n \"text\":\"Test\",\n \"buttons\":[\n {\n \"type\":\"POSTBACK\",\n \"title\":\"title\",\n \"payload\":\"payload\"\n },\n {\n \"type\":\"URL\",\n \"title\":\"title\",\n \"url\":\"www.infobip.com\"\n }\n ]\n }\n }\n}", "language": "json" } ] } [/block]