	{"id":933,"date":"2022-10-05T18:49:06","date_gmt":"2022-10-05T10:49:06","guid":{"rendered":"https:\/\/manychat.com.hk\/?post_type=docs&#038;p=933"},"modified":"2022-10-05T18:49:06","modified_gmt":"2022-10-05T10:49:06","password":"","slug":"%e3%80%90%e9%96%8b%e7%99%bc%e5%b7%a5%e5%85%b7%e3%80%91manychat-api","status":"publish","type":"docs","link":"https:\/\/manychat.com.hk\/en\/docs\/%e3%80%90%e9%96%8b%e7%99%bc%e5%b7%a5%e5%85%b7%e3%80%91manychat-api\/","title":{"rendered":"\u3010Development Tools\u3011ManyChat API"},"content":{"rendered":"<p class=\"fr-text-uppercase\" data-identifyelement=\"468\"><strong data-identifyelement=\"469\">This feature is currently in BETA!<\/strong><\/p>\n<p data-identifyelement=\"472\">From this article, you will learn how to generate a token for the ManyChat API and where to obtain the parameters.<\/p>\n<p data-identifyelement=\"473\"><span data-identifyelement=\"474\"><strong data-identifyelement=\"475\">How to generate and authorize a token<br data-identifyelement=\"476\" \/><\/strong><\/span><\/p>\n<p data-identifyelement=\"477\">To use the ManyChat API, you need to generate a token. Navigate to \u201cSettings\u201d -&gt; \u201cAPI\u201d, and then click on \u201c\u00a0<strong data-identifyelement=\"478\">Generate Token\u201d<\/strong>button.\u00a0<img decoding=\"async\" class=\"fr-dib\" src=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/36011196171\/original\/w0wxoFWS_htiut-jDdbNJkjKt8_eQtQbdw.png?1531481577\" data-filelink=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/36011196171\/original\/w0wxoFWS_htiut-jDdbNJkjKt8_eQtQbdw.png?1531481577\" data-fileid=\"36011196171\" data-uniquekey=\"1531480679470\" data-identifyelement=\"479\" \/><\/p>\n<p data-identifyelement=\"480\"><em data-identifyelement=\"481\">Please note:\u00a0<\/em>Refreshing and deleting tokens<strong data-identifyelement=\"482\">This will disable all connected API methods<\/strong>!<\/p>\n<p data-identifyelement=\"483\"><img decoding=\"async\" class=\"fr-dib\" src=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/36011196207\/original\/y7CqQdmmCFkkBRXq1Gnmc6Uxoag9JPawYA.png?1531481605\" data-filelink=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/36011196207\/original\/y7CqQdmmCFkkBRXq1Gnmc6Uxoag9JPawYA.png?1531481605\" data-fileid=\"36011196207\" data-uniquekey=\"1531480679470\" data-identifyelement=\"484\" \/><\/p>\n<p data-identifyelement=\"485\">Once the token is successfully generated, you can use our Swagger to try the API.<a href=\"https:\/\/api.manychat.com\/swagger\" target=\"_blank\" rel=\"noreferrer noopener\" data-identifyelement=\"486\">7. find a step-by-step guide here!<\/a>Available.<\/p>\n<p data-identifyelement=\"487\">To add the token to Swagger, click the \u201cAuthorize\u201d button here:<\/p>\n<p data-identifyelement=\"488\"><img decoding=\"async\" class=\"fr-dib\" src=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/36011176629\/original\/TZ549kfP2WcOrMgcu1gcXnRbhH1pq9zx3w?1531470674\" data-filelink=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/36011176629\/original\/TZ549kfP2WcOrMgcu1gcXnRbhH1pq9zx3w?1531470674\" data-fileid=\"36011176629\" data-uniquekey=\"1531470362515\" data-identifyelement=\"489\" \/><\/p>\n<p data-identifyelement=\"490\">To authorize the token, please enter<strong data-identifyelement=\"491\">Bearer<\/strong>, and then click \u201cAuthorize\u201d:<\/p>\n<p data-identifyelement=\"492\"><img decoding=\"async\" class=\"fr-dib\" src=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/36011179348\/original\/mUmjRdFXkomFJgERCbpqAbeuRDX3EI935A.png?1531472139\" data-filelink=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/36011179348\/original\/mUmjRdFXkomFJgERCbpqAbeuRDX3EI935A.png?1531472139\" data-fileid=\"36011179348\" data-uniquekey=\"1531471895432\" data-identifyelement=\"493\" \/><\/p>\n<p data-identifyelement=\"494\">You can also refresh or delete the token in the \u201cAPI Settings\u201d tab.<\/p>\n<p data-identifyelement=\"495\"><img decoding=\"async\" class=\"fr-dib\" src=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/36011212624\/original\/rb-mmvf9cnXKp9WV4CZ2KfseI8R6QQ8xng?1531489947\" data-filelink=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/36011212624\/original\/rb-mmvf9cnXKp9WV4CZ2KfseI8R6QQ8xng?1531489947\" data-fileid=\"36011212624\" data-uniquekey=\"1531489877671\" data-identifyelement=\"496\" \/><\/p>\n<p data-identifyelement=\"497\"><span data-identifyelement=\"498\"><strong data-identifyelement=\"499\">Where can I obtain parameters (e.g., tag ID)?<\/strong><\/span><\/p>\n<ul data-identifyelement=\"500\">\n<li data-identifyelement=\"501\">Subscriber ID - in the user card in the audience;<br data-identifyelement=\"502\" \/><img decoding=\"async\" class=\"fr-dib\" src=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/36011196040\/original\/XcU0Pj0p7paYR75LYm5geL1rZrEKrAaajA?1531481462\" data-filelink=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/36011196040\/original\/XcU0Pj0p7paYR75LYm5geL1rZrEKrAaajA?1531481462\" data-fileid=\"36011196040\" data-uniquekey=\"1531480679470\" data-identifyelement=\"503\" \/><\/li>\n<li data-identifyelement=\"504\">Flow_ns - obtain it from your Flow URL;<br data-identifyelement=\"505\" \/><img decoding=\"async\" class=\"fr-dib\" src=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/36011177721\/original\/IsdPPmGAhtZbASUPleUOBiZ7wSwGA2c2cA?1531471310\" data-filelink=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/36011177721\/original\/IsdPPmGAhtZbASUPleUOBiZ7wSwGA2c2cA?1531471310\" data-fileid=\"36011177721\" data-uniquekey=\"1531470362515\" data-identifyelement=\"506\" \/><\/li>\n<li data-identifyelement=\"507\">Tag ID, custom user field ID - use<a href=\"https:\/\/api.manychat.com\/swagger#\/Page\/get_fb_page_getTags\" rel=\"noreferrer noopener\" data-identifyelement=\"508\">\/ fb \/ page \/ getTags<\/a>\u00a0API method to get a list of all tag IDs and CUF IDs.<a href=\"https:\/\/api.manychat.com\/swagger#\/Page\/get_fb_page_getCustomFields\" rel=\"noreferrer noopener\" data-identifyelement=\"509\">\/ fb \/ page \/ getCustomFields<\/a>.<\/li>\n<\/ul>\n<h2 data-identifyelement=\"510\"><strong data-identifyelement=\"511\"><span data-identifyelement=\"512\">How to use the \/ fb \/ subscriber \/ setCustomField API method<\/span><\/strong><\/h2>\n<p data-identifyelement=\"513\">Depending on the type of \u201ccustom user field,\u201d you need to use one of the following data types for \u201cfield_value\u201d:<\/p>\n<ul data-identifyelement=\"514\">\n<li data-identifyelement=\"515\">Text - for example \u201ctext\u201d<\/li>\n<li data-identifyelement=\"516\">Number - for example 123<\/li>\n<li data-identifyelement=\"517\">Boolean - for example \u201ctrue or false\u201d<\/li>\n<li data-identifyelement=\"518\">Date - for example \u201c2018-07-18\u201d<\/li>\n<li data-identifyelement=\"519\">Date and time - for example \u201c2018-07-02T00:00:00+00:00\u201d<\/li>\n<\/ul>\n<h2 data-identifyelement=\"520\"><span data-identifyelement=\"521\"><strong data-identifyelement=\"522\">How to use the \/ fb \/ subscriber \/ findByCustomField API method<\/strong><\/span><\/h2>\n<p data-identifyelement=\"523\">You can search for a list of users with specific values in a specific \u201ccustom user\u201d field.<\/p>\n<ul data-identifyelement=\"524\">\n<li data-identifyelement=\"525\">This API method is only applicable to \u201ctext\u201d and \u201cnumber\u201d types of \u201ccustom user fields.\u201d<\/li>\n<li data-identifyelement=\"526\">Results are sorted by the last updated value of the specific user's \u201ccustom user field.\u201d<\/li>\n<li data-identifyelement=\"527\">The list is limited to 100 elements.<\/li>\n<\/ul>\n<h2 data-identifyelement=\"528\"><span data-identifyelement=\"529\"><strong data-identifyelement=\"530\">Is there a limit on the number of API calls?<\/strong><\/span><\/h2>\n<p data-identifyelement=\"531\">The POST method only has an RPS limit (per page):<\/p>\n<ul data-identifyelement=\"532\">\n<li data-identifyelement=\"533\">\/ fb \/ sending \/ sendFlow, \/ fb \/ sending \/ sendContent - 25 RPS;<\/li>\n<li data-identifyelement=\"534\">\/ fb \/ subscriber \/ addTag, \/ fb \/ subscriber \/ removeTag, \/ fb \/ subscriber \/ setCustomField - 10 RPS.<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>\u6b64\u529f\u80fd\u76ee\u524d\u5728BETA\u4e2d\uff01 \u5f9e\u672c\u6587\u4e2d\uff0c\u60a8\u5c07\u5b78\u7fd2\u5982\u4f55\u70baManyChat API\u751f\u6210\u4ee4\u724c\u4ee5\u53ca\u5728\u4f55\u8655\u7372\u53d6\u53c3\u6578\u3002 \u5982\u4f55\u751f [&hellip;]<\/p>","protected":false},"author":20,"featured_media":0,"template":"","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"%%post_title%%","_seopress_titles_desc":"","_seopress_robots_index":"","_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","_eb_attr":"","_surecart_dashboard_logo_width":"180px","_surecart_dashboard_show_logo":true,"_surecart_dashboard_navigation_orders":true,"_surecart_dashboard_navigation_invoices":true,"_surecart_dashboard_navigation_subscriptions":true,"_surecart_dashboard_navigation_downloads":true,"_surecart_dashboard_navigation_billing":true,"_surecart_dashboard_navigation_account":true,"footnotes":""},"doc_category":[47],"doc_tag":[],"class_list":["post-933","docs","type-docs","status-publish","hentry","doc_category-manychat-advance"],"year_month":"2026-04","word_count":75,"total_views":"3294","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Michelle","author_nicename":"michelle","author_url":"https:\/\/manychat.com.hk\/en\/author\/michelle\/"},"doc_category_info":[{"term_name":"ManyChat Advance","term_url":"https:\/\/manychat.com.hk\/en\/docs-category\/manychat-advance\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/manychat.com.hk\/en\/wp-json\/wp\/v2\/docs\/933","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/manychat.com.hk\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/manychat.com.hk\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/manychat.com.hk\/en\/wp-json\/wp\/v2\/users\/20"}],"version-history":[{"count":2,"href":"https:\/\/manychat.com.hk\/en\/wp-json\/wp\/v2\/docs\/933\/revisions"}],"predecessor-version":[{"id":2337,"href":"https:\/\/manychat.com.hk\/en\/wp-json\/wp\/v2\/docs\/933\/revisions\/2337"}],"wp:attachment":[{"href":"https:\/\/manychat.com.hk\/en\/wp-json\/wp\/v2\/media?parent=933"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/manychat.com.hk\/en\/wp-json\/wp\/v2\/doc_category?post=933"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/manychat.com.hk\/en\/wp-json\/wp\/v2\/doc_tag?post=933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}