Annotation endpoints
API token endpoints
Dataset endpoints
Monitor endpoints
Notifier endpoints
Organization endpoints
Role-based access control endpoints
Starred queries endpoints
User endpoints
Update notifier
Update notifier
curl --request PUT \
--url https://api.axiom.co/v2/notifiers/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"disabledUntil": "2024-03-20T15:00:00Z",
"name": "Production Slack Alerts",
"properties": {
"customWebhook": {
"body": "{\"alert\": \"{{.AlertName}}\", \"severity\": \"{{.Severity}}\", \"message\": \"{{.Message}}\"}",
"headers": {
"Content-Type": "application/json",
"X-API-Version": "1.0"
},
"secretHeaders": {
"Authorization": "Bearer {{token}}"
},
"url": "https://api.custom-service.com/alerts"
},
"discord": {
"discordChannel": "123456789012345678",
"discordToken": "Bot 123456789012345678"
},
"discordWebhook": {
"discordWebhookUrl": "https://discord.com/api/webhooks/123456789012345678/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
},
"email": {
"emails": [
"oncall@example.com",
"alerts@example.com"
]
},
"microsoftTeams": {
"microsoftTeamsUrl": "https://outlook.office.com/webhook/123456789/IncomingWebhook/..."
},
"opsgenie": {
"apiKey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"isEU": true
},
"pagerduty": {
"routingKey": "1234567890abcdef1234567890abcdef",
"token": "u+1234567890abcdef1234567890abcdef"
},
"slack": {
"slackUrl": "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX"
},
"webhook": {
"url": "https://api.example.com/webhooks/alerts"
}
}
}'
{
"createdAt": "2024-01-15T10:30:00Z",
"createdBy": "alice@example.com",
"disabledUntil": "2024-03-20T15:00:00Z",
"name": "Production Slack Alerts",
"properties": {
"customWebhook": {
"body": "{\"alert\": \"{{.AlertName}}\", \"severity\": \"{{.Severity}}\", \"message\": \"{{.Message}}\"}",
"headers": {
"Content-Type": "application/json",
"X-API-Version": "1.0"
},
"secretHeaders": {
"Authorization": "Bearer {{token}}"
},
"url": "https://api.custom-service.com/alerts"
},
"discord": {
"discordChannel": "123456789012345678",
"discordToken": "Bot 123456789012345678"
},
"discordWebhook": {
"discordWebhookUrl": "https://discord.com/api/webhooks/123456789012345678/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
},
"email": {
"emails": [
"oncall@example.com",
"alerts@example.com"
]
},
"microsoftTeams": {
"microsoftTeamsUrl": "https://outlook.office.com/webhook/123456789/IncomingWebhook/..."
},
"opsgenie": {
"apiKey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"isEU": true
},
"pagerduty": {
"routingKey": "1234567890abcdef1234567890abcdef",
"token": "u+1234567890abcdef1234567890abcdef"
},
"slack": {
"slackUrl": "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX"
},
"webhook": {
"url": "https://api.example.com/webhooks/alerts"
}
},
"id": "notify_slack_prod"
}
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
Body
Configuration for a notification channel. Notifiers can be configured for various services like:
- Slack
- PagerDuty
- OpsGenie
- Discord
- Microsoft Teams
- Custom Webhooks
Human-readable name for the notifier
"Production Slack Alerts"
Configuration options for different notification channels. Only one channel should be configured per notifier.
Configuration for custom webhook notifications with flexible headers and body template. Supports variable substitution in the body template using {{.Variable}} syntax.
Template for the webhook body, supports variable substitution
"{\"alert\": \"{{.AlertName}}\", \"severity\": \"{{.Severity}}\", \"message\": \"{{.Message}}\"}"
Custom webhook endpoint URL
"https://api.custom-service.com/alerts"
HTTP headers to include in the request
{
"Content-Type": "application/json",
"X-API-Version": "1.0"
}
Configuration for Discord notifications using webhooks
Discord webhook URL
"https://discord.com/api/webhooks/123456789012345678/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
Configuration for email notifications
List of email addresses to receive notifications
["oncall@example.com", "alerts@example.com"]
Configuration for Microsoft Teams notifications
Microsoft Teams webhook URL
"https://outlook.office.com/webhook/123456789/IncomingWebhook/..."
Configuration for Slack notifications using incoming webhooks
Slack incoming webhook URL
"https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX"
ISO timestamp until which the notifier is disabled (null if enabled)
"2024-03-20T15:00:00Z"
Response
Notifier configuration with its unique identifier
Human-readable name for the notifier
"Production Slack Alerts"
Configuration options for different notification channels. Only one channel should be configured per notifier.
Configuration for custom webhook notifications with flexible headers and body template. Supports variable substitution in the body template using {{.Variable}} syntax.
Template for the webhook body, supports variable substitution
"{\"alert\": \"{{.AlertName}}\", \"severity\": \"{{.Severity}}\", \"message\": \"{{.Message}}\"}"
Custom webhook endpoint URL
"https://api.custom-service.com/alerts"
HTTP headers to include in the request
{
"Content-Type": "application/json",
"X-API-Version": "1.0"
}
Configuration for Discord notifications using webhooks
Discord webhook URL
"https://discord.com/api/webhooks/123456789012345678/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
Configuration for email notifications
List of email addresses to receive notifications
["oncall@example.com", "alerts@example.com"]
Configuration for Microsoft Teams notifications
Microsoft Teams webhook URL
"https://outlook.office.com/webhook/123456789/IncomingWebhook/..."
Configuration for Slack notifications using incoming webhooks
Slack incoming webhook URL
"https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX"
Timestamp when the notifier was created
"2024-01-15T10:30:00Z"
Email or ID of the user who created the notifier
"alice@example.com"
ISO timestamp until which the notifier is disabled (null if enabled)
"2024-03-20T15:00:00Z"
Unique identifier for the notifier
"notify_slack_prod"
Was this page helpful?
curl --request PUT \
--url https://api.axiom.co/v2/notifiers/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"disabledUntil": "2024-03-20T15:00:00Z",
"name": "Production Slack Alerts",
"properties": {
"customWebhook": {
"body": "{\"alert\": \"{{.AlertName}}\", \"severity\": \"{{.Severity}}\", \"message\": \"{{.Message}}\"}",
"headers": {
"Content-Type": "application/json",
"X-API-Version": "1.0"
},
"secretHeaders": {
"Authorization": "Bearer {{token}}"
},
"url": "https://api.custom-service.com/alerts"
},
"discord": {
"discordChannel": "123456789012345678",
"discordToken": "Bot 123456789012345678"
},
"discordWebhook": {
"discordWebhookUrl": "https://discord.com/api/webhooks/123456789012345678/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
},
"email": {
"emails": [
"oncall@example.com",
"alerts@example.com"
]
},
"microsoftTeams": {
"microsoftTeamsUrl": "https://outlook.office.com/webhook/123456789/IncomingWebhook/..."
},
"opsgenie": {
"apiKey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"isEU": true
},
"pagerduty": {
"routingKey": "1234567890abcdef1234567890abcdef",
"token": "u+1234567890abcdef1234567890abcdef"
},
"slack": {
"slackUrl": "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX"
},
"webhook": {
"url": "https://api.example.com/webhooks/alerts"
}
}
}'
{
"createdAt": "2024-01-15T10:30:00Z",
"createdBy": "alice@example.com",
"disabledUntil": "2024-03-20T15:00:00Z",
"name": "Production Slack Alerts",
"properties": {
"customWebhook": {
"body": "{\"alert\": \"{{.AlertName}}\", \"severity\": \"{{.Severity}}\", \"message\": \"{{.Message}}\"}",
"headers": {
"Content-Type": "application/json",
"X-API-Version": "1.0"
},
"secretHeaders": {
"Authorization": "Bearer {{token}}"
},
"url": "https://api.custom-service.com/alerts"
},
"discord": {
"discordChannel": "123456789012345678",
"discordToken": "Bot 123456789012345678"
},
"discordWebhook": {
"discordWebhookUrl": "https://discord.com/api/webhooks/123456789012345678/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
},
"email": {
"emails": [
"oncall@example.com",
"alerts@example.com"
]
},
"microsoftTeams": {
"microsoftTeamsUrl": "https://outlook.office.com/webhook/123456789/IncomingWebhook/..."
},
"opsgenie": {
"apiKey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"isEU": true
},
"pagerduty": {
"routingKey": "1234567890abcdef1234567890abcdef",
"token": "u+1234567890abcdef1234567890abcdef"
},
"slack": {
"slackUrl": "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX"
},
"webhook": {
"url": "https://api.example.com/webhooks/alerts"
}
},
"id": "notify_slack_prod"
}