cURL
curl --request GET \ --url https://api.belio.co.ke/data/campaign \ --header 'Authorization: Bearer <token>'
{ "desc": "OK", "result": { "page": 123, "pageSize": 123, "total": 123, "data": [ { "id": "<string>", "name": "<string>", "description": "<string>", "teamId": "<string>", "serviceId": "<string>", "status": "Active", "rules": { "frequency": { "type": "OneTime" }, "allowedDenominations": [ "20MB" ], "expiry": "2023-11-07T05:31:56Z" } } ] } }
Fetches all campaigns for the authenticated team.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
1-indexed page number
x >= 1
Max number of items per page
Campaigns retrieved successfully
"OK"
Show child attributes