naftiko: 1.0.0-alpha2 info: label: Cobalt API — Webhooks description: 'Cobalt API — Webhooks. 3 operations. Lead operation: Cobalt Create Webhook. Self-contained Naftiko capability covering one Cobalt business surface.' tags: - Cobalt - Webhooks created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: COBALT_API_KEY: COBALT_API_KEY capability: consumes: - type: http namespace: cobalt-webhooks baseUri: https://api.gocobalt.io/api/v2 description: Cobalt API — Webhooks business capability. Self-contained, no shared references. resources: - name: public-webhook path: /public/webhook operations: - name: createwebhook method: POST description: Cobalt Create Webhook outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: linked_account_id in: header type: string description: The linked account ID. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: getwebhook method: GET description: Cobalt Get Webhook outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: linked_account_id in: header type: string description: The linked account ID. required: true - name: public-webhook-unsubscribe path: /public/webhook/unsubscribe operations: - name: unsubscribewebhook method: POST description: Cobalt Unsubscribe Webhook Events outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: linked_account_id in: header type: string description: The linked account ID. required: true - name: body in: body type: object description: Request body (JSON). required: false authentication: type: apikey key: x-api-key value: '{{env.COBALT_API_KEY}}' placement: header exposes: - type: rest namespace: cobalt-webhooks-rest port: 8080 description: REST adapter for Cobalt API — Webhooks. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/public/webhook name: public-webhook description: REST surface for public-webhook. operations: - method: POST name: createwebhook description: Cobalt Create Webhook call: cobalt-webhooks.createwebhook with: linked_account_id: rest.linked_account_id body: rest.body outputParameters: - type: object mapping: $. - method: GET name: getwebhook description: Cobalt Get Webhook call: cobalt-webhooks.getwebhook with: linked_account_id: rest.linked_account_id outputParameters: - type: object mapping: $. - path: /v1/public/webhook/unsubscribe name: public-webhook-unsubscribe description: REST surface for public-webhook-unsubscribe. operations: - method: POST name: unsubscribewebhook description: Cobalt Unsubscribe Webhook Events call: cobalt-webhooks.unsubscribewebhook with: linked_account_id: rest.linked_account_id body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: cobalt-webhooks-mcp port: 9090 transport: http description: MCP adapter for Cobalt API — Webhooks. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: cobalt-create-webhook description: Cobalt Create Webhook hints: readOnly: false destructive: false idempotent: false call: cobalt-webhooks.createwebhook with: linked_account_id: tools.linked_account_id body: tools.body outputParameters: - type: object mapping: $. - name: cobalt-get-webhook description: Cobalt Get Webhook hints: readOnly: true destructive: false idempotent: true call: cobalt-webhooks.getwebhook with: linked_account_id: tools.linked_account_id outputParameters: - type: object mapping: $. - name: cobalt-unsubscribe-webhook-events description: Cobalt Unsubscribe Webhook Events hints: readOnly: false destructive: false idempotent: false call: cobalt-webhooks.unsubscribewebhook with: linked_account_id: tools.linked_account_id body: tools.body outputParameters: - type: object mapping: $.