buzzabout docs
API referenceEndpoints

Tracking agents

Nine endpoints — manage agents that collect on a schedule, watch for narrative shifts, and emit alerts.

A tracking agent is a recurring collection + analysis schedule attached to a dataset. Each cycle re-pulls fresh mentions, looks for pattern drift, and emits messages summarising what changed.

Pricing

Each collection cycle charges per-mention as a normal dataset run (mention category, reservation-based). Manual trigger calls follow the same model. See Pricing.

Endpoints

POST /v1/tracking_agents

POST
/v1/tracking_agents

Authorization

ApiKeyAuth
x-api-key<token>

Buzzabout API key, beginning with bz_live_ (or bz_test_ for staging-only keys).

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/tracking_agents" \  -H "Content-Type: application/json" \  -d '{    "count": 50,    "instructions": "Surface posts complaining about Acme\'s pricing or contract terms.",    "integration_ids": [],    "name": "Daily Acme pricing scan",    "num_comments_per_post": 10,    "prompt": "What people say about Acme\'s pricing",    "schedule": {      "frequency": "daily",      "time": "09:00"    },    "search_queries": [      {        "country_code": "us",        "language": "en",        "search_query": "\\"Acme pricing\\" OR \\"Acme contract\\"",        "sources": [          "reddit",          "x"        ],        "type": "prompt"      }    ],    "template": "monitor_topic"  }'
{
  "status": "info",
  "data": {
    "collection_id": "ds_2N9CnZSjLZA8ZkFqA6E1bKpY7Wj",
    "count": 50,
    "created_at": 1717200000,
    "id": "ta_2NK4Z",
    "instructions": "Track pricing complaints mentioning Acme",
    "integrations": [],
    "last_run_at": 1717200000,
    "name": "Daily pricing scan",
    "next_run_at": 1717286400,
    "num_comments_per_post": 10,
    "paused": false,
    "prompt": "Track pricing complaints mentioning Acme",
    "schedule": {
      "frequency": "daily",
      "time": "09:00"
    },
    "search_queries": [
      {
        "country_code": "us",
        "language": "en",
        "search_query": "\"Acme pricing\" OR \"Acme contract\"",
        "sources": [
          "reddit",
          "x"
        ],
        "type": "prompt"
      }
    ],
    "template": "monitor_topic",
    "updated_at": 1717200000
  }
}
{
  "status": "info",
  "error_code": "tracking_agent_query_volume_too_low",
  "detail": "string",
  "transient": true
}
{
  "status": "info",
  "error_code": "tracking_agent_limit_reached",
  "detail": "string",
  "transient": true
}
{
  "status": "info",
  "error_code": "tracking_agent_template_not_found",
  "detail": "string",
  "transient": true
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

GET /v1/tracking_agents

GET
/v1/tracking_agents

Authorization

ApiKeyAuth
x-api-key<token>

Buzzabout API key, beginning with bz_live_ (or bz_test_ for staging-only keys).

In: header

Response Body

application/json

curl -X GET "https://example.com/v1/tracking_agents"
{
  "status": "info",
  "data": [
    {
      "collection_id": "ds_2N9CnZSjLZA8ZkFqA6E1bKpY7Wj",
      "count": 50,
      "created_at": 1717200000,
      "id": "ta_2NK4Z",
      "instructions": "Track pricing complaints mentioning Acme",
      "integrations": [],
      "last_run_at": 1717200000,
      "name": "Daily pricing scan",
      "next_run_at": 1717286400,
      "num_comments_per_post": 10,
      "paused": false,
      "prompt": "Track pricing complaints mentioning Acme",
      "schedule": {
        "frequency": "daily",
        "time": "09:00"
      },
      "search_queries": [
        {
          "country_code": "us",
          "language": "en",
          "search_query": "\"Acme pricing\" OR \"Acme contract\"",
          "sources": [
            "reddit",
            "x"
          ],
          "type": "prompt"
        }
      ],
      "template": "monitor_topic",
      "updated_at": 1717200000
    }
  ]
}

GET /v1/tracking_agents/{agent_id}

GET
/v1/tracking_agents/{agent_id}

Authorization

ApiKeyAuth
x-api-key<token>

Buzzabout API key, beginning with bz_live_ (or bz_test_ for staging-only keys).

In: header

Path Parameters

agent_id*Agent Id

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/tracking_agents/string"
{
  "status": "info",
  "data": {
    "collection_id": "ds_2N9CnZSjLZA8ZkFqA6E1bKpY7Wj",
    "count": 50,
    "created_at": 1717200000,
    "id": "ta_2NK4Z",
    "instructions": "Track pricing complaints mentioning Acme",
    "integrations": [],
    "last_run_at": 1717200000,
    "name": "Daily pricing scan",
    "next_run_at": 1717286400,
    "num_comments_per_post": 10,
    "paused": false,
    "prompt": "Track pricing complaints mentioning Acme",
    "schedule": {
      "frequency": "daily",
      "time": "09:00"
    },
    "search_queries": [
      {
        "country_code": "us",
        "language": "en",
        "search_query": "\"Acme pricing\" OR \"Acme contract\"",
        "sources": [
          "reddit",
          "x"
        ],
        "type": "prompt"
      }
    ],
    "template": "monitor_topic",
    "updated_at": 1717200000
  }
}
{
  "status": "info",
  "error_code": "not_found",
  "detail": "string",
  "transient": true
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

PATCH /v1/tracking_agents/{agent_id}

PATCH
/v1/tracking_agents/{agent_id}

Authorization

ApiKeyAuth
x-api-key<token>

Buzzabout API key, beginning with bz_live_ (or bz_test_ for staging-only keys).

In: header

Path Parameters

agent_id*Agent Id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/v1/tracking_agents/string" \  -H "Content-Type: application/json" \  -d '{    "name": "Daily Acme pricing scan (refined)",    "schedule": {      "day": "monday",      "frequency": "weekly",      "time": "09:00"    }  }'
{
  "status": "info",
  "data": {
    "collection_id": "ds_2N9CnZSjLZA8ZkFqA6E1bKpY7Wj",
    "count": 50,
    "created_at": 1717200000,
    "id": "ta_2NK4Z",
    "instructions": "Track pricing complaints mentioning Acme",
    "integrations": [],
    "last_run_at": 1717200000,
    "name": "Daily pricing scan",
    "next_run_at": 1717286400,
    "num_comments_per_post": 10,
    "paused": false,
    "prompt": "Track pricing complaints mentioning Acme",
    "schedule": {
      "frequency": "daily",
      "time": "09:00"
    },
    "search_queries": [
      {
        "country_code": "us",
        "language": "en",
        "search_query": "\"Acme pricing\" OR \"Acme contract\"",
        "sources": [
          "reddit",
          "x"
        ],
        "type": "prompt"
      }
    ],
    "template": "monitor_topic",
    "updated_at": 1717200000
  }
}
Empty
{
  "status": "info",
  "error_code": "tracking_agent_query_volume_too_low",
  "detail": "string",
  "transient": true
}
{
  "status": "info",
  "error_code": "not_found",
  "detail": "string",
  "transient": true
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

DELETE /v1/tracking_agents/{agent_id}

DELETE
/v1/tracking_agents/{agent_id}

Authorization

ApiKeyAuth
x-api-key<token>

Buzzabout API key, beginning with bz_live_ (or bz_test_ for staging-only keys).

In: header

Path Parameters

agent_id*Agent Id

Response Body

application/json

application/json

curl -X DELETE "https://example.com/v1/tracking_agents/string"
Empty
{
  "status": "info",
  "error_code": "not_found",
  "detail": "string",
  "transient": true
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

POST /v1/tracking_agents/{agent_id}/pause

POST
/v1/tracking_agents/{agent_id}/pause

Authorization

ApiKeyAuth
x-api-key<token>

Buzzabout API key, beginning with bz_live_ (or bz_test_ for staging-only keys).

In: header

Path Parameters

agent_id*Agent Id

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/tracking_agents/string/pause"
Empty
{
  "status": "info",
  "error_code": "not_found",
  "detail": "string",
  "transient": true
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

POST /v1/tracking_agents/{agent_id}/resume

POST
/v1/tracking_agents/{agent_id}/resume

Authorization

ApiKeyAuth
x-api-key<token>

Buzzabout API key, beginning with bz_live_ (or bz_test_ for staging-only keys).

In: header

Path Parameters

agent_id*Agent Id

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/tracking_agents/string/resume"
Empty
{
  "status": "info",
  "error_code": "not_found",
  "detail": "string",
  "transient": true
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

POST /v1/tracking_agents/{agent_id}/trigger

POST
/v1/tracking_agents/{agent_id}/trigger

Authorization

ApiKeyAuth
x-api-key<token>

Buzzabout API key, beginning with bz_live_ (or bz_test_ for staging-only keys).

In: header

Path Parameters

agent_id*Agent Id

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/tracking_agents/string/trigger"
{
  "status": "info",
  "data": {
    "agent_id": "ta_2N9CnZSjLZA8ZkFqA6E1bKpY7Wj",
    "created_at": 1746090862,
    "dataset_run_ids": [
      "dsr_2N9CnZSjLZA8ZkFqA6E1bKpY7Wj"
    ],
    "id": "tar_2N9CnZSjLZA8ZkFqA6E1bKpY7Wj",
    "status": {
      "type": "pending"
    }
  }
}
{
  "status": "info",
  "error_code": "insufficient_credits",
  "detail": "string",
  "transient": true
}
{
  "status": "info",
  "error_code": "not_found",
  "detail": "string",
  "transient": true
}
{
  "status": "info",
  "error_code": "tracking_agent_run_in_progress",
  "detail": "string",
  "transient": true
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

GET /v1/tracking_agents/{agent_id}/messages

GET
/v1/tracking_agents/{agent_id}/messages

Authorization

ApiKeyAuth
x-api-key<token>

Buzzabout API key, beginning with bz_live_ (or bz_test_ for staging-only keys).

In: header

Path Parameters

agent_id*Agent Id

Query Parameters

limit?Limit
Default25
Range1 <= value <= 100
cursor?|null

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/tracking_agents/string/messages"
{
  "status": "info",
  "data": [
    {
      "agent_id": "ta_2N9CnZSjLZA8ZkFqA6E1bKpY7Wj",
      "agent_name": "Daily Acme pricing scan",
      "comment_count": 87,
      "created_at": 1746090862,
      "message_id": "tam_2N9CnZSjLZA8ZkFqA6E1bKpY7Wj",
      "new_mention_count": 12,
      "sentiment_score": -0.41,
      "short_preview_message": "12 new posts; sentiment dipped after the Friday price-tier change"
    }
  ],
  "has_next": true,
  "cursor": "string"
}
{
  "status": "info",
  "error_code": "not_found",
  "detail": "string",
  "transient": true
}
{
  "status": "info",
  "error_code": "invalid_cursor",
  "detail": "string",
  "transient": true
}

Lifecycle

An agent moves through three states:

  • active — collects on the configured schedule, emits messages for noteworthy changes.
  • paused — no scheduled work; POST .../resume brings it back online without losing history.
  • deleted — soft delete. The agent and its message history are hidden from list endpoints but retained on the server.

POST .../trigger forces an out-of-schedule cycle. It returns 402 if the account's balance can't cover the reservation.

Messages

GET .../{id}/messages returns the per-agent alert feed, cursor-paginated, newest first. Each message has a text body (markdown with inline post links — see Reference types) plus a created_at timestamp.

Pattern-detection alerts include a pattern reference under references[]; expand via GET /v1/patterns/{id}.

Next steps

On this page