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: $.