Creates a new alert for the team.


HTTP

POST https://www.squidalerts.com/api/textalert/{company-slug}/{team-slug}


URI Parameters

NameInRequiredTypeDescription
company-slugpathTruestringThe URL friendly name of the company receiving the alert. For example, "Squid Alerts" would be squid-alerts.
team-slugpathTruestringThe URL friendly name of the team receiving the alert. For example, "Production Support Team" would be production-support-team.


Request Body

RequiredTypeDescription
TruestringThe plain text contents of the alert. For example, if you're using New Relic, the request body would look something like this:

New Relic Alert
Incident open: CPU > 50% for 5 minutes
Policy: http://alerts.newrelic.com/accounts/1234/policies/5678
Chart URL: http://gorgon.nr-assets.net/image/12345678-abcd-efgh-ijkl-1234567890 


For more details, see: http://alerts.newrelic.com/accounts/1234/incidents/3456


Response

StatusTypeDescription
200OKThe alert was successfully created


Response Contents

NameTypeDescription
idGuidIdentifier of the new alert
teamIdGuidIdentifier of the team the alert was created under
statusstringThe status of the new alert (should be New)
createdDate
DateTimeThe date the alert was created in UTC format


Response JSON

{
    "id": "6c7bbe3c-eee3-4e63-b714-a7d2ee72dad9",
    "teamId": "d1bc1189-8341-48ec-bd84-f0e33d85c81d",
    "status": "New",
    "createdDate": "2020-03-31T20:18:50.5021772Z"
}