naftiko: 1.0.0-alpha2 info: label: Anthropic Admin API — Api Keys description: 'Anthropic Admin API — Api Keys. 3 operations. Lead operation: Anthropic List Api Keys. Self-contained Naftiko capability covering one Anthropic business surface.' tags: - Anthropic - Api Keys created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ANTHROPIC_API_KEY: ANTHROPIC_API_KEY capability: consumes: - type: http namespace: admin-api-keys baseUri: https://api.anthropic.com/v1 description: Anthropic Admin API — Api Keys business capability. Self-contained, no shared references. resources: - name: organizations-api_keys path: /organizations/api_keys operations: - name: listapikeys method: GET description: Anthropic List Api Keys outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: workspace_id in: query type: string description: Filter by workspace ID - name: status in: query type: string description: Filter by API key status - name: created_by_user_id in: query type: string description: Filter by the user who created the API key - name: organizations-api_keys-api_key_id path: /organizations/api_keys/{api_key_id} operations: - name: getapikey method: GET description: Anthropic Get Api Key outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updateapikey method: POST description: Anthropic Update Api Key outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: x-api-key value: '{{env.ANTHROPIC_API_KEY}}' placement: header exposes: - type: rest namespace: admin-api-keys-rest port: 8080 description: REST adapter for Anthropic Admin API — Api Keys. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/organizations/api-keys name: organizations-api-keys description: REST surface for organizations-api_keys. operations: - method: GET name: listapikeys description: Anthropic List Api Keys call: admin-api-keys.listapikeys with: workspace_id: rest.workspace_id status: rest.status created_by_user_id: rest.created_by_user_id outputParameters: - type: object mapping: $. - path: /v1/organizations/api-keys/{api-key-id} name: organizations-api-keys-api-key-id description: REST surface for organizations-api_keys-api_key_id. operations: - method: GET name: getapikey description: Anthropic Get Api Key call: admin-api-keys.getapikey outputParameters: - type: object mapping: $. - method: POST name: updateapikey description: Anthropic Update Api Key call: admin-api-keys.updateapikey with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: admin-api-keys-mcp port: 9090 transport: http description: MCP adapter for Anthropic Admin API — Api Keys. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: anthropic-list-api-keys description: Anthropic List Api Keys hints: readOnly: true destructive: false idempotent: true call: admin-api-keys.listapikeys with: workspace_id: tools.workspace_id status: tools.status created_by_user_id: tools.created_by_user_id outputParameters: - type: object mapping: $. - name: anthropic-get-api-key description: Anthropic Get Api Key hints: readOnly: true destructive: false idempotent: true call: admin-api-keys.getapikey outputParameters: - type: object mapping: $. - name: anthropic-update-api-key description: Anthropic Update Api Key hints: readOnly: false destructive: false idempotent: false call: admin-api-keys.updateapikey with: body: tools.body outputParameters: - type: object mapping: $.