REST API

The REST API is allows you to integrate Alerts.boo into your apps & workflows. To start building with Alerts.boo, create an account at https://app.alerts.boo

Directory

You can also experiment with the code in our interactive Codepen Collection

We recommend using JSON Hero to view the sample objects

Command
API Route

Visit on Web - https://app.alerts.boo/settings

Sent to your webhook

Types reference for objects - Watcher, Log, User

GET /watchers/:watcherID

POST /watchers/list

POST /watchers/create

POST /watchers/:watcherID/update

POST /watchers/:watcherID/logs/list

GET /logs/:logID

GET /users/:userID

POST /users/:userID/rotate-token

POST /billing/:userID/topup-credits

Authentication

All commands in the REST API require authentication with an API Key. Copy your API Key from the web app settings page. Try the doc examples on your own data.

Get your API Key πŸ‘‰ https://app.alerts.boo/settings

Be careful with your API Key! Anyone who has it can control your account. If your API key has been leaked, immediately rotate it.

Browser Screenshot (Find your API Key)

Alert Payload

This is what gets sent to your webhook. Preview what is looks like so you can add it to your workflow or app.

Types Schema

πŸ‘‰ View Sample Object

Get Watcher

GET /watchers/:watcherID View a Watcher in detail, excluding its logs. If you want logs, use List Logs.


List Watchers

POST /watchers/list List all the watchers owned by you. Filter by attributes and paginate through results. Can also be used to search by exact username.

Argument
Type
Description

status

enum

Optional. Filter by watcher status. Options are Active , Awaiting, Pending, Paused, Problem, Insufficient Funds . Leave blank for all.

platform

enum

Optional. Filter by platform. Options are Instagram or Twitter

slug

string

Optional. Search by exact username match, case insensitive.

limit

number

Optional. Limit the search results. Default is 20, max is 100

cursor

WatcherID

Optional Pagination. The string ID of the last Watcher of your previous query.

customDataUID

string

Optional. A string field indexed for you to use as a custom searchable ID (eg. your users). Max 256 chars.


Create Watcher

POST /watchers/create Create a new Watcher with advanced features such as custom metadata & auto-expire after inactivity.

Argument
Type
Description

url

string

Required. The url of your watchers source. For example, a pages' Instagram profile URL.

webhookUrl

string

Optional. The url of your webhook that will recieve alerts. Use empty string to remove webhook.

filterPrompt

string

Optional. The prompt for the Ai use as filter criteria. Determines if you get alerted. Max 2000 chars. Use empty string to remove filter criteria.

alias

string

Optional. A human friendly name to identify your watcher. Max 256 chars.

autoExpireMs

number

Optional. Watchers can auto-expire if it hasn't seen any activity in milliseconds. Defaults to 3 months. Min 1 hour, Max 10 years.

note

string

Optional. A private note only you can see. Max 10k chars.

customData.uid

string

Optional. A string field indexed for you to use as a custom searchable ID (eg. your users). Max 256 chars.

customData.data

string

Optional. A string serialized object for any additional data you want to store. Max 100kb or 100k chars.



Update Watcher

POST /watchers/:watcherID/update Update a Watcher with advanced features such as custom metadata & auto-expire after inactivity.

Argument
Type
Description

status

enum

Optional. Set watcher status to Active or Paused or Inactive (Be careful with Inactive as it is equal to a deletion and cannot be undone).

webhookUrl

string

Optional. The url of your webhook that will recieve alerts. Use empty string to remove webhook.

filterPrompt

string

Optional. The prompt for the Ai use as filter criteria. Determines if you get alerted. Max 2000 chars. Use empty string to remove filter criteria.

note

string

Optional. A private note only you can see. Max 10k chars.

alias

string

Optional. A human friendly name to identify your watcher. Max 256 chars.

autoExpireMs

number

Optional. Watchers can auto-expire if it hasn't seen any activity in milliseconds. Defaults to 3 months. Min 1 hour, Max 10 years.

customData.uid

string

Optional. A string field indexed for you to use as a custom searchable ID (eg. your users). Max 256 chars.

customData.data

string

Optional. A string serialized object for any additional data you want to store. Max 100kb or 100k chars.


List Logs

POST /watchers/:watcherID/logs/list List the most recents logs from a Watcher. Paginate through logs by most recent first.

Argument
Type
Description

limit

number

Optional. Limit the search results. Default is 20, max is 100

cursor

LogID

Optional Pagination. The string ID of the last Log of your previous query.


Get Log

GET /logs/:logID Get details of a specific log.


My Profile

GET /users/:userID Get user details of your account.


Rotate API Key

POST /users/:userID/rotate-token Rotate your accounts' API key and return the new key in response. Be careful as old keys will stop working.


Buy Credits

POST /billing/:userID/topup-credits Buy additional credits to pay for your usage. You will first need to setup billing by entering your credit card in the webapp settings page πŸ‘‰ https://app.alerts.boo/settings Use this API route to programmatically buy more credits whenever you need. Your default credit card will be billed.

Argument
Type
Description

amount

number

Required. The amount of credits you would like to buy as a one-time purchase. Min 20 credits, Max 40k credits.


Rate Limits

There are 3 rate limits for the REST API. Contact us if you need more.

Rate
Routes

1 per 3 seconds

POST /billing/:userID/topup-credits POST /users/:userID/rotate-token

3 per 3 seconds

POST /watchers/list POST /watchers/:watcherID/logs/list

10 per 3 seconds

Everything Else

Last updated