{
  "schemaVersion": 1,
  "snapshotDate": "2026-10-23",
  "slug": "reference-dev-pagerduty-create-note",
  "title": "PagerDuty Create Incident Note",
  "section": "Library asset reference",
  "description": "Create Incident Note. Returns a bounded result; provider permission and resource visibility apply.",
  "kind": "node",
  "url": "/wiki/reference-dev-pagerduty-create-note/",
  "markdown": "/wiki/reference-dev-pagerduty-create-note/index.md",
  "json": "/wiki/reference-dev-pagerduty-create-note/index.json",
  "headings": [
    {
      "id": "operation-arguments",
      "title": "Operation arguments",
      "depth": 2
    },
    {
      "id": "catalog-identity",
      "title": "Catalog identity",
      "depth": 2
    },
    {
      "id": "inputs",
      "title": "Inputs",
      "depth": 2
    },
    {
      "id": "outputs",
      "title": "Outputs",
      "depth": 2
    },
    {
      "id": "configuration-schema",
      "title": "Configuration schema",
      "depth": 2
    },
    {
      "id": "provider-operation-contract",
      "title": "Provider operation contract",
      "depth": 2
    },
    {
      "id": "source-and-installed-versions",
      "title": "Source and installed versions",
      "depth": 2
    }
  ],
  "sources": [
    "../OpenNodeFlow-Library/work/catalog-all.mjs",
    "../OpenNodeFlow-Library/work/azure-pack-consolidation-20261022/catalog-policy.mjs",
    "../OpenNodeFlow-Library/work/developer-packs-20261022/catalog.mjs",
    "shared/seed.ts",
    "shared/storage-library.ts",
    "shared/variable-library.ts",
    "shared/control-flow.ts",
    "shared/remote-routes.ts",
    "server/runtime-library.ts",
    "shared/error-library.ts",
    "shared/storage-model.ts",
    "shared/builtin-documentation.ts"
  ],
  "family": "pagerduty",
  "pack": "pack_pagerduty",
  "contract": {
    "key": "dev.pagerduty.create-note",
    "slug": "dev-pagerduty-create-note",
    "name": "PagerDuty Create Incident Note",
    "kind": "node",
    "family": "pagerduty",
    "packId": "pack_pagerduty",
    "category": "Developer integrations",
    "description": "Create Incident Note. Returns a bounded result; provider permission and resource visibility apply.",
    "inputs": [
      {
        "id": "exec",
        "name": "Execute",
        "type": "control",
        "typeName": "Control",
        "required": false
      },
      {
        "id": "incidentId",
        "name": "IncidentId",
        "type": "string",
        "typeName": "Text",
        "required": false
      },
      {
        "id": "content",
        "name": "Content",
        "type": "string",
        "typeName": "Text",
        "required": false
      },
      {
        "id": "from",
        "name": "From",
        "type": "string",
        "typeName": "Text",
        "required": false
      }
    ],
    "outputs": [
      {
        "id": "next",
        "name": "Next",
        "type": "control",
        "typeName": "Control",
        "required": false
      },
      {
        "id": "status",
        "name": "Status",
        "type": "number",
        "typeName": "Number",
        "required": true
      },
      {
        "id": "request_id",
        "name": "Request Id",
        "type": "string",
        "typeName": "Text",
        "required": false
      },
      {
        "id": "operation_url",
        "name": "Operation Url",
        "type": "string",
        "typeName": "Text",
        "required": false
      },
      {
        "id": "item",
        "name": "Item",
        "type": "@dev.pagerduty.type.note",
        "typeName": "PagerDuty Note",
        "typeKey": "dev.pagerduty.type.note",
        "typeVersion": 1,
        "required": true
      },
      {
        "id": "resource_id",
        "name": "Resource Id",
        "type": "string",
        "typeName": "Text",
        "required": false
      },
      {
        "id": "error",
        "name": "On error",
        "type": "control",
        "typeName": "Control",
        "required": false
      }
    ],
    "configSchema": {
      "type": "object",
      "properties": {
        "baseUrl": {
          "type": "string",
          "maxLength": 2000
        },
        "allowHttp": {
          "type": "boolean",
          "default": false
        },
        "tokenSecret": {
          "type": "string",
          "maxLength": 120
        },
        "username": {
          "type": "string",
          "maxLength": 160
        },
        "usernameSecret": {
          "type": "string",
          "maxLength": 120
        },
        "passwordSecret": {
          "type": "string",
          "maxLength": 120
        },
        "requestTimeoutMs": {
          "type": "integer",
          "minimum": 100,
          "maximum": 120000,
          "default": 15000
        },
        "maxBytes": {
          "type": "integer",
          "minimum": 1024,
          "maximum": 3000000,
          "default": 1048576
        },
        "maxPages": {
          "type": "integer",
          "minimum": 1,
          "maximum": 20,
          "default": 1
        },
        "maxItems": {
          "type": "integer",
          "minimum": 1,
          "maximum": 5000,
          "default": 1000
        },
        "confirmWrites": {
          "type": "boolean",
          "default": false
        }
      },
      "additionalProperties": true
    },
    "documentation": "Create Incident Note. Returns a bounded result; provider permission and resource visibility apply.\n\nPOST /incidents/{incidentId}/notes. External write action; set confirmWrites=true and $retries=0 deliberately.\n\nInputs: incidentId (optional), content (optional), from (optional). Missing inputs may come from the selected connection profile config or explicit node defaults. Outputs: status, request_id, operation_url, item, resource_id. Optional outputs are absent when the provider omits them. HTTP202 is acceptance, not completed work; operation_url exposes a same-origin asynchronous status URL when supplied.\n\nSetup: configure baseUrl (https://api.pagerduty.com), header credentials through encrypted secret names or Connections. Default secret name: PAGERDUTY_API_TOKEN. Connection credentials accessToken/apiKey or username/password are resolved at execution. Never put credentials in literal inputs, baseUrl or logs. Required access: REST API token with incident/service/user read permissions; incident write and From user email for incident changes/notes. This is REST management, not the separate Events API routing-key transport.\n\nBounds: requestTimeoutMs=15000 (100..120000), maxBytes=1048576 (1024..3000000), maxItems=1000 (1..5000), maxPages=1 (1..20). One bounded request; use the provider-specific explicit paging inputs where offered. HTTPS is required; private HTTP needs allowHttp=true. TLS validation remains enabled. Redirects, cross-origin/escaped continuation URLs and repeated continuations fail. No implicit retries. Error text contains provider/status only, never raw response bodies or credentials. Reconcile an uncertain external action before another attempt.\n\nSynthetic example inputs:\n\n```json\n{\n  \"incidentId\": \"PABC123\",\n  \"content\": \"Synthetic handoff\",\n  \"from\": \"user@example.com\"\n}\n```\n\nThis example is documentation, not a run. \n\nSource: https://docs.pagerduty.com/developer/api/reference/rest/incidents/create-incident-note",
    "runtime": "javascript",
    "tags": [
      "action",
      "developer-packs",
      "pagerduty"
    ],
    "source": "developer-catalog",
    "operation": {
      "key": "create-note",
      "method": "POST",
      "path": "/incidents/{incidentId}/notes",
      "effect": "write",
      "description": "Create Incident Note. Returns a bounded result; provider permission and resource visibility apply.",
      "scopes": "REST API token with incident/service/user read permissions; incident write and From user email for incident changes/notes. This is REST management, not the separate Events API routing-key transport.",
      "arguments": {
        "incidentId": {
          "type": "string",
          "required": true
        },
        "content": {
          "type": "string",
          "required": true
        },
        "from": {
          "type": "string",
          "required": true
        }
      },
      "response": {
        "kind": "item",
        "type": "note",
        "path": [
          "note"
        ],
        "select": {
          "resource_id": [
            "note",
            "id"
          ]
        },
        "selectTypes": {
          "resource_id": "string"
        }
      },
      "sampleInputs": {
        "incidentId": "PABC123",
        "content": "Synthetic handoff",
        "from": "user@example.com"
      },
      "sampleResponse": {
        "note": {
          "id": "PNOTE12",
          "content": "Synthetic handoff",
          "created_at": "2026-10-22T00:00:00Z",
          "user": {
            "id": "PUSER12",
            "type": "user_reference"
          }
        }
      },
      "sources": [
        "https://docs.pagerduty.com/developer/api/reference/rest/incidents/create-incident-note"
      ]
    }
  }
}
