Skip to content
  • There are no suggestions because the search field is empty.

Alerts API (v1)

Legacy V1 endpoints for alerts.

Legacy V1 endpoints for alerts. V1 is still available, but new integrations should use the V2 API. V1 passes the API key in the query string (GET) or the JSON body (POST).

Base URLhttps://api.alertops.com/api
AuthenticationAPIKey query parameter (GET) or body field (POST)
Endpoints10

Endpoints

MethodPathDescription
GET/api/alertList Alerts
GET/api/alert/GetAlertIDByInboundMessageIDGet AlertID By Inbound MessageID
GET/api/alert/GetAlertIDByUniqueInboundIDGet AlertID By Unique InboundID
POST/api/alert/CreateCreate Alert
POST/api/alert/CloseClose Alert
POST/api/alert/UpdateUpdate alert field value
POST/api/alert/AssignAssign user to Alert
POST/api/alert/NoteAdd note to Alert
POST/api/alert/AddRecipientsAdd Recipients to Alert
POST/api/alert/ReplyReply to Alert

List Alerts

GET /api/alert

Query parameters

NameTypeRequiredDescription
APIKeystringRequiredYour V1 API key.
LimitintegerOptionalPage size. Default is 10. Max value for this parameter is 100.
OffsetintegerOptionalStarting point for the result set Default: 0
AlertStatusintegerOptionalOpen = 1, Closed = 2, Assigned = 5, All = 0 Default: 0
DateFromstringOptionalDate Format 'yyyy-mm-dd'
DateTostringOptionalDate Format 'yyyy-mm-dd'
OrderstringOptional"desc" or "asc" Default: desc
AlertIDintegerOptional 
ClosedFromDatestringOptionalDate Format 'yyyy-mm-dd'
ClosedToDatestringOptionalDate Format 'yyyy-mm-dd'
GroupListstringOptionalList of Group IDs. Eg. 123,456
IntegrationListstringOptionalList of Integration Rule IDs. Eg. 123,456
EscalationListstringOptionalList of Escalation Rule IDs. Eg. 123,456

Responses

200 OK

{
  "alerts": [
    {
      "AlertID": 49818,
      "CreatedDate": "2020-03-06T18:28:34",
      "Sender": "Test User",
      "Topic": "[Alerting] Server Disk space full in UAT - Server reporting problem: disk_space_free_total",
      "MessageText": "Alert status: alerting\nAlert for: disk_space_free_total\nTo view the panel showing the alert please go to: http://localhost:3333/dashboard/db/client-uat",
      "AlertStatus": "Open",
      "Owner": "No Owner",
      "OwnerID": 0,
      "Priority": "No Priority",
      "Integration": "AAA_Grafana",
      "Source": "Grafana",
      "SourceName": "Grafana",
      "SourceID": "14",
      "WithinSLA": "No",
      "TargetSLADate": "2020-03-09T18:28:34",
      "AlertURL": "https://[youraccount].alertops.com/IssueTracking/TicketThreadDetailView.aspx?ThreadId=49818",
      "IncidentCount": 3,
      "Deliveries": [],
      "Recipients": [],
      "BusinessService": "",
      "ComponentType": "",
      "ComponentName": "",
      "DataCenter": "",
      "Environment": "",
      "ProblemType": ""
    }
  ],
  "limit": 10,
  "offset": 0,
  "total": 10
}

Example request

curl -X GET "https://api.alertops.com/api/alert?APIKey=<YOUR_API_KEY>" \
  -H "Content-Type: application/json"

Get AlertID By Inbound MessageID

GET /api/alert/GetAlertIDByInboundMessageID

Query parameters

NameTypeRequiredDescription
APIKeystringRequiredYour V1 API key.
messageIDintegerRequiredMessageID return from inbound integration

Responses

200 OK

{
  "AlertID": 49818,
  "Status": "Mapped Appended"
}

Example request

curl -X GET "https://api.alertops.com/api/alert/GetAlertIDByInboundMessageID?APIKey=<YOUR_API_KEY>&messageID={messageID}" \
  -H "Content-Type: application/json"

Get AlertID By Unique InboundID

GET /api/alert/GetAlertIDByUniqueInboundID

Query parameters

NameTypeRequiredDescription
APIKeystringRequiredYour V1 API key.
uniqueInboundIDstringRequiredInboundID return from inbound integration

Responses

200 OK

{
  "AlertID": 49818,
  "Status": "Mapped Appended"
}

Example request

curl -X GET "https://api.alertops.com/api/alert/GetAlertIDByUniqueInboundID?APIKey=<YOUR_API_KEY>&uniqueInboundID={uniqueInboundID}" \
  -H "Content-Type: application/json"

Create Alert

POST /api/alert/Create

Request body

JSON object (required).

FieldTypeRequiredDescription
APIKeystringRequiredYour V1 API key.
EscalationRuleIDintegerRequiredEscalation Rule ID
TopicIDintegerRequiredMessage Topic ID
Recipientsarray of objectsOptionalRecipient list
Recipients[].RecipientTypeIDintegerRequiredGroup = 1, User = 2
Recipients[].RecipientstringRequiredUserName/GroupID
SubjectstringRequiredAlert Subject
MessageTextstringRequiredAlert Message Text
ShortTextstringOptionalAlert ShortText

Example body

{
  "APIKey": "<YOUR_API_KEY>",
  "EscalationRuleID": 0,
  "TopicID": 0,
  "Recipients": [
    {
      "RecipientTypeID": 0,
      "Recipient": "string"
    }
  ],
  "Subject": "string",
  "MessageText": "string",
  "ShortText": "string"
}

Responses

200 OK

{
  "AlertID": 49820
}

Example request

curl -X POST "https://api.alertops.com/api/alert/Create" \
  -H "Content-Type: application/json" \
  -d '{
  "APIKey": "<YOUR_API_KEY>",
  "EscalationRuleID": 0,
  "TopicID": 0,
  "Recipients": [
    {
      "RecipientTypeID": 0,
      "Recipient": "string"
    }
  ],
  "Subject": "string",
  "MessageText": "string",
  "ShortText": "string"
}'

Close Alert

POST /api/alert/Close

Request body

JSON object (required).

FieldTypeRequiredDescription
APIKeystringRequiredYour V1 API key.
AlertIDintegerRequired 
UsernamestringOptional(Optional) User login name
ResolutionstringOptional(Optional)

Example body

{
  "APIKey": "<YOUR_API_KEY>",
  "AlertID": 0,
  "Username": "string",
  "Resolution": "string"
}

Responses

200 OK

49820

Example request

curl -X POST "https://api.alertops.com/api/alert/Close" \
  -H "Content-Type: application/json" \
  -d '{"APIKey":"<YOUR_API_KEY>","AlertID":0,"Username":"string","Resolution":"string"}'

Update alert field value

POST /api/alert/Update

Request body

JSON object.

FieldTypeRequiredDescription
APIKeystringRequiredYour V1 API key.
AlertIDintegerRequired 
MessageThread.SourceIdentifierstringOptional 
MessageThread.SourcestringOptional 
MessageThread.SourceNamestringOptional 
MessageThread.SourceURLstringOptional 
MessageThread.MessageThreadStatusTypeIDstringOptional 
MessageThread.ResolutionstringOptional 
MessageThread.IssuePriorityTypeIDstringOptional 
Attribute.Impact TypestringOptional 
Attribute.SLA LevelstringOptional 

Example body

{
  "APIKey": "<YOUR_API_KEY>",
  "AlertID": 0,
  "MessageThread.SourceIdentifier": "string",
  "MessageThread.Source": "string",
  "MessageThread.SourceName": "string",
  "MessageThread.SourceURL": "string",
  "MessageThread.MessageThreadStatusTypeID": "string",
  "MessageThread.Resolution": "string",
  "MessageThread.IssuePriorityTypeID": "string",
  "Attribute.Impact Type": "string",
  "Attribute.SLA Level": "string"
}

Responses

200 OK

49820

Example request

curl -X POST "https://api.alertops.com/api/alert/Update" \
  -H "Content-Type: application/json" \
  -d '{
  "APIKey": "<YOUR_API_KEY>",
  "AlertID": 0,
  "MessageThread.SourceIdentifier": "string",
  "MessageThread.Source": "string",
  "MessageThread.SourceName": "string",
  "MessageThread.SourceURL": "string",
  "MessageThread.MessageThreadStatusTypeID": "string",
  "MessageThread.Resolution": "string",
  "MessageThread.IssuePriorityTypeID": "string",
  "Attribute.Impact Type": "string",
  "Attribute.SLA Level": "string"
}'

Assign user to Alert

POST /api/alert/Assign

Request body

JSON object (required).

FieldTypeRequiredDescription
APIKeystringRequiredYour V1 API key.
AlertIDintegerRequired 
UsernamestringRequired 

Example body

{
  "APIKey": "<YOUR_API_KEY>",
  "AlertID": 0,
  "Username": "string"
}

Responses

200 OK

49820

Example request

curl -X POST "https://api.alertops.com/api/alert/Assign" \
  -H "Content-Type: application/json" \
  -d '{"APIKey":"<YOUR_API_KEY>","AlertID":0,"Username":"string"}'

Add note to Alert

POST /api/alert/Note

Request body

JSON object (required).

FieldTypeRequiredDescription
APIKeystringRequiredYour V1 API key.
AlertIDintegerRequired 
UsernamestringOptional(Optional) User login name. If not provided, system admin will be used.
NotestringRequired 

Example body

{
  "APIKey": "<YOUR_API_KEY>",
  "AlertID": 0,
  "Username": "string",
  "Note": "string"
}

Responses

200 OK

1

Example request

curl -X POST "https://api.alertops.com/api/alert/Note" \
  -H "Content-Type: application/json" \
  -d '{"APIKey":"<YOUR_API_KEY>","AlertID":0,"Username":"string","Note":"string"}'

Add Recipients to Alert

POST /api/alert/AddRecipients

Request body

JSON object (required).

FieldTypeRequiredDescription
APIKeystringRequiredYour V1 API key.
AlertIDintegerRequiredAlert IDss
Recipientsarray of objectsRequiredRecipient list
Recipients[].RecipientTypeIDintegerRequiredGroup = 1, User = 2
Recipients[].RecipientstringRequiredUserName/GroupID

Example body

{
  "APIKey": "<YOUR_API_KEY>",
  "AlertID": 0,
  "Recipients": [
    {
      "RecipientTypeID": 0,
      "Recipient": "string"
    }
  ]
}

Responses

200 OK

Example request

curl -X POST "https://api.alertops.com/api/alert/AddRecipients" \
  -H "Content-Type: application/json" \
  -d '{"APIKey":"<YOUR_API_KEY>","AlertID":0,"Recipients":[{"RecipientTypeID":0,"Recipient":"string"}]}'

Reply to Alert

POST /api/alert/Reply

Request body

JSON object (required).

FieldTypeRequiredDescription
APIKeystringRequiredYour V1 API key.
AlertIDintegerRequired 
MessageTextstringRequired 

Example body

{
  "APIKey": "<YOUR_API_KEY>",
  "AlertID": 0,
  "MessageText": "string"
}

Responses

200 OK

211588

Example request

curl -X POST "https://api.alertops.com/api/alert/Reply" \
  -H "Content-Type: application/json" \
  -d '{"APIKey":"<YOUR_API_KEY>","AlertID":0,"MessageText":"string"}'