naftiko: 1.0.0-alpha2 info: label: Admin API — invocation description: 'Admin API — invocation. 5 operations. Lead operation: Delete An Invocation. Self-contained Naftiko capability covering one Restate business surface.' tags: - Restate - invocation created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: RESTATE_API_KEY: RESTATE_API_KEY capability: consumes: - type: http namespace: admin-invocation baseUri: '' description: Admin API — invocation business capability. Self-contained, no shared references. resources: - name: invocations-invocation_id path: /invocations/{invocation_id} operations: - name: deleteinvocation method: DELETE description: Delete An Invocation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: invocation_id in: path type: string description: Invocation identifier. required: true - name: mode in: query type: string description: 'If cancel, it will gracefully terminate the invocation. If kill, it will terminate the invocation with a hard stop. If purge, it will only cleanup the response ' - name: invocations-invocation_id-cancel path: /invocations/{invocation_id}/cancel operations: - name: cancelinvocation method: PATCH description: Cancel An Invocation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: invocation_id in: path type: string description: Invocation identifier. required: true - name: invocations-invocation_id-kill path: /invocations/{invocation_id}/kill operations: - name: killinvocation method: PATCH description: Kill An Invocation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: invocation_id in: path type: string description: Invocation identifier. required: true - name: invocations-invocation_id-purge path: /invocations/{invocation_id}/purge operations: - name: purgeinvocation method: PATCH description: Purge An Invocation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: invocation_id in: path type: string description: Invocation identifier. required: true - name: invocations-invocation_id-purge-journal path: /invocations/{invocation_id}/purge-journal operations: - name: purgejournal method: PATCH description: Purge An Invocation Journal outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: invocation_id in: path type: string description: Invocation identifier. required: true exposes: - type: rest namespace: admin-invocation-rest port: 8080 description: REST adapter for Admin API — invocation. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/invocations/{invocation-id} name: invocations-invocation-id description: REST surface for invocations-invocation_id. operations: - method: DELETE name: deleteinvocation description: Delete An Invocation call: admin-invocation.deleteinvocation with: invocation_id: rest.invocation_id mode: rest.mode outputParameters: - type: object mapping: $. - path: /v1/invocations/{invocation-id}/cancel name: invocations-invocation-id-cancel description: REST surface for invocations-invocation_id-cancel. operations: - method: PATCH name: cancelinvocation description: Cancel An Invocation call: admin-invocation.cancelinvocation with: invocation_id: rest.invocation_id outputParameters: - type: object mapping: $. - path: /v1/invocations/{invocation-id}/kill name: invocations-invocation-id-kill description: REST surface for invocations-invocation_id-kill. operations: - method: PATCH name: killinvocation description: Kill An Invocation call: admin-invocation.killinvocation with: invocation_id: rest.invocation_id outputParameters: - type: object mapping: $. - path: /v1/invocations/{invocation-id}/purge name: invocations-invocation-id-purge description: REST surface for invocations-invocation_id-purge. operations: - method: PATCH name: purgeinvocation description: Purge An Invocation call: admin-invocation.purgeinvocation with: invocation_id: rest.invocation_id outputParameters: - type: object mapping: $. - path: /v1/invocations/{invocation-id}/purge-journal name: invocations-invocation-id-purge-journal description: REST surface for invocations-invocation_id-purge-journal. operations: - method: PATCH name: purgejournal description: Purge An Invocation Journal call: admin-invocation.purgejournal with: invocation_id: rest.invocation_id outputParameters: - type: object mapping: $. - type: mcp namespace: admin-invocation-mcp port: 9090 transport: http description: MCP adapter for Admin API — invocation. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: delete-invocation description: Delete An Invocation hints: readOnly: false destructive: true idempotent: true call: admin-invocation.deleteinvocation with: invocation_id: tools.invocation_id mode: tools.mode outputParameters: - type: object mapping: $. - name: cancel-invocation description: Cancel An Invocation hints: readOnly: false destructive: false idempotent: true call: admin-invocation.cancelinvocation with: invocation_id: tools.invocation_id outputParameters: - type: object mapping: $. - name: kill-invocation description: Kill An Invocation hints: readOnly: false destructive: false idempotent: true call: admin-invocation.killinvocation with: invocation_id: tools.invocation_id outputParameters: - type: object mapping: $. - name: purge-invocation description: Purge An Invocation hints: readOnly: false destructive: false idempotent: true call: admin-invocation.purgeinvocation with: invocation_id: tools.invocation_id outputParameters: - type: object mapping: $. - name: purge-invocation-journal description: Purge An Invocation Journal hints: readOnly: false destructive: false idempotent: true call: admin-invocation.purgejournal with: invocation_id: tools.invocation_id outputParameters: - type: object mapping: $.