List Collections
Method#
/catalogs/collection#
GET https://api.z-api.io/instances/{{instanceId}}/token/{{instanceToken}}/catalogs/collection
Header#
| Key | Value | 
|---|---|
| Client-Token | ACCOUNT SECURITY TOKEN | 
Concept#
Using this method, you will be able to list the collections in your catalog.
Attributes#
Optional#
| Attributes | Type | Description | 
|---|---|---|
| nextCursor | string | Token used for pagination of records | 
Request Params#
Example URL#
Method
Response#
200#
| Attributes | Type | Description | 
|---|---|---|
| collections | array object | List with collection data | 
| nextCursor | string or null | Token that defines the records of the next request | 
Object (collections)
| Attributes | Type | Description | 
|---|---|---|
| id | string | Collection ID | 
| name | string | Collection name | 
| status | string | Collection status (PENDING, APPROVED) | 
Example
405#
In this case, ensure that you are sending the method specification correctly, i.e., check if you sent the POST or GET as specified at the beginning of this topic.
415#
If you receive a 415 error, make sure to add the "Content-Type" of the object you are sending in the request headers; in most cases, it should be "application/json".