Create an account monitor
Creates a monitor that polls an account every `interval_minutes` and pushes new tweets to a webhook.
POST
Creates a monitor that polls an account every interval_minutes and pushes new tweets to a webhook.
header
X-API-KEY<token>application/json- body
username?stringkeywords?array<string>Default
"[]"webhook_url?stringinterval_minutes?integerDefault
"5"Created
application/json- response
data*array<>meta?curl -X POST 'https://api.agenttweet.com/v1/monitors' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "data": [ {} ], "meta": { "count": 0, "cursor": "string", "provider": "string", "cached": true, "tokens_raw": 0, "tokens_flat": 0, "tokens_saved": 0, "tokens_saved_pct": 0, "tokens_billed": 0, "cost_usd": 0, "balance_usd": 0, "request_id": "string" }}Cache hit rate and gross margin GET GET
Returns the cache statistics of the whole service: today's and this month's hit rate, the calls that actually reached the upstream, and the effective upstream cost and Bulk gross margin that follow from the hit rate. A cache hit costs zero upstream, so this is the number that decides the margin.
Delete a monitor DELETE DELETE
Deletes a monitor by id.