naftiko: 1.0.0-alpha2 info: label: Azure DevOps Service Hooks API — Subscriptions description: 'Azure DevOps Service Hooks API — Subscriptions. 5 operations. Lead operation: Azure DevOps List subscriptions. Self-contained Naftiko capability covering one Microsoft Azure Devops business surface.' tags: - Microsoft Azure Devops - Subscriptions created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MICROSOFT_AZURE_DEVOPS_API_KEY: MICROSOFT_AZURE_DEVOPS_API_KEY capability: consumes: - type: http namespace: azure-devops-service-hooks-subscriptions baseUri: https://dev.azure.com/{organization}/_apis description: Azure DevOps Service Hooks API — Subscriptions business capability. Self-contained, no shared references. resources: - name: hooks-subscriptions path: /hooks/subscriptions operations: - name: subscriptionslist method: GET description: Azure DevOps List subscriptions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: publisherId in: query type: string description: Filter subscriptions by publisher ID (e.g., 'tfs') - name: eventType in: query type: string description: Filter subscriptions by event type (e.g., 'workitem.created') - name: consumerId in: query type: string description: Filter subscriptions by consumer ID (e.g., 'webHooks') - name: consumerActionId in: query type: string description: Filter subscriptions by consumer action ID - name: subscriptionscreate method: POST description: Azure DevOps Create a subscription outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: hooks-subscriptions-subscriptionId path: /hooks/subscriptions/{subscriptionId} operations: - name: subscriptionsget method: GET description: Azure DevOps Get a subscription outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: subscriptionId in: path type: string description: GUID of the subscription required: true - name: subscriptionsupdate method: PATCH description: Azure DevOps Update a subscription outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: subscriptionId in: path type: string description: GUID of the subscription to update required: true - name: body in: body type: object description: Request body (JSON). required: true - name: subscriptionsdelete method: DELETE description: Azure DevOps Delete a subscription outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: subscriptionId in: path type: string description: GUID of the subscription to delete required: true authentication: type: bearer token: '{{env.MICROSOFT_AZURE_DEVOPS_API_KEY}}' exposes: - type: rest namespace: azure-devops-service-hooks-subscriptions-rest port: 8080 description: REST adapter for Azure DevOps Service Hooks API — Subscriptions. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/hooks/subscriptions name: hooks-subscriptions description: REST surface for hooks-subscriptions. operations: - method: GET name: subscriptionslist description: Azure DevOps List subscriptions call: azure-devops-service-hooks-subscriptions.subscriptionslist with: publisherId: rest.publisherId eventType: rest.eventType consumerId: rest.consumerId consumerActionId: rest.consumerActionId outputParameters: - type: object mapping: $. - method: POST name: subscriptionscreate description: Azure DevOps Create a subscription call: azure-devops-service-hooks-subscriptions.subscriptionscreate with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/hooks/subscriptions/{subscriptionid} name: hooks-subscriptions-subscriptionid description: REST surface for hooks-subscriptions-subscriptionId. operations: - method: GET name: subscriptionsget description: Azure DevOps Get a subscription call: azure-devops-service-hooks-subscriptions.subscriptionsget with: subscriptionId: rest.subscriptionId outputParameters: - type: object mapping: $. - method: PATCH name: subscriptionsupdate description: Azure DevOps Update a subscription call: azure-devops-service-hooks-subscriptions.subscriptionsupdate with: subscriptionId: rest.subscriptionId body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: subscriptionsdelete description: Azure DevOps Delete a subscription call: azure-devops-service-hooks-subscriptions.subscriptionsdelete with: subscriptionId: rest.subscriptionId outputParameters: - type: object mapping: $. - type: mcp namespace: azure-devops-service-hooks-subscriptions-mcp port: 9090 transport: http description: MCP adapter for Azure DevOps Service Hooks API — Subscriptions. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: azure-devops-list-subscriptions description: Azure DevOps List subscriptions hints: readOnly: true destructive: false idempotent: true call: azure-devops-service-hooks-subscriptions.subscriptionslist with: publisherId: tools.publisherId eventType: tools.eventType consumerId: tools.consumerId consumerActionId: tools.consumerActionId outputParameters: - type: object mapping: $. - name: azure-devops-create-subscription description: Azure DevOps Create a subscription hints: readOnly: false destructive: false idempotent: false call: azure-devops-service-hooks-subscriptions.subscriptionscreate with: body: tools.body outputParameters: - type: object mapping: $. - name: azure-devops-get-subscription description: Azure DevOps Get a subscription hints: readOnly: true destructive: false idempotent: true call: azure-devops-service-hooks-subscriptions.subscriptionsget with: subscriptionId: tools.subscriptionId outputParameters: - type: object mapping: $. - name: azure-devops-update-subscription description: Azure DevOps Update a subscription hints: readOnly: false destructive: false idempotent: true call: azure-devops-service-hooks-subscriptions.subscriptionsupdate with: subscriptionId: tools.subscriptionId body: tools.body outputParameters: - type: object mapping: $. - name: azure-devops-delete-subscription description: Azure DevOps Delete a subscription hints: readOnly: false destructive: true idempotent: true call: azure-devops-service-hooks-subscriptions.subscriptionsdelete with: subscriptionId: tools.subscriptionId outputParameters: - type: object mapping: $.