naftiko: 1.0.0-alpha2 info: label: Unkey API — identities description: 'Unkey API — identities. 5 operations. Lead operation: Create Identity. Self-contained Naftiko capability covering one Unkey business surface.' tags: - Unkey - identities created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: UNKEY_API_KEY: UNKEY_API_KEY capability: consumes: - type: http namespace: unkey-identities baseUri: https://api.unkey.com description: Unkey API — identities business capability. Self-contained, no shared references. resources: - name: v2-identities.createIdentity path: /v2/identities.createIdentity operations: - name: identitiescreateidentity method: POST description: Create Identity outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: v2-identities.deleteIdentity path: /v2/identities.deleteIdentity operations: - name: identitiesdeleteidentity method: POST description: Delete Identity outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: v2-identities.getIdentity path: /v2/identities.getIdentity operations: - name: identitiesgetidentity method: POST description: Get Identity outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: v2-identities.listIdentities path: /v2/identities.listIdentities operations: - name: identitieslistidentities method: POST description: List Identities outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: v2-identities.updateIdentity path: /v2/identities.updateIdentity operations: - name: identitiesupdateidentity method: POST description: Update Identity outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.UNKEY_API_KEY}}' exposes: - type: rest namespace: unkey-identities-rest port: 8080 description: REST adapter for Unkey API — identities. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v2/identities-createidentity name: v2-identities-createidentity description: REST surface for v2-identities.createIdentity. operations: - method: POST name: identitiescreateidentity description: Create Identity call: unkey-identities.identitiescreateidentity with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v2/identities-deleteidentity name: v2-identities-deleteidentity description: REST surface for v2-identities.deleteIdentity. operations: - method: POST name: identitiesdeleteidentity description: Delete Identity call: unkey-identities.identitiesdeleteidentity with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v2/identities-getidentity name: v2-identities-getidentity description: REST surface for v2-identities.getIdentity. operations: - method: POST name: identitiesgetidentity description: Get Identity call: unkey-identities.identitiesgetidentity with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v2/identities-listidentities name: v2-identities-listidentities description: REST surface for v2-identities.listIdentities. operations: - method: POST name: identitieslistidentities description: List Identities call: unkey-identities.identitieslistidentities with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v2/identities-updateidentity name: v2-identities-updateidentity description: REST surface for v2-identities.updateIdentity. operations: - method: POST name: identitiesupdateidentity description: Update Identity call: unkey-identities.identitiesupdateidentity with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: unkey-identities-mcp port: 9090 transport: http description: MCP adapter for Unkey API — identities. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-identity description: Create Identity hints: readOnly: false destructive: false idempotent: false call: unkey-identities.identitiescreateidentity with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-identity description: Delete Identity hints: readOnly: false destructive: false idempotent: false call: unkey-identities.identitiesdeleteidentity with: body: tools.body outputParameters: - type: object mapping: $. - name: get-identity description: Get Identity hints: readOnly: true destructive: false idempotent: false call: unkey-identities.identitiesgetidentity with: body: tools.body outputParameters: - type: object mapping: $. - name: list-identities description: List Identities hints: readOnly: true destructive: false idempotent: false call: unkey-identities.identitieslistidentities with: body: tools.body outputParameters: - type: object mapping: $. - name: update-identity description: Update Identity hints: readOnly: false destructive: false idempotent: false call: unkey-identities.identitiesupdateidentity with: body: tools.body outputParameters: - type: object mapping: $.