naftiko: 1.0.0-alpha2 info: label: Unleash Admin API — Events description: 'Unleash Admin API — Events. 4 operations. Lead operation: Get a List of All Users That Have Created Events. Self-contained Naftiko capability covering one Unleash business surface.' tags: - Unleash - Events created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: UNLEASH_API_KEY: UNLEASH_API_KEY capability: consumes: - type: http namespace: admin-events baseUri: https://app.unleash-instance.example.com description: Unleash Admin API — Events business capability. Self-contained, no shared references. resources: - name: api-admin-event-creators path: /api/admin/event-creators operations: - name: geteventcreators method: GET description: Get a List of All Users That Have Created Events outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-admin-events path: /api/admin/events operations: - name: getevents method: GET description: Get the Most Recent Events From the Unleash Instance or All Events Related to a Project. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: project in: query type: string description: The name of the project whose events you want to retrieve - name: api-admin-events-featureName path: /api/admin/events/{featureName} operations: - name: geteventsfortoggle method: GET description: Get All Events Related to a Specific Feature Flag. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: featureName in: path type: string required: true - name: api-admin-search-events path: /api/admin/search/events operations: - name: searchevents method: GET description: Search for Events outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: query in: query type: string description: Find events by a free-text search query. The query will be matched against the event data payload (if any). - name: id in: query type: string description: 'Filter by event ID using supported operators: IS, IS_ANY_OF.' - name: groupId in: query type: string description: 'Filter by group ID using supported operators: IS, IS_ANY_OF.' - name: feature in: query type: string description: 'Filter by feature name using supported operators: IS, IS_ANY_OF' - name: project in: query type: string description: 'Filter by projects ID using supported operators: IS, IS_ANY_OF.' - name: type in: query type: string description: 'Filter by event type using supported operators: IS, IS_ANY_OF.' - name: createdBy in: query type: string description: 'Filter by the ID of the event creator, using supported operators: IS, IS_ANY_OF.' - name: from in: query type: string description: The starting date of the creation date range in IS:yyyy-MM-dd format - name: to in: query type: string description: The ending date of the creation date range in IS:yyyy-MM-dd format - name: offset in: query type: string description: The number of features to skip when returning a page. By default it is set to 0. - name: limit in: query type: string description: The number of feature environments to return in a page. By default it is set to 50. The maximum is 1000. - name: environment in: query type: string description: 'Filter by environment name using supported operators: IS, IS_ANY_OF.' authentication: type: bearer token: '{{env.UNLEASH_API_KEY}}' exposes: - type: rest namespace: admin-events-rest port: 8080 description: REST adapter for Unleash Admin API — Events. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/admin/event-creators name: api-admin-event-creators description: REST surface for api-admin-event-creators. operations: - method: GET name: geteventcreators description: Get a List of All Users That Have Created Events call: admin-events.geteventcreators outputParameters: - type: object mapping: $. - path: /v1/api/admin/events name: api-admin-events description: REST surface for api-admin-events. operations: - method: GET name: getevents description: Get the Most Recent Events From the Unleash Instance or All Events Related to a Project. call: admin-events.getevents with: project: rest.project outputParameters: - type: object mapping: $. - path: /v1/api/admin/events/{featurename} name: api-admin-events-featurename description: REST surface for api-admin-events-featureName. operations: - method: GET name: geteventsfortoggle description: Get All Events Related to a Specific Feature Flag. call: admin-events.geteventsfortoggle with: featureName: rest.featureName outputParameters: - type: object mapping: $. - path: /v1/api/admin/search/events name: api-admin-search-events description: REST surface for api-admin-search-events. operations: - method: GET name: searchevents description: Search for Events call: admin-events.searchevents with: query: rest.query id: rest.id groupId: rest.groupId feature: rest.feature project: rest.project type: rest.type createdBy: rest.createdBy from: rest.from to: rest.to offset: rest.offset limit: rest.limit environment: rest.environment outputParameters: - type: object mapping: $. - type: mcp namespace: admin-events-mcp port: 9090 transport: http description: MCP adapter for Unleash Admin API — Events. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-list-all-users-that description: Get a List of All Users That Have Created Events hints: readOnly: true destructive: false idempotent: true call: admin-events.geteventcreators outputParameters: - type: object mapping: $. - name: get-most-recent-events-unleash description: Get the Most Recent Events From the Unleash Instance or All Events Related to a Project. hints: readOnly: true destructive: false idempotent: true call: admin-events.getevents with: project: tools.project outputParameters: - type: object mapping: $. - name: get-all-events-related-specific description: Get All Events Related to a Specific Feature Flag. hints: readOnly: true destructive: false idempotent: true call: admin-events.geteventsfortoggle with: featureName: tools.featureName outputParameters: - type: object mapping: $. - name: search-events description: Search for Events hints: readOnly: true destructive: false idempotent: true call: admin-events.searchevents with: query: tools.query id: tools.id groupId: tools.groupId feature: tools.feature project: tools.project type: tools.type createdBy: tools.createdBy from: tools.from to: tools.to offset: tools.offset limit: tools.limit environment: tools.environment outputParameters: - type: object mapping: $.