PagerDuty

Add Note to PagerDuty Incident

Adds a note to an existing PagerDuty incident.

Unverified

What the model is told

Add a note to an existing PagerDuty incident, for example to record extra detail from the caller. Confirm the incident ID and wording first. A successful call returns the created note.

Request

POSThttps://api.pagerduty.com/incidents/{{incidentId}}/notes

Headers

  • Content-Typeapplication/json
  • AuthorizationToken token=YOUR_PAGERDUTY_API_KEY
  • Acceptapplication/vnd.pagerduty+json;version=2
  • FromYOUR_PAGERDUTY_USER_EMAIL

Body

{
  "note": {
    "content": "{{note}}"
  }
}

Parameters

  • incidentId stringThe PagerDuty incident ID.
  • note stringThe text of the note.

Engage payload

{
  "source": "VOICE_AI",
  "tool": {
    "id": "4ebf35ce-6353-4952-af18-cbf4f03f2b1d",
    "type": "HTTP_REQUEST",
    "label": "Add Note to PagerDuty Incident",
    "name": "add_note_to_pagerduty_incident",
    "customName": false,
    "description": "Add a note to an existing PagerDuty incident, for example to record extra detail from the caller. Confirm the incident ID and wording first. A successful call returns the created note.",
    "parameters": [
      {
        "name": "incidentId",
        "type": "string",
        "description": "The PagerDuty incident ID."
      },
      {
        "name": "note",
        "type": "string",
        "description": "The text of the note."
      }
    ],
    "config": {
      "endpoint": {
        "method": "POST",
        "url": "https://api.pagerduty.com/incidents/{{incidentId}}/notes"
      },
      "headers": [
        {
          "name": "Content-Type",
          "value": "application/json"
        },
        {
          "name": "Authorization",
          "value": "Token token=YOUR_PAGERDUTY_API_KEY"
        },
        {
          "name": "Accept",
          "value": "application/vnd.pagerduty+json;version=2"
        },
        {
          "name": "From",
          "value": "YOUR_PAGERDUTY_USER_EMAIL"
        }
      ],
      "body": "{\n  \"note\": {\n    \"content\": \"{{note}}\"\n  }\n}",
      "timeout": null
    }
  }
}

IDs are regenerated on every copy.