Monitors
Create Monitor
Changed onCreate a monitor that tracks configured rules and triggers actions when incidents match.
post/v0/platform/monitors/
Request
- Base URLhttps://api.blockaid.io
- Auth
- API key in header X-API-Key
- or API key in header X-CLIENT-ID
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"monitors": [
{
"params": {
"limit_usdc": 1000000,
"critical_usdc": 10000000
}
}
]
}Response
Example response
{
"monitors": [
{
"params": {
"limit_usdc": 1000000,
"critical_usdc": 10000000
}
}
]
}Changes
- info
added the new optional request property
//// - info
added the optional property
////to the response with the status
- info
- breaking
removed
subschema #18: Custom Logic Rulesfrom the/request propertyoneOflist - breaking
added
subschema #18: Code-Based Monitor Rulesto the/response propertyoneOflist for the response status - info
added
subschema #18: Code-Based Monitor Rulesto the/request propertyoneOflist - info
removed
subschema #18: Custom Logic Rulesfrom the/response propertyoneOflist for the response status
- breaking