naftiko: 1.0.0-alpha2 info: label: Logto API references — Domains description: 'Logto API references — Domains. 5 operations. Lead operation: Get domains. Self-contained Naftiko capability covering one Logto business surface.' tags: - Logto - Domains created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: LOGTO_API_KEY: LOGTO_API_KEY capability: consumes: - type: http namespace: logto-domains baseUri: https://[tenant_id].logto.app description: Logto API references — Domains business capability. Self-contained, no shared references. resources: - name: api-domains path: /api/domains operations: - name: listdomains method: GET description: Get domains outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createdomain method: POST description: Create domain outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: api-domains-cleanup path: /api/domains/cleanup operations: - name: cleanupdomains method: POST description: Cleanup stale domains outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: api-domains-id path: /api/domains/{id} operations: - name: getdomain method: GET description: Get domain outputRawFormat: json outputParameters: - name: result type: object value: $. - name: deletedomain method: DELETE description: Delete domain outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.LOGTO_API_KEY}}' exposes: - type: rest namespace: logto-domains-rest port: 8080 description: REST adapter for Logto API references — Domains. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/domains name: api-domains description: REST surface for api-domains. operations: - method: GET name: listdomains description: Get domains call: logto-domains.listdomains outputParameters: - type: object mapping: $. - method: POST name: createdomain description: Create domain call: logto-domains.createdomain with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/domains/cleanup name: api-domains-cleanup description: REST surface for api-domains-cleanup. operations: - method: POST name: cleanupdomains description: Cleanup stale domains call: logto-domains.cleanupdomains with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/domains/{id} name: api-domains-id description: REST surface for api-domains-id. operations: - method: GET name: getdomain description: Get domain call: logto-domains.getdomain outputParameters: - type: object mapping: $. - method: DELETE name: deletedomain description: Delete domain call: logto-domains.deletedomain outputParameters: - type: object mapping: $. - type: mcp namespace: logto-domains-mcp port: 9090 transport: http description: MCP adapter for Logto API references — Domains. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-domains description: Get domains hints: readOnly: true destructive: false idempotent: true call: logto-domains.listdomains outputParameters: - type: object mapping: $. - name: create-domain description: Create domain hints: readOnly: false destructive: false idempotent: false call: logto-domains.createdomain with: body: tools.body outputParameters: - type: object mapping: $. - name: cleanup-stale-domains description: Cleanup stale domains hints: readOnly: false destructive: false idempotent: false call: logto-domains.cleanupdomains with: body: tools.body outputParameters: - type: object mapping: $. - name: get-domain description: Get domain hints: readOnly: true destructive: false idempotent: true call: logto-domains.getdomain outputParameters: - type: object mapping: $. - name: delete-domain description: Delete domain hints: readOnly: false destructive: true idempotent: true call: logto-domains.deletedomain outputParameters: - type: object mapping: $.