|
669 | 669 | "body": "{\n \"recipient_id\": \"20802401916297\",\n \"message_id\": \"aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjEyNTAyNDAyNjQwOTMwOjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1ODE4NzUxOTk3OTcyODI5MjozMjM4NzQ4MDk1NTU2NDIxMjIzNDE1NjY3NTg0NzY4NDA5NgZDZD\"\n}" |
670 | 670 | } |
671 | 671 | ] |
| 672 | + }, |
| 673 | + { |
| 674 | + "name": "Button Template", |
| 675 | + "request": { |
| 676 | + "method": "POST", |
| 677 | + "header": [], |
| 678 | + "body": { |
| 679 | + "mode": "raw", |
| 680 | + "raw": "{\n \"recipient\": {\n \"id\": {{ig_scoped_id}}\n },\n \"message\": {\n \"attachment\": {\n \"type\": \"template\",\n \"payload\": {\n \"template_type\":\"button\",\n \"text\":\"<MESSAGE_TEXT>\",\n \"buttons\":[\n <BUTTON_OBJECT>, \n <BUTTON_OBJECT>, \n ...\n ]\n}\n }\n}", |
| 681 | + "options": { |
| 682 | + "raw": { |
| 683 | + "language": "json" |
| 684 | + } |
| 685 | + } |
| 686 | + }, |
| 687 | + "url": { |
| 688 | + "raw": "https://graph.instagram.com/{{api_version}}/{{ig_user_id}}/messages", |
| 689 | + "protocol": "https", |
| 690 | + "host": [ |
| 691 | + "graph", |
| 692 | + "instagram", |
| 693 | + "com" |
| 694 | + ], |
| 695 | + "path": [ |
| 696 | + "{{api_version}}", |
| 697 | + "{{ig_user_id}}", |
| 698 | + "messages" |
| 699 | + ] |
| 700 | + } |
| 701 | + }, |
| 702 | + "response": [ |
| 703 | + { |
| 704 | + "name": "Button Template", |
| 705 | + "originalRequest": { |
| 706 | + "method": "POST", |
| 707 | + "header": [], |
| 708 | + "body": { |
| 709 | + "mode": "raw", |
| 710 | + "raw": "{\n \"recipient\": {\n \"id\": {{ig_scoped_id}}\n },\n \"message\": {\n \"attachment\": {\n \"type\": \"template\",\n \"payload\": {\n \"template_type\": \"button\",\n \"text\": \"What do you want to do next?\",\n \"buttons\": [\n {\n \"type\": \"web_url\",\n \"url\": \"https://www.messenger.com\",\n \"title\": \"Visit Messenger\"\n }\n ]\n }\n }\n }\n}", |
| 711 | + "options": { |
| 712 | + "raw": { |
| 713 | + "language": "json" |
| 714 | + } |
| 715 | + } |
| 716 | + }, |
| 717 | + "url": { |
| 718 | + "raw": "https://graph.instagram.com/{{api_version}}/{{ig_user_id}}/messages", |
| 719 | + "protocol": "https", |
| 720 | + "host": [ |
| 721 | + "graph", |
| 722 | + "instagram", |
| 723 | + "com" |
| 724 | + ], |
| 725 | + "path": [ |
| 726 | + "{{api_version}}", |
| 727 | + "{{ig_user_id}}", |
| 728 | + "messages" |
| 729 | + ] |
| 730 | + } |
| 731 | + }, |
| 732 | + "status": "OK", |
| 733 | + "code": 200, |
| 734 | + "_postman_previewlanguage": "json", |
| 735 | + "header": [ |
| 736 | + { |
| 737 | + "key": "Content-Type", |
| 738 | + "value": "application/json; charset=UTF-8" |
| 739 | + }, |
| 740 | + { |
| 741 | + "key": "Vary", |
| 742 | + "value": "Origin" |
| 743 | + }, |
| 744 | + { |
| 745 | + "key": "cross-origin-resource-policy", |
| 746 | + "value": "cross-origin" |
| 747 | + }, |
| 748 | + { |
| 749 | + "key": "x-app-usage", |
| 750 | + "value": "{\"call_volume\":0,\"cpu_time\":0}" |
| 751 | + }, |
| 752 | + { |
| 753 | + "key": "instagram-api-version", |
| 754 | + "value": "v22.0" |
| 755 | + }, |
| 756 | + { |
| 757 | + "key": "Access-Control-Allow-Origin", |
| 758 | + "value": "*" |
| 759 | + }, |
| 760 | + { |
| 761 | + "key": "Strict-Transport-Security", |
| 762 | + "value": "max-age=31536000; preload; includeSubDomains" |
| 763 | + }, |
| 764 | + { |
| 765 | + "key": "Pragma", |
| 766 | + "value": "no-cache" |
| 767 | + }, |
| 768 | + { |
| 769 | + "key": "Cache-Control", |
| 770 | + "value": "private, no-cache, no-store, must-revalidate" |
| 771 | + }, |
| 772 | + { |
| 773 | + "key": "Expires", |
| 774 | + "value": "Sat, 01 Jan 2000 00:00:00 GMT" |
| 775 | + }, |
| 776 | + { |
| 777 | + "key": "x-fb-request-id", |
| 778 | + "value": "AQwUB5p6JMvfSCttSqB4sod" |
| 779 | + }, |
| 780 | + { |
| 781 | + "key": "x-fb-trace-id", |
| 782 | + "value": "EO6SKp0bLlA" |
| 783 | + }, |
| 784 | + { |
| 785 | + "key": "x-fb-rev", |
| 786 | + "value": "1026131876" |
| 787 | + }, |
| 788 | + { |
| 789 | + "key": "x-stack", |
| 790 | + "value": "www" |
| 791 | + }, |
| 792 | + { |
| 793 | + "key": "X-FB-Debug", |
| 794 | + "value": "rehU73StfwO7gQxQa0bcFRROnWVdUpy2mrJdMichjzzZr2TMi7s6ROIhriT6wi4hJo+DDogUWEd3Zbw+lvIR/w==" |
| 795 | + }, |
| 796 | + { |
| 797 | + "key": "Date", |
| 798 | + "value": "Wed, 20 Aug 2025 22:34:54 GMT" |
| 799 | + }, |
| 800 | + { |
| 801 | + "key": "X-FB-Connection-Quality", |
| 802 | + "value": "EXCELLENT; q=0.9, rtt=28, rtx=0, c=14, mss=1208, tbw=3288, tp=-1, tpl=-1, uplat=1166, ullat=0" |
| 803 | + }, |
| 804 | + { |
| 805 | + "key": "Alt-Svc", |
| 806 | + "value": "h3=\":443\"; ma=86400" |
| 807 | + }, |
| 808 | + { |
| 809 | + "key": "Connection", |
| 810 | + "value": "keep-alive" |
| 811 | + }, |
| 812 | + { |
| 813 | + "key": "Content-Length", |
| 814 | + "value": "209" |
| 815 | + } |
| 816 | + ], |
| 817 | + "cookie": [], |
| 818 | + "body": "{\n \"recipient_id\": \"20802401916297\",\n \"message_id\": \"aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjEyNTAyNDAyNjQwOTMwOjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1ODE4NzUxOTk3OTcyODI5MjozMjM4NzQ4ODk0Njg5MDkwMzc2NTc5NDI0MzU4NjU1NTkwNAZDZD\"\n}" |
| 819 | + } |
| 820 | + ] |
672 | 821 | } |
673 | 822 | ], |
674 | | - "description": "## Generic Template\n\nThe generic template allows you to send a structured message that includes an image, text and buttons. A generic template with multiple templates described in the [<code>elements</code>](https://developers.facebook.com/docs/messenger-platform/instagram/features/generic-template#elements) array will send a horizontally scrollable carousel of items, each composed of an image, text and buttons." |
| 823 | + "description": "## Generic Template\n\nThe generic template allows you to send a structured message that includes an image, text and buttons. A generic template with multiple templates described in the [<code>elements</code>](https://developers.facebook.com/docs/messenger-platform/instagram/features/generic-template#elements) array will send a horizontally scrollable carousel of items, each composed of an image, text and buttons.\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 predetermined responses to a question, or actions to take." |
675 | 824 | }, |
676 | 825 | { |
677 | 826 | "name": "Text Message", |
|
0 commit comments