Read the event log
scope campaigns:readreads
Returns what happened in the brand’s workspace, oldest first: clips submitted, approved and rejected, deposits credited, campaigns paused, resumed and ended.
Everything the agent is told about this tool
Returns what happened in the brand’s workspace, oldest first: clips submitted, approved and rejected, deposits credited, campaigns paused, resumed and ended. You see an event only if your key holds the scope of the tool that reads the same fact (a deposit needs wallet:read, a clip clips:read). Each entry has a seq; pass the last one you saw as after to read only what is newer, up to 100 per call; nextAfter is the value to hand back next time. Events are kept 30 days. Use it to find out what changed since you last looked, instead of reading every report again, and to learn the outcome of a spending request (campaign.activated, campaign.budget_added, campaign.ended, approval.rejected, approval.expired). Example: {"after": 1240, "limit": 50}.
Arguments
Section titled “Arguments”| Name | Type | Required | Description |
|---|---|---|---|
after |
integer |
no | The seq of the last event you have seen. Leave it out to read from the start of the log. |
limit |
integer |
no | How many events to return at most. |
Example
Section titled “Example”curl https://countviews.com/api/public/v1/call \ -H "Authorization: Bearer $COUNTVIEWS_KEY" \ -H "Content-Type: application/json" \ -d '{"name":"events_list","arguments":{"after":1240,"limit":50}}'{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "events_list", "arguments": { "after": 1240, "limit": 50 } }}{ "after": 1240, "limit": 50}