List communities
#
Method#
/create-groupPOST
https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/communities
#
HeaderKey | Value |
---|---|
Client-Token | ACCOUNT SECURITY TOKEN |
#
ConceptThis method is responsible for returning all the communities you are a part of.
#
Attributes#
RequiredAttribute | Type | Description |
---|
#
OptionalAttribute | Type | Description |
---|---|---|
page | integer | Used for pagination; you can specify the page of communities you want to retrieve |
pageSize | integer | Specifies the size of the community return per page |
#
Request Params#
Example URLMethod
GET
https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/communities
#
Response#
200Attribute | Type | Description |
---|---|---|
name | string | Name of the community |
id | string | Community identifier |
Example
#
405In this case certify that you are sending the correct specification of the method. This means, verify if you sent a POST or GET as specified at the beginning of this topic.
#
415In case you receive 415 error, make sure to add the “Content-Type” of the object you are sending in the request headers, mostly “application/json”