SIGNL4 REST API Samples
This article lists sample calls of the SIGNL4 REST API for different purposes. You can find a detailes description of the SIGNL4 REST API here.
The following HTTP request sends an event to SIGNL4. SIGNL4 can process the event and then trigger an alert. Except of the endpoint (URL) and X-S4-Api-Key header the format is the same as for the inbound webhook API.
Please replace {team-secret} with your SIGNL4 team or integration secret and {api-key} with your SIGNL4 API key.
POST https://connect.signl4.com/api/v2/events/{team-secret}
X-S4-Api-Key: {api-key}
Content-Type: application/json
{
"Title": "Hi",
"Message": "Test",
"Temperature": "10",
"Temperature2": "30",
"Group-By": "US",
"X-S4-Service": "Temperature",
"X-S4-Location": "52.3984235,13.0544149",
"X-S4-AlertingScenario": "single_ack",
"X-S4-Filtering": false,
"X-S4-ExternalID": "test101",
"X-S4-Status": ""
}
Get Teams
As a result you get the team id(s) that you might need in the next steps.
GET https://connect.signl4.com/api/v2/teams
X-S4-Api-Key: {signl4-api-key}
Get Users
As a result you get the user id(s) that you might need in the next steps.
GET https://connect.signl4.com/api/v2/users
X-S4-Api-Key: {signl4-api-key}
Get Duty Schedules
POST https://connect.signl4.com/api/v2/schedules
X-S4-Api-Key: {signl4-api-key}
Content-Type: application/json
Accept: application/json
{
"teamIds": [
"{team-id}"
],
"userId": "{user.id}",
"minDate": "2025-01-01T00:00:00.000Z",
"limit": 10
}
Who is On Call?
To get information about which users are currently on call for a specific team, you can use a combination of the Get Teams and Get Users API calls.
- Get Teams
As a result you get the team id(s) that you need in the next step.
GET https://connect.signl4.com/api/v2/teams
X-S4-Api-Key: {signl4-api-key}
- Get Users
As a result, you get the users in the specified team along with additional information, including their duty status.
GET https://connect.signl4.com/api/v2/users
X-S4-Api-Key: {signl4-api-key}
You can find each user’s duty status in the dutyInfos -> dutyMode field.
The following values are supported: 0 = None (not currently on duty)
1 = Primary
100 = Manager
