Incident.io · Capability

Incident.io API — API Keys

Incident.io API — API Keys. 6 operations. Lead operation: List API keys. Self-contained Naftiko capability covering one Incident Io business surface.

Run with Naftiko Incident IoAPI Keys

What You Can Do

GET
Listapikeys — List API keys
/v1/api-keys
POST
Createapikey — Create API key
/v1/api-keys
GET
Getapikey — Show API key
/v1/api-keys/{id}
PUT
Updateapikey — Update API key
/v1/api-keys/{id}
DELETE
Deleteapikey — Delete API key
/v1/api-keys/{id}
POST
Rotateapikey — Rotate API key
/v1/api-keys/{id}/rotate

MCP Tools

list-api-keys

List API keys

read-only idempotent
create-api-key

Create API key

show-api-key

Show API key

read-only idempotent
update-api-key

Update API key

idempotent
delete-api-key

Delete API key

idempotent
rotate-api-key

Rotate API key

Capability Spec

incident-io-api-keys.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Incident.io API — API Keys
  description: 'Incident.io API — API Keys. 6 operations. Lead operation: List API keys. Self-contained Naftiko capability
    covering one Incident Io business surface.'
  tags:
  - Incident Io
  - API Keys
  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-api-keys
    baseUri: https://api.incident.io/v2
    description: Incident.io API — API Keys business capability. Self-contained, no shared references.
    resources:
    - name: api-keys
      path: /api-keys
      operations:
      - name: listapikeys
        method: GET
        description: List API keys
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createapikey
        method: POST
        description: Create API key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-keys-id
      path: /api-keys/{id}
      operations:
      - name: getapikey
        method: GET
        description: Show API key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateapikey
        method: PUT
        description: Update API key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteapikey
        method: DELETE
        description: Delete API key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-keys-id-rotate
      path: /api-keys/{id}/rotate
      operations:
      - name: rotateapikey
        method: POST
        description: Rotate API key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.INCIDENT_IO_API_KEY}}'
  exposes:
  - type: rest
    namespace: incident-io-api-keys-rest
    port: 8080
    description: REST adapter for Incident.io API — API Keys. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api-keys
      name: api-keys
      description: REST surface for api-keys.
      operations:
      - method: GET
        name: listapikeys
        description: List API keys
        call: incident-io-api-keys.listapikeys
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createapikey
        description: Create API key
        call: incident-io-api-keys.createapikey
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api-keys/{id}
      name: api-keys-id
      description: REST surface for api-keys-id.
      operations:
      - method: GET
        name: getapikey
        description: Show API key
        call: incident-io-api-keys.getapikey
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateapikey
        description: Update API key
        call: incident-io-api-keys.updateapikey
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteapikey
        description: Delete API key
        call: incident-io-api-keys.deleteapikey
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api-keys/{id}/rotate
      name: api-keys-id-rotate
      description: REST surface for api-keys-id-rotate.
      operations:
      - method: POST
        name: rotateapikey
        description: Rotate API key
        call: incident-io-api-keys.rotateapikey
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: incident-io-api-keys-mcp
    port: 9090
    transport: http
    description: MCP adapter for Incident.io API — API Keys. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-api-keys
      description: List API keys
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: incident-io-api-keys.listapikeys
      outputParameters:
      - type: object
        mapping: $.
    - name: create-api-key
      description: Create API key
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: incident-io-api-keys.createapikey
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: show-api-key
      description: Show API key
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: incident-io-api-keys.getapikey
      outputParameters:
      - type: object
        mapping: $.
    - name: update-api-key
      description: Update API key
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: incident-io-api-keys.updateapikey
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-api-key
      description: Delete API key
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: incident-io-api-keys.deleteapikey
      outputParameters:
      - type: object
        mapping: $.
    - name: rotate-api-key
      description: Rotate API key
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: incident-io-api-keys.rotateapikey
      outputParameters:
      - type: object
        mapping: $.