naftiko: 1.0.0-alpha2 info: label: Flagsmith Admin API — Identities description: 'Flagsmith Admin API — Identities. 3 operations. Lead operation: List identities for an environment. Self-contained Naftiko capability covering one Flagsmith business surface.' tags: - Flagsmith - Identities created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: FLAGSMITH_API_KEY: FLAGSMITH_API_KEY capability: consumes: - type: http namespace: admin-identities baseUri: https://api.flagsmith.com/api/v1 description: Flagsmith Admin API — Identities business capability. Self-contained, no shared references. resources: - name: environments-environment_api_key-identities path: /environments/{environment_api_key}/identities/ operations: - name: listidentities method: GET description: List identities for an environment outputRawFormat: json outputParameters: - name: result type: object value: $. - name: environments-environment_api_key-identities-identity_id path: /environments/{environment_api_key}/identities/{identity_id}/ operations: - name: getidentity method: GET description: Get an identity outputRawFormat: json outputParameters: - name: result type: object value: $. - name: deleteidentity method: DELETE description: Delete an identity outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: apikey key: Authorization value: '{{env.FLAGSMITH_API_KEY}}' placement: header exposes: - type: rest namespace: admin-identities-rest port: 8080 description: REST adapter for Flagsmith Admin API — Identities. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/environments/{environment-api-key}/identities name: environments-environment-api-key-identities description: REST surface for environments-environment_api_key-identities. operations: - method: GET name: listidentities description: List identities for an environment call: admin-identities.listidentities outputParameters: - type: object mapping: $. - path: /v1/environments/{environment-api-key}/identities/{identity-id} name: environments-environment-api-key-identities-identity-id description: REST surface for environments-environment_api_key-identities-identity_id. operations: - method: GET name: getidentity description: Get an identity call: admin-identities.getidentity outputParameters: - type: object mapping: $. - method: DELETE name: deleteidentity description: Delete an identity call: admin-identities.deleteidentity outputParameters: - type: object mapping: $. - type: mcp namespace: admin-identities-mcp port: 9090 transport: http description: MCP adapter for Flagsmith Admin API — Identities. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-identities-environment description: List identities for an environment hints: readOnly: true destructive: false idempotent: true call: admin-identities.listidentities outputParameters: - type: object mapping: $. - name: get-identity description: Get an identity hints: readOnly: true destructive: false idempotent: true call: admin-identities.getidentity outputParameters: - type: object mapping: $. - name: delete-identity description: Delete an identity hints: readOnly: false destructive: true idempotent: true call: admin-identities.deleteidentity outputParameters: - type: object mapping: $.