|
2012 | 2012 | "body": "{\n \"recipient_id\": \"28860385560243840\",\n \"message_id\": \"m_Le1-Y7nalA4FzA79SCuoSzm_d4OFucFpIfIKCO_Nf5piXza8E0yevXnE_tm0n6DbUzJoMP7rLTJx6g6XcVGjyQ\"\n}" |
2013 | 2013 | } |
2014 | 2014 | ] |
| 2015 | + }, |
| 2016 | + { |
| 2017 | + "name": "Structured Information Template", |
| 2018 | + "request": { |
| 2019 | + "method": "POST", |
| 2020 | + "header": [], |
| 2021 | + "body": { |
| 2022 | + "mode": "raw", |
| 2023 | + "raw": "{\n \"recipient\":{\n \"id\":\"{{page-scoped-id}}\"\n },\n \"message\": {\n \"attachment\": {\n \"type\": \"template\",\n \"payload\": {\n \"template_type\": \"customer_information\",\n \"countries\": [\n \"US\" \n ],\n \"business_privacy\": {\n \"url\": \"<PRIVACY-POLICY-URL>\"\n },\n \"expires_in_days\": 1\n }\n }\n }\n}", |
| 2024 | + "options": { |
| 2025 | + "raw": { |
| 2026 | + "language": "json" |
| 2027 | + } |
| 2028 | + } |
| 2029 | + }, |
| 2030 | + "url": { |
| 2031 | + "raw": "https://graph.facebook.com/{{version}}/{{page-id}}/messages", |
| 2032 | + "protocol": "https", |
| 2033 | + "host": [ |
| 2034 | + "graph", |
| 2035 | + "facebook", |
| 2036 | + "com" |
| 2037 | + ], |
| 2038 | + "path": [ |
| 2039 | + "{{version}}", |
| 2040 | + "{{page-id}}", |
| 2041 | + "messages" |
| 2042 | + ] |
| 2043 | + }, |
| 2044 | + "description": "The media template allows you to send images, GIFs, and video as a structured message with an optional [button](https://developers.facebook.com/docs/messenger-platform/send-api-reference/buttons). Videos and animated GIFs sent with the media template are playable in the conversation.\n\nTo send an image, send a `POST` request to the Send API, with the following `payload` property in the request body, where `attachment_id` is an ID generated from the [attachment upload API](https://developers.facebook.com/docs/messenger-platform/send-api-reference/attachment-upload). For requests using the `attachment_id` property, images and videos are supported.\n\nFor complete request property details, see [Media Template Reference](https://developers.facebook.com/docs/messenger-platform/reference/template/media)." |
| 2045 | + }, |
| 2046 | + "response": [ |
| 2047 | + { |
| 2048 | + "name": "Structured Information Template", |
| 2049 | + "originalRequest": { |
| 2050 | + "method": "POST", |
| 2051 | + "header": [], |
| 2052 | + "body": { |
| 2053 | + "mode": "raw", |
| 2054 | + "raw": "{\n \"recipient\":{\n \"id\":\"{{page-scoped-id}}\"\n },\n \"message\": {\n \"attachment\": {\n \"type\": \"template\",\n \"payload\": {\n \"template_type\": \"customer_information\",\n \"countries\": [\n \"US\" \n ],\n \"business_privacy\": {\n \"url\": \"<PRIVACY-POLICY-URL>\"\n },\n \"expires_in_days\": 1\n }\n }\n }\n}", |
| 2055 | + "options": { |
| 2056 | + "raw": { |
| 2057 | + "language": "json" |
| 2058 | + } |
| 2059 | + } |
| 2060 | + }, |
| 2061 | + "url": { |
| 2062 | + "raw": "https://graph.facebook.com/{{version}}/{{page-id}}/messages", |
| 2063 | + "protocol": "https", |
| 2064 | + "host": [ |
| 2065 | + "graph", |
| 2066 | + "facebook", |
| 2067 | + "com" |
| 2068 | + ], |
| 2069 | + "path": [ |
| 2070 | + "{{version}}", |
| 2071 | + "{{page-id}}", |
| 2072 | + "messages" |
| 2073 | + ] |
| 2074 | + } |
| 2075 | + }, |
| 2076 | + "status": "OK", |
| 2077 | + "code": 200, |
| 2078 | + "_postman_previewlanguage": "json", |
| 2079 | + "header": [ |
| 2080 | + { |
| 2081 | + "key": "Content-Type", |
| 2082 | + "value": "application/json; charset=UTF-8" |
| 2083 | + }, |
| 2084 | + { |
| 2085 | + "key": "Vary", |
| 2086 | + "value": "Origin" |
| 2087 | + }, |
| 2088 | + { |
| 2089 | + "key": "x-fb-aed", |
| 2090 | + "value": "596" |
| 2091 | + }, |
| 2092 | + { |
| 2093 | + "key": "x-business-use-case-usage", |
| 2094 | + "value": "{\"556828760849295\":[{\"type\":\"messenger\",\"call_count\":1,\"total_cputime\":1,\"total_time\":1,\"estimated_time_to_regain_access\":0}]}" |
| 2095 | + }, |
| 2096 | + { |
| 2097 | + "key": "Access-Control-Allow-Origin", |
| 2098 | + "value": "*" |
| 2099 | + }, |
| 2100 | + { |
| 2101 | + "key": "facebook-api-version", |
| 2102 | + "value": "v22.0" |
| 2103 | + }, |
| 2104 | + { |
| 2105 | + "key": "Strict-Transport-Security", |
| 2106 | + "value": "max-age=15552000; preload" |
| 2107 | + }, |
| 2108 | + { |
| 2109 | + "key": "Pragma", |
| 2110 | + "value": "no-cache" |
| 2111 | + }, |
| 2112 | + { |
| 2113 | + "key": "Cache-Control", |
| 2114 | + "value": "private, no-cache, no-store, must-revalidate" |
| 2115 | + }, |
| 2116 | + { |
| 2117 | + "key": "Expires", |
| 2118 | + "value": "Sat, 01 Jan 2000 00:00:00 GMT" |
| 2119 | + }, |
| 2120 | + { |
| 2121 | + "key": "x-fb-request-id", |
| 2122 | + "value": "AToxhaOhaKWShKg97XzPCMy" |
| 2123 | + }, |
| 2124 | + { |
| 2125 | + "key": "x-fb-trace-id", |
| 2126 | + "value": "CoSaMlDFf2O" |
| 2127 | + }, |
| 2128 | + { |
| 2129 | + "key": "x-fb-rev", |
| 2130 | + "value": "1028345929" |
| 2131 | + }, |
| 2132 | + { |
| 2133 | + "key": "X-FB-Debug", |
| 2134 | + "value": "xOjt3PtAsLTJu1IdEd+x5qvx2X3uPmz3HU50anZvENeI8NGGo4hXRTBHGTwal/bkG6dXQ8SHckEdsGDQ9ZhO5A==" |
| 2135 | + }, |
| 2136 | + { |
| 2137 | + "key": "Date", |
| 2138 | + "value": "Mon, 13 Oct 2025 20:18:15 GMT" |
| 2139 | + }, |
| 2140 | + { |
| 2141 | + "key": "X-FB-Connection-Quality", |
| 2142 | + "value": "EXCELLENT; q=0.9, rtt=16, rtx=0, c=10, mss=1208, tbw=11490, tp=-1, tpl=-1, uplat=907, ullat=0" |
| 2143 | + }, |
| 2144 | + { |
| 2145 | + "key": "Alt-Svc", |
| 2146 | + "value": "h3=\":443\"; ma=86400" |
| 2147 | + }, |
| 2148 | + { |
| 2149 | + "key": "Connection", |
| 2150 | + "value": "keep-alive" |
| 2151 | + }, |
| 2152 | + { |
| 2153 | + "key": "Content-Length", |
| 2154 | + "value": "140" |
| 2155 | + } |
| 2156 | + ], |
| 2157 | + "cookie": [], |
| 2158 | + "body": "{\n \"recipient_id\": \"28860385560243840\",\n \"message_id\": \"m_-qirblJ2OJZK19TMKldWsTm_d4OFucFpIfIKCO_Nf5qDco7MqUYgTGRdcw9Op4SZo_aQH6hAorgRRABhkT9nxQ\"\n}" |
| 2159 | + } |
| 2160 | + ] |
2015 | 2161 | } |
2016 | 2162 | ], |
2017 | | - "description": "## **Generic Template**\n\nThe generic template is a simple structured message that includes a title, subtitle, image, and up to three buttons. You may also specify a `default_action` object that sets a URL that will be opened in the Messenger webview when the template is tapped.\n\nFor more details see [https://developers.facebook.com/docs/messenger-platform/send-messages/template/generic<br>](https://developers.facebook.com/docs/messenger-platform/send-messages/template/generic)\n\n## Receipt Template\n\nThe receipt template allows you to send an order confirmation as a structured message. The template may include an order summary, payment details, and shipping information.\n\nFor more details see [https://developers.facebook.com/docs/messenger-platform/send-messages/template/receipt](https://developers.facebook.com/docs/messenger-platform/send-messages/template/receipt)\n\n## Button Template\n\nThe button template sends a text message with up to three attached buttons. This template is useful for offering the message recipient options to choose from, such as pre-determined responses to a question, or actions to take.\n\nFor more details see [https://developers.facebook.com/docs/messenger-platform/send-messages/template/button](https://developers.facebook.com/docs/messenger-platform/send-messages/template/button)\n\n## Media Template\n\nThe media template allows you to send images, GIFs, and video as a structured message with an optional [button](https://developers.facebook.com/docs/messenger-platform/send-api-reference/buttons). Videos and animated GIFs sent with the media template are playable in the conversation.\n\nFor more details see [https://developers.facebook.com/docs/messenger-platform/send-messages/template/media<br>](https://developers.facebook.com/docs/messenger-platform/send-messages/template/media)\n\n## Customer Feedback Template\n\nBusinesses now have more robust tools such as Customer Feedback Template to measure the experience they provide to their customers. With Customer Feedback Template businesses can:\n\n1. **Increase response rates** for your customer feedback surveys with Messenger’s native customer feedback template.\n \n2. **Aggregate customer satisfaction ratings across channels easily** with built-in Messenger templates such as Customer Satisfaction (CSAT), Net Promoter Score (NPS) and Customer Effort Score (CES) surveys.\n \n3. **Reduce biases and inconsistency** in survey scores with optimized UX.\n \n\nFor more details see: [https://developers.facebook.com/docs/messenger-platform/send-messages/templates/customer-feedback-template](https://developers.facebook.com/docs/messenger-platform/send-messages/templates/customer-feedback-template)" |
| 2163 | + "description": "## **Generic Template**\n\nThe generic template is a simple structured message that includes a title, subtitle, image, and up to three buttons. You may also specify a `default_action` object that sets a URL that will be opened in the Messenger webview when the template is tapped.\n\nFor more details see [https://developers.facebook.com/docs/messenger-platform/send-messages/template/generic<br>](https://developers.facebook.com/docs/messenger-platform/send-messages/template/generic)\n\n## Receipt Template\n\nThe receipt template allows you to send an order confirmation as a structured message. The template may include an order summary, payment details, and shipping information.\n\nFor more details see [https://developers.facebook.com/docs/messenger-platform/send-messages/template/receipt](https://developers.facebook.com/docs/messenger-platform/send-messages/template/receipt)\n\n## Button Template\n\nThe button template sends a text message with up to three attached buttons. This template is useful for offering the message recipient options to choose from, such as pre-determined responses to a question, or actions to take.\n\nFor more details see [https://developers.facebook.com/docs/messenger-platform/send-messages/template/button](https://developers.facebook.com/docs/messenger-platform/send-messages/template/button)\n\n## Media Template\n\nThe media template allows you to send images, GIFs, and video as a structured message with an optional [button](https://developers.facebook.com/docs/messenger-platform/send-api-reference/buttons). Videos and animated GIFs sent with the media template are playable in the conversation.\n\nFor more details see [https://developers.facebook.com/docs/messenger-platform/send-messages/template/media<br>](https://developers.facebook.com/docs/messenger-platform/send-messages/template/media)\n\n## Customer Feedback Template\n\nBusinesses now have more robust tools such as Customer Feedback Template to measure the experience they provide to their customers. With Customer Feedback Template businesses can:\n\n1. **Increase response rates** for your customer feedback surveys with Messenger’s native customer feedback template.\n \n2. **Aggregate customer satisfaction ratings across channels easily** with built-in Messenger templates such as Customer Satisfaction (CSAT), Net Promoter Score (NPS) and Customer Effort Score (CES) surveys.\n \n3. **Reduce biases and inconsistency** in survey scores with optimized UX.\n \n\nFor more details see: [https://developers.facebook.com/docs/messenger-platform/send-messages/templates/customer-feedback-template<br>](https://developers.facebook.com/docs/messenger-platform/send-messages/templates/customer-feedback-template)\n\n## Structured Information Template\n\nThe Structured Information template allows you to send a customer a message that contains a form that gathers the customer's shipping information. You can select the fields you need, make fields required or optional, and receive webhooks with this information when the customer submits the form.\n\nFor more details see: [https://developers.facebook.com/docs/messenger-platform/send-messages/templates/structured-information-template](https://developers.facebook.com/docs/messenger-platform/send-messages/templates/structured-information-template)" |
2018 | 2164 | }, |
2019 | 2165 | { |
2020 | 2166 | "name": "Quick Replies", |
|
0 commit comments