naftiko: 1.0.0-alpha2 info: label: Gladly REST API — Webhooks description: Gladly REST API — Webhooks. 5 operations. Self-contained Naftiko capability covering the Webhooks business surface of the Gladly Customer Service Platform. tags: - Gladly - Webhooks - Customer Service created: '2026-05-24' modified: '2026-05-24' binds: - namespace: env keys: GLADLY_ORGANIZATION: GLADLY_ORGANIZATION GLADLY_AGENT_EMAIL: GLADLY_AGENT_EMAIL GLADLY_API_TOKEN: GLADLY_API_TOKEN capability: consumes: - type: http namespace: gladly-webhooks baseUri: https://{{env.GLADLY_ORGANIZATION}}.gladly.com description: Gladly REST API — Webhooks business capability. resources: - name: api-v1-webhooks path: /api/v1/webhooks operations: - name: createWebhook method: POST description: Create Webhook outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object required: true description: Request body (JSON). - name: getWebhooks method: GET description: List Webhooks outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: [] - name: api-v1-webhooks-webhookId path: /api/v1/webhooks/{webhookId} operations: - name: updateWebhook method: PATCH description: Update Webhook outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object required: true description: Request body (JSON). - name: deleteWebhook method: DELETE description: Delete Webhook outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: [] - name: getWebhook method: GET description: Get Webhook outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: [] authentication: type: basic username: '{{env.GLADLY_AGENT_EMAIL}}' password: '{{env.GLADLY_API_TOKEN}}' exposes: - type: rest namespace: gladly-webhooks-rest port: 8080 description: REST adapter for Gladly Webhooks. resources: - path: /v1/api/v1/webhooks name: api-v1-webhooks description: REST surface for api-v1-webhooks. operations: - method: POST name: createWebhook description: Create Webhook call: gladly-webhooks.createWebhook with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v1/webhooks name: api-v1-webhooks description: REST surface for api-v1-webhooks. operations: - method: GET name: getWebhooks description: List Webhooks call: gladly-webhooks.getWebhooks with: {} outputParameters: - type: object mapping: $. - path: /v1/api/v1/webhooks/{webhookId} name: api-v1-webhooks-webhookId description: REST surface for api-v1-webhooks-webhookId. operations: - method: PATCH name: updateWebhook description: Update Webhook call: gladly-webhooks.updateWebhook with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v1/webhooks/{webhookId} name: api-v1-webhooks-webhookId description: REST surface for api-v1-webhooks-webhookId. operations: - method: DELETE name: deleteWebhook description: Delete Webhook call: gladly-webhooks.deleteWebhook with: {} outputParameters: - type: object mapping: $. - path: /v1/api/v1/webhooks/{webhookId} name: api-v1-webhooks-webhookId description: REST surface for api-v1-webhooks-webhookId. operations: - method: GET name: getWebhook description: Get Webhook call: gladly-webhooks.getWebhook with: {} outputParameters: - type: object mapping: $. - type: mcp namespace: gladly-webhooks-mcp port: 9090 transport: http description: MCP adapter for Gladly Webhooks. tools: - name: gladly-createWebhook description: Create Webhook hints: readOnly: false destructive: false idempotent: false call: gladly-webhooks.createWebhook with: body: tools.body outputParameters: - type: object mapping: $. - name: gladly-getWebhooks description: List Webhooks hints: readOnly: true destructive: false idempotent: true call: gladly-webhooks.getWebhooks with: {} outputParameters: - type: object mapping: $. - name: gladly-updateWebhook description: Update Webhook hints: readOnly: false destructive: false idempotent: false call: gladly-webhooks.updateWebhook with: body: tools.body outputParameters: - type: object mapping: $. - name: gladly-deleteWebhook description: Delete Webhook hints: readOnly: false destructive: true idempotent: true call: gladly-webhooks.deleteWebhook with: {} outputParameters: - type: object mapping: $. - name: gladly-getWebhook description: Get Webhook hints: readOnly: true destructive: false idempotent: true call: gladly-webhooks.getWebhook with: {} outputParameters: - type: object mapping: $.