Count alerts
GET
/api/v1/alerts/count
const url = 'https://app.prefactorai.com/api/v1/alerts/count';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.prefactorai.com/api/v1/alerts/count \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Success
Media typeapplication/json
object
count
The number of matching alerts
integer
status
string
Example
{ "status": "success"}default
Section titled “default”Error