curl --request POST \
--url https://api.eu.bronto.io/integrations/providers \
--header 'Content-Type: application/json' \
--header 'X-BRONTO-API-KEY: <api-key>' \
--data '
{
"provider": "aws-devops-agent",
"url": "https://event-ai.us-east-1.api.aws/webhook/generic/abc-123",
"secret": "xxxxx",
"auth_type": "hmac",
"name": "AWS DevOps Agent"
}
'import requests
url = "https://api.eu.bronto.io/integrations/providers"
payload = {
"provider": "aws-devops-agent",
"url": "https://event-ai.us-east-1.api.aws/webhook/generic/abc-123",
"secret": "xxxxx",
"auth_type": "hmac",
"name": "AWS DevOps Agent"
}
headers = {
"X-BRONTO-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-BRONTO-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
provider: 'aws-devops-agent',
url: 'https://event-ai.us-east-1.api.aws/webhook/generic/abc-123',
secret: 'xxxxx',
auth_type: 'hmac',
name: 'AWS DevOps Agent'
})
};
fetch('https://api.eu.bronto.io/integrations/providers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eu.bronto.io/integrations/providers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'provider' => 'aws-devops-agent',
'url' => 'https://event-ai.us-east-1.api.aws/webhook/generic/abc-123',
'secret' => 'xxxxx',
'auth_type' => 'hmac',
'name' => 'AWS DevOps Agent'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-BRONTO-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eu.bronto.io/integrations/providers"
payload := strings.NewReader("{\n \"provider\": \"aws-devops-agent\",\n \"url\": \"https://event-ai.us-east-1.api.aws/webhook/generic/abc-123\",\n \"secret\": \"xxxxx\",\n \"auth_type\": \"hmac\",\n \"name\": \"AWS DevOps Agent\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-BRONTO-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eu.bronto.io/integrations/providers")
.header("X-BRONTO-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"provider\": \"aws-devops-agent\",\n \"url\": \"https://event-ai.us-east-1.api.aws/webhook/generic/abc-123\",\n \"secret\": \"xxxxx\",\n \"auth_type\": \"hmac\",\n \"name\": \"AWS DevOps Agent\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eu.bronto.io/integrations/providers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-BRONTO-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"provider\": \"aws-devops-agent\",\n \"url\": \"https://event-ai.us-east-1.api.aws/webhook/generic/abc-123\",\n \"secret\": \"xxxxx\",\n \"auth_type\": \"hmac\",\n \"name\": \"AWS DevOps Agent\"\n}"
response = http.request(request)
puts response.read_body{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "AWS DevOps Agent",
"provider": "aws-devops-agent",
"url": "https://event-ai.us-east-1.api.aws/webhook/generic/abc-123",
"has_secret": true,
"auth_type": "hmac"
}{
"code": 400,
"type": "Bad Request",
"correlation_id": "95c6a974e3ab01209b6b0dfedb1b16c5",
"details": "Validation failed: 'name' field is required and cannot be empty"
}{
"code": 429,
"type": "Too Many Requests",
"correlation_id": "53909ed43c544531b7a555e295960437",
"details": "Rate limit exceeded. Maximum 100 requests are allowed within a 5-minute window."
}{
"code": 500,
"type": "Internal Server Error",
"correlation_id": "b129b8e0e66c41aa9541a30f67e38ce2",
"details": "Internal Server Error"
}{
"code": 500,
"type": "Internal Server Error",
"correlation_id": "b129b8e0e66c41aa9541a30f67e38ce2",
"details": "Internal Server Error"
}Create a Provider Integration Resource (e.g. AWS DevOps Agent)
curl --request POST \
--url https://api.eu.bronto.io/integrations/providers \
--header 'Content-Type: application/json' \
--header 'X-BRONTO-API-KEY: <api-key>' \
--data '
{
"provider": "aws-devops-agent",
"url": "https://event-ai.us-east-1.api.aws/webhook/generic/abc-123",
"secret": "xxxxx",
"auth_type": "hmac",
"name": "AWS DevOps Agent"
}
'import requests
url = "https://api.eu.bronto.io/integrations/providers"
payload = {
"provider": "aws-devops-agent",
"url": "https://event-ai.us-east-1.api.aws/webhook/generic/abc-123",
"secret": "xxxxx",
"auth_type": "hmac",
"name": "AWS DevOps Agent"
}
headers = {
"X-BRONTO-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-BRONTO-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
provider: 'aws-devops-agent',
url: 'https://event-ai.us-east-1.api.aws/webhook/generic/abc-123',
secret: 'xxxxx',
auth_type: 'hmac',
name: 'AWS DevOps Agent'
})
};
fetch('https://api.eu.bronto.io/integrations/providers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eu.bronto.io/integrations/providers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'provider' => 'aws-devops-agent',
'url' => 'https://event-ai.us-east-1.api.aws/webhook/generic/abc-123',
'secret' => 'xxxxx',
'auth_type' => 'hmac',
'name' => 'AWS DevOps Agent'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-BRONTO-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eu.bronto.io/integrations/providers"
payload := strings.NewReader("{\n \"provider\": \"aws-devops-agent\",\n \"url\": \"https://event-ai.us-east-1.api.aws/webhook/generic/abc-123\",\n \"secret\": \"xxxxx\",\n \"auth_type\": \"hmac\",\n \"name\": \"AWS DevOps Agent\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-BRONTO-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eu.bronto.io/integrations/providers")
.header("X-BRONTO-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"provider\": \"aws-devops-agent\",\n \"url\": \"https://event-ai.us-east-1.api.aws/webhook/generic/abc-123\",\n \"secret\": \"xxxxx\",\n \"auth_type\": \"hmac\",\n \"name\": \"AWS DevOps Agent\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eu.bronto.io/integrations/providers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-BRONTO-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"provider\": \"aws-devops-agent\",\n \"url\": \"https://event-ai.us-east-1.api.aws/webhook/generic/abc-123\",\n \"secret\": \"xxxxx\",\n \"auth_type\": \"hmac\",\n \"name\": \"AWS DevOps Agent\"\n}"
response = http.request(request)
puts response.read_body{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "AWS DevOps Agent",
"provider": "aws-devops-agent",
"url": "https://event-ai.us-east-1.api.aws/webhook/generic/abc-123",
"has_secret": true,
"auth_type": "hmac"
}{
"code": 400,
"type": "Bad Request",
"correlation_id": "95c6a974e3ab01209b6b0dfedb1b16c5",
"details": "Validation failed: 'name' field is required and cannot be empty"
}{
"code": 429,
"type": "Too Many Requests",
"correlation_id": "53909ed43c544531b7a555e295960437",
"details": "Rate limit exceeded. Maximum 100 requests are allowed within a 5-minute window."
}{
"code": 500,
"type": "Internal Server Error",
"correlation_id": "b129b8e0e66c41aa9541a30f67e38ce2",
"details": "Internal Server Error"
}{
"code": 500,
"type": "Internal Server Error",
"correlation_id": "b129b8e0e66c41aa9541a30f67e38ce2",
"details": "Internal Server Error"
}Authorizations
Body
The provider to send alerts to
aws-devops-agent "aws-devops-agent"
The provider webhook URL. For aws-devops-agent, an https URL on an *.api.aws host.
10 - 2048"https://event-ai.us-east-1.api.aws/webhook/generic/abc-123"
The provider's HMAC signing secret. Surrounding whitespace and a leading "Bearer " are removed. Never returned.
1 - 4096"xxxxx"
How requests to the provider are authenticated. Requests are signed with HMAC-SHA256 using the secret, which is never sent.
hmac "hmac"
The integration name. Defaults to the provider's name.
255"AWS DevOps Agent"
Response
Resource created successfully
A unique identifier for the integration resource
"550e8400-e29b-41d4-a716-446655440000"
The integration name
"AWS DevOps Agent"
The provider the integration sends alerts to
aws-devops-agent "aws-devops-agent"
The provider webhook URL
"https://event-ai.us-east-1.api.aws/webhook/generic/abc-123"
Whether a secret is stored. The secret itself is never returned.
true
How requests to the provider are authenticated. Requests are signed with HMAC-SHA256 using the secret, which is never sent.
hmac "hmac"
