Skip to main content
GET
/
api
/
social
/
v4
/
alerts
/
{alertId}
JavaScript
async function getAlert(alertId) {  const url = `/api/social/v4/alerts/${alertId}`;  const response = await fetch(url);  return await response.json();}
"HTTP/1.1 200 OK{  \"actions\": [],  \"active\": true,  \"category\": \"DATA\",  \"configurations\": [],  \"contextual\": true,  \"createdAt\": \"2024-01-01 00:00:00\",  \"createdBy\": 123456789,  \"currentUserSubscribed\": false,  \"enabled\": true,  \"error\": {},  \"filterGroups\": [],  \"id\": 123,  \"modifiedAt\": \"2024-01-01 00:00:00\",  \"modifiedBy\": 123456789,  \"name\": \"My Favorite Alert\",  \"owner\": 123456789,  \"resourceId\": \"58b3775b-ab03-4f54-9052-a3c5f7cbf426\",  \"resourceName\": \"Test Dataset\",  \"resourceType\": \"DATASET\",  \"rule\": \"Any row has changes for column(s): 'test'\",  \"subscriptions\": [],  \"triggerFrequency\": \"Rarely\",  \"triggered\": false,  \"type\": \"ANY_ROW\"}"

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

alertId
integer
required

The id of the alert you want to get

Query Parameters

fields
string

Which alert fields to include in the response

Response

200 - application/json

Returns the alert.

The response is of type object.