This feature is currently in BETA!
From this article, you will learn how to generate a token for the ManyChat API and where to obtain the parameters.
How to generate and authorize a token
To use the ManyChat API, you need to generate a token. Navigate to “Settings” -> “API”, and then click on “ Generate Token”button. 
Please note: Refreshing and deleting tokensThis will disable all connected API methods!

Once the token is successfully generated, you can use our Swagger to try the API.7. find a step-by-step guide here!Available.
To add the token to Swagger, click the “Authorize” button here:
To authorize the token, please enterBearer, and then click “Authorize”:

You can also refresh or delete the token in the “API Settings” tab.
Where can I obtain parameters (e.g., tag ID)?
- Subscriber ID - in the user card in the audience;
- Flow_ns - obtain it from your Flow URL;
- Tag ID, custom user field ID - use/ fb / page / getTags API method to get a list of all tag IDs and CUF IDs./ fb / page / getCustomFields.
How to use the / fb / subscriber / setCustomField API method #
Depending on the type of “custom user field,” you need to use one of the following data types for “field_value”:
- Text - for example “text”
- Number - for example 123
- Boolean - for example “true or false”
- Date - for example “2018-07-18”
- Date and time - for example “2018-07-02T00:00:00+00:00”
How to use the / fb / subscriber / findByCustomField API method #
You can search for a list of users with specific values in a specific “custom user” field.
- This API method is only applicable to “text” and “number” types of “custom user fields.”
- Results are sorted by the last updated value of the specific user's “custom user field.”
- The list is limited to 100 elements.
Is there a limit on the number of API calls? #
The POST method only has an RPS limit (per page):
- / fb / sending / sendFlow, / fb / sending / sendContent - 25 RPS;
- / fb / subscriber / addTag, / fb / subscriber / removeTag, / fb / subscriber / setCustomField - 10 RPS.