naftiko: 1.0.0-alpha2 info: label: Relay App Automation API — Webhooks description: 'Relay App Automation API — Webhooks. 2 operations. Lead operation: Trigger Webhook Workflow. Self-contained Naftiko capability covering one Relay App business surface.' tags: - Relay App - Webhooks created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: RELAY_APP_API_KEY: RELAY_APP_API_KEY capability: consumes: - type: http namespace: relay-app-webhooks baseUri: https://api.relay.app/v1 description: Relay App Automation API — Webhooks business capability. Self-contained, no shared references. resources: - name: webhooks-webhookId path: /webhooks/{webhookId} operations: - name: triggerwebhookworkflow method: POST description: Trigger Webhook Workflow outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: webhookId in: path type: string description: The unique identifier for the webhook-triggered workflow. required: true - name: relay-deduplication-key in: header type: string description: A unique key to prevent duplicate workflow runs. If a run with this key has already been triggered, the new request will be deduplicated. - name: body in: body type: object description: Request body (JSON). required: false - name: triggerwebhookworkflowget method: GET description: Trigger Webhook Workflow via GET outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: webhookId in: path type: string description: The unique identifier for the webhook-triggered workflow. required: true authentication: type: apikey key: X-Relay-API-Key value: '{{env.RELAY_APP_API_KEY}}' placement: header exposes: - type: rest namespace: relay-app-webhooks-rest port: 8080 description: REST adapter for Relay App Automation API — Webhooks. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/webhooks/{webhookid} name: webhooks-webhookid description: REST surface for webhooks-webhookId. operations: - method: POST name: triggerwebhookworkflow description: Trigger Webhook Workflow call: relay-app-webhooks.triggerwebhookworkflow with: webhookId: rest.webhookId relay-deduplication-key: rest.relay-deduplication-key body: rest.body outputParameters: - type: object mapping: $. - method: GET name: triggerwebhookworkflowget description: Trigger Webhook Workflow via GET call: relay-app-webhooks.triggerwebhookworkflowget with: webhookId: rest.webhookId outputParameters: - type: object mapping: $. - type: mcp namespace: relay-app-webhooks-mcp port: 9090 transport: http description: MCP adapter for Relay App Automation API — Webhooks. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: trigger-webhook-workflow description: Trigger Webhook Workflow hints: readOnly: false destructive: false idempotent: false call: relay-app-webhooks.triggerwebhookworkflow with: webhookId: tools.webhookId relay-deduplication-key: tools.relay-deduplication-key body: tools.body outputParameters: - type: object mapping: $. - name: trigger-webhook-workflow-get description: Trigger Webhook Workflow via GET hints: readOnly: true destructive: false idempotent: true call: relay-app-webhooks.triggerwebhookworkflowget with: webhookId: tools.webhookId outputParameters: - type: object mapping: $.