Query parameters
-
offset integer
Specify the ranking number of the first item on the page. Used for pagination.
-
limit integer
Specify how many results to return. Default is 50 campaigns, maximum is 100 campaigns.
Maximum value is
100
. Default value is50
. -
showArchives boolean
Specify if the archived campaigns should be included or not. Default is false.
Default value is
false
.
Responses
-
200 application/json
List of campaigns.
-
Bad Request -- Your request is invalid.
-
Unauthorized -- Your API key is wrong.
-
Forbidden -- The object requested is hidden for administrators only.
-
Not Found -- The specified object could not be found.
-
Too Many Requests -- You're requesting too many objects! Slow down!
-
Internal Server Error -- We had a problem with our server. Try again later.
-
Service Unavailable -- We're temporarily offline for maintenance. Please try again later.
curl \
-X GET https://api.usecollect.com/v1/campaigns
[
{
"_id": "mYCsdgB4DQoENBaX6",
"name": "ERC application",
"count": {
"due": 5,
"done": 61,
"open": 4,
"error": 0,
"message": 0,
"request": 72,
"waiting": 2
},
"status": "open",
"createdAt": "2022-11-22T13:28:08Z"
},
{
"_id": "wFndw23xmx5RdWrFX",
"name": "Company KYC",
"count": {
"due": 0,
"done": 18,
"open": 4,
"error": 0,
"message": 0,
"request": 22,
"waiting": 0
},
"status": "open",
"createdAt": "2023-01-31T09:49:25Z"
}
]