Incident.io · Capability

Incident.io API — Postmortem Documents

Incident.io API — Postmortem Documents. 3 operations. Lead operation: Postmortem Documents. Self-contained Naftiko capability covering one Incident Io business surface.

Run with Naftiko Incident IoPostmortem Documents

What You Can Do

GET
Listpostmortemdocuments — listpostmortemdocuments
/v1/postmortem-documents
GET
Getpostmortemdocument — getpostmortemdocument
/v1/postmortem-documents/{id}
PUT
Updatepostmortemdocument — updatepostmortemdocument
/v1/postmortem-documents/{id}

MCP Tools

listpostmortemdocuments

listpostmortemdocuments

read-only idempotent
getpostmortemdocument

getpostmortemdocument

read-only idempotent
updatepostmortemdocument

updatepostmortemdocument

idempotent

Capability Spec

incident-io-postmortem-documents.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Incident.io API — Postmortem Documents
  description: 'Incident.io API — Postmortem Documents. 3 operations. Lead operation: Postmortem Documents. Self-contained
    Naftiko capability covering one Incident Io business surface.'
  tags:
  - Incident Io
  - Postmortem Documents
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    INCIDENT_IO_API_KEY: INCIDENT_IO_API_KEY
capability:
  consumes:
  - type: http
    namespace: incident-io-postmortem-documents
    baseUri: https://api.incident.io/v2
    description: Incident.io API — Postmortem Documents business capability. Self-contained, no shared references.
    resources:
    - name: postmortem-documents
      path: /postmortem-documents
      operations:
      - name: listpostmortemdocuments
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: postmortem-documents-id
      path: /postmortem-documents/{id}
      operations:
      - name: getpostmortemdocument
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatepostmortemdocument
        method: PUT
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.INCIDENT_IO_API_KEY}}'
  exposes:
  - type: rest
    namespace: incident-io-postmortem-documents-rest
    port: 8080
    description: REST adapter for Incident.io API — Postmortem Documents. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/postmortem-documents
      name: postmortem-documents
      description: REST surface for postmortem-documents.
      operations:
      - method: GET
        name: listpostmortemdocuments
        description: listpostmortemdocuments
        call: incident-io-postmortem-documents.listpostmortemdocuments
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/postmortem-documents/{id}
      name: postmortem-documents-id
      description: REST surface for postmortem-documents-id.
      operations:
      - method: GET
        name: getpostmortemdocument
        description: getpostmortemdocument
        call: incident-io-postmortem-documents.getpostmortemdocument
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatepostmortemdocument
        description: updatepostmortemdocument
        call: incident-io-postmortem-documents.updatepostmortemdocument
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: incident-io-postmortem-documents-mcp
    port: 9090
    transport: http
    description: MCP adapter for Incident.io API — Postmortem Documents. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: listpostmortemdocuments
      description: listpostmortemdocuments
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: incident-io-postmortem-documents.listpostmortemdocuments
      outputParameters:
      - type: object
        mapping: $.
    - name: getpostmortemdocument
      description: getpostmortemdocument
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: incident-io-postmortem-documents.getpostmortemdocument
      outputParameters:
      - type: object
        mapping: $.
    - name: updatepostmortemdocument
      description: updatepostmortemdocument
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: incident-io-postmortem-documents.updatepostmortemdocument
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.