List Categories
#
Method#
/business/available-categories?query={{SEARCH_STRING (optional)}}GET
https://api.z-api.io/instances/{{instanceId}}/token/{{instanceToken}}/business/available-categories
#
HeaderKey | Value |
---|---|
Client-Token | ACCOUNT SECURITY TOKEN |
#
ConceptThis method allows you to list the available categories that can be assigned to a business/company.
Important
This method is only available for WhatsApp Business accounts.
#
Attributes#
OptionalAttributes | Type | Description |
---|---|---|
query | string | Category search parameter. Example: "technology" |
#
Request Params#
Example URLMethod
#
Response#
200Attribute | Type | Description |
---|---|---|
displayName | string | Category name to be displayed |
id | string | Category identifier. Must be sent in the request to assign categories to the business |
label | (Optional) string | Can also be provided in the request to assign categories to the business |
Example
#
405In this case, make sure you are correctly sending the method specification, i.e., check if you sent POST or PUT as specified at the beginning of this topic.
#
415If you receive a 415 error, make sure to add the "Content-Type" header to the request object you are sending, which in most cases is "application/json".