naftiko: 1.0.0-alpha2 info: label: Didomi Platform API — Consents Events description: Didomi Platform API — Consents Events. 6 operations. Self-contained Naftiko capability over the Didomi Platform REST API. tags: - Didomi - Consent Management - Privacy created: '2026-05-25' modified: '2026-05-25' binds: - namespace: env keys: DIDOMI_BEARER_TOKEN: DIDOMI_BEARER_TOKEN capability: consumes: - type: http namespace: consents-events baseUri: https://api.didomi.io/v1 description: Didomi Platform API — Consents Events business capability against the Didomi Platform REST API (https://api.didomi.io/v1). resources: - name: consents-events path: /consents/events operations: - name: get-consents-events method: GET description: Retrieve events outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: query in: query type: object required: false description: Optional query filters / pagination. - name: post-consents-events method: POST description: Create a new event outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object required: true description: Request body (JSON). - name: delete-consents-events method: DELETE description: Delete events outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: [] - name: consents-events-id path: /consents/events/{id} operations: - name: get-consents-events-id method: GET description: Retrieve an event outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true - name: patch-consents-events-id method: PATCH description: Patch an event outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true - name: body in: body type: object required: true description: Request body (JSON). - name: delete-consents-events-id method: DELETE description: Delete an event outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true authentication: type: bearer value: '{{env.DIDOMI_BEARER_TOKEN}}' placement: header note: Obtain by POSTing api-key + secret to /v1/sessions and reusing access_token for up to one hour. exposes: - type: rest namespace: consents-events-rest port: 8080 description: REST adapter for Didomi Platform API — Consents Events. One resource per consumed operation. resources: - path: /v1/consents/events name: consents-events description: REST surface for consents-events. operations: - method: GET name: get-consents-events description: Retrieve events call: consents-events.get-consents-events - method: POST name: post-consents-events description: Create a new event call: consents-events.post-consents-events - method: DELETE name: delete-consents-events description: Delete events call: consents-events.delete-consents-events - path: /v1/consents/events/{id} name: consents-events-id description: REST surface for consents-events-id. operations: - method: GET name: get-consents-events-id description: Retrieve an event call: consents-events.get-consents-events-id - method: PATCH name: patch-consents-events-id description: Patch an event call: consents-events.patch-consents-events-id - method: DELETE name: delete-consents-events-id description: Delete an event call: consents-events.delete-consents-events-id - type: mcp namespace: consents-events-mcp port: 9090 transport: http description: MCP adapter for Didomi Platform API — Consents Events. One tool per consumed operation. tools: - name: didomi-get-consents-events description: Retrieve events hints: readOnly: true destructive: false idempotent: true call: consents-events.get-consents-events - name: didomi-post-consents-events description: Create a new event hints: readOnly: false destructive: false idempotent: false call: consents-events.post-consents-events - name: didomi-delete-consents-events description: Delete events hints: readOnly: false destructive: true idempotent: true call: consents-events.delete-consents-events - name: didomi-get-consents-events-id description: Retrieve an event hints: readOnly: true destructive: false idempotent: true call: consents-events.get-consents-events-id - name: didomi-patch-consents-events-id description: Patch an event hints: readOnly: false destructive: false idempotent: false call: consents-events.patch-consents-events-id - name: didomi-delete-consents-events-id description: Delete an event hints: readOnly: false destructive: true idempotent: true call: consents-events.delete-consents-events-id