Skip to main content
POST
/
v1
/
alert_notes
Create
curl --request POST \
  --url https://api.incident.io/v1/alert_notes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "alert_group_id": "01HB9Z8WANK6P870EA6S7TK1DS",
  "alert_id": "01FCNDV6P870EA6S7TK1DSYDG0",
  "content": "Customer reports **checkout 500s** starting ~14:32 UTC. Investigating `payments-api`.\n\n- Error rate: ~12% on `/checkout`\n- Region: `eu-west-1`\n- See [dashboard](https://grafana.example.com/d/abc)\n"
}
'
import requests

url = "https://api.incident.io/v1/alert_notes"

payload = {
"alert_group_id": "01HB9Z8WANK6P870EA6S7TK1DS",
"alert_id": "01FCNDV6P870EA6S7TK1DSYDG0",
"content": "Customer reports **checkout 500s** starting ~14:32 UTC. Investigating `payments-api`.

- Error rate: ~12% on `/checkout`
- Region: `eu-west-1`
- See [dashboard](https://grafana.example.com/d/abc)
"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
alert_group_id: '01HB9Z8WANK6P870EA6S7TK1DS',
alert_id: '01FCNDV6P870EA6S7TK1DSYDG0',
content: 'Customer reports **checkout 500s** starting ~14:32 UTC. Investigating `payments-api`.\n\n- Error rate: ~12% on `/checkout`\n- Region: `eu-west-1`\n- See [dashboard](https://grafana.example.com/d/abc)\n'
})
};

fetch('https://api.incident.io/v1/alert_notes', 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.incident.io/v1/alert_notes",
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([
'alert_group_id' => '01HB9Z8WANK6P870EA6S7TK1DS',
'alert_id' => '01FCNDV6P870EA6S7TK1DSYDG0',
'content' => 'Customer reports **checkout 500s** starting ~14:32 UTC. Investigating `payments-api`.

- Error rate: ~12% on `/checkout`
- Region: `eu-west-1`
- See [dashboard](https://grafana.example.com/d/abc)
'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

$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.incident.io/v1/alert_notes"

payload := strings.NewReader("{\n \"alert_group_id\": \"01HB9Z8WANK6P870EA6S7TK1DS\",\n \"alert_id\": \"01FCNDV6P870EA6S7TK1DSYDG0\",\n \"content\": \"Customer reports **checkout 500s** starting ~14:32 UTC. Investigating `payments-api`.\\n\\n- Error rate: ~12% on `/checkout`\\n- Region: `eu-west-1`\\n- See [dashboard](https://grafana.example.com/d/abc)\\n\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
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.incident.io/v1/alert_notes")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"alert_group_id\": \"01HB9Z8WANK6P870EA6S7TK1DS\",\n \"alert_id\": \"01FCNDV6P870EA6S7TK1DSYDG0\",\n \"content\": \"Customer reports **checkout 500s** starting ~14:32 UTC. Investigating `payments-api`.\\n\\n- Error rate: ~12% on `/checkout`\\n- Region: `eu-west-1`\\n- See [dashboard](https://grafana.example.com/d/abc)\\n\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.incident.io/v1/alert_notes")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"alert_group_id\": \"01HB9Z8WANK6P870EA6S7TK1DS\",\n \"alert_id\": \"01FCNDV6P870EA6S7TK1DSYDG0\",\n \"content\": \"Customer reports **checkout 500s** starting ~14:32 UTC. Investigating `payments-api`.\\n\\n- Error rate: ~12% on `/checkout`\\n- Region: `eu-west-1`\\n- See [dashboard](https://grafana.example.com/d/abc)\\n\"\n}"

response = http.request(request)
puts response.read_body
{
  "alert_note": {
    "alert_group_id": "01HB9Z8WANK6P870EA6S7TK1DS",
    "alert_id": "01FCNDV6P870EA6S7TK1DSYDG0",
    "content": "Customer reports **checkout 500s** starting ~14:32 UTC. Investigating `payments-api`.\n\n- Error rate: ~12% on `/checkout`\n- Region: `eu-west-1`\n- See [dashboard](https://grafana.example.com/d/abc)\n",
    "created_at": "2026-05-28T15:30:00Z",
    "creator": {
      "api_key": {
        "id": "01FCNDV6P870EA6S7TK1DSYDG0",
        "name": "My test API key"
      },
      "user": {
        "email": "lisa@incident.io",
        "id": "01FCNDV6P870EA6S7TK1DSYDG0",
        "name": "Lisa Karlin Curtis",
        "role": "viewer",
        "slack_user_id": "U02AYNF2XJM"
      }
    },
    "id": "01J1X9J85C7Y12G8P8W8K55Q5Y",
    "images": [
      {
        "id": "01G0J1EXE7AXZ2C93K61WBPYEH",
        "url": "https://storage.googleapis.com/incident-io/images/..."
      }
    ],
    "last_edited_at": "2026-05-28T15:35:00Z",
    "updated_at": "2026-05-28T15:35:00Z"
  }
}
🔑 Requires the alerts.edit scope.

Authorizations

Authorization
string
header
required

API key from your incident.io dashboard (Settings → API keys)

Body

application/json
content
string
required

Markdown body of the note

Example:

"Customer reports **checkout 500s** starting ~14:32 UTC. Investigatingpayments-api.\n\n- Error rate: ~12% on/checkout\n- Region:eu-west-1\n- See [dashboard](https://grafana.example.com/d/abc)\n"

alert_group_id
string

ID of the alert group to add the note to. Provide exactly one of alert_id or alert_group_id.

Example:

"01HB9Z8WANK6P870EA6S7TK1DS"

alert_id
string

ID of the alert to add the note to. Provide exactly one of alert_id or alert_group_id.

Example:

"01FCNDV6P870EA6S7TK1DSYDG0"

Response

201 - application/json

Created response.

alert_note
object
required