naftiko: 1.0.0-alpha2 info: label: Logto API references — Connectors description: 'Logto API references — Connectors. 7 operations. Lead operation: Create connector. Self-contained Naftiko capability covering one Logto business surface.' tags: - Logto - Connectors created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: LOGTO_API_KEY: LOGTO_API_KEY capability: consumes: - type: http namespace: logto-connectors baseUri: https://[tenant_id].logto.app description: Logto API references — Connectors business capability. Self-contained, no shared references. resources: - name: api-connectors path: /api/connectors operations: - name: createconnector method: POST description: Create connector outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: listconnectors method: GET description: Get connectors outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: target in: query type: string description: Filter connectors by target. - name: api-connectors-connectorId-authorization-uri path: /api/connectors/{connectorId}/authorization-uri operations: - name: createconnectorauthorizationuri method: POST description: Get connector's authorization URI outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: api-connectors-factoryId-test path: /api/connectors/{factoryId}/test operations: - name: createconnectortest method: POST description: Test passwordless connector outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: api-connectors-id path: /api/connectors/{id} operations: - name: getconnector method: GET description: Get connector outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updateconnector method: PATCH description: Update connector outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deleteconnector method: DELETE description: Delete connector outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.LOGTO_API_KEY}}' exposes: - type: rest namespace: logto-connectors-rest port: 8080 description: REST adapter for Logto API references — Connectors. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/connectors name: api-connectors description: REST surface for api-connectors. operations: - method: POST name: createconnector description: Create connector call: logto-connectors.createconnector with: body: rest.body outputParameters: - type: object mapping: $. - method: GET name: listconnectors description: Get connectors call: logto-connectors.listconnectors with: target: rest.target outputParameters: - type: object mapping: $. - path: /v1/api/connectors/{connectorid}/authorization-uri name: api-connectors-connectorid-authorization-uri description: REST surface for api-connectors-connectorId-authorization-uri. operations: - method: POST name: createconnectorauthorizationuri description: Get connector's authorization URI call: logto-connectors.createconnectorauthorizationuri with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/connectors/{factoryid}/test name: api-connectors-factoryid-test description: REST surface for api-connectors-factoryId-test. operations: - method: POST name: createconnectortest description: Test passwordless connector call: logto-connectors.createconnectortest with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/connectors/{id} name: api-connectors-id description: REST surface for api-connectors-id. operations: - method: GET name: getconnector description: Get connector call: logto-connectors.getconnector outputParameters: - type: object mapping: $. - method: PATCH name: updateconnector description: Update connector call: logto-connectors.updateconnector with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteconnector description: Delete connector call: logto-connectors.deleteconnector outputParameters: - type: object mapping: $. - type: mcp namespace: logto-connectors-mcp port: 9090 transport: http description: MCP adapter for Logto API references — Connectors. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-connector description: Create connector hints: readOnly: false destructive: false idempotent: false call: logto-connectors.createconnector with: body: tools.body outputParameters: - type: object mapping: $. - name: get-connectors description: Get connectors hints: readOnly: true destructive: false idempotent: true call: logto-connectors.listconnectors with: target: tools.target outputParameters: - type: object mapping: $. - name: get-connector-s-authorization-uri description: Get connector's authorization URI hints: readOnly: true destructive: false idempotent: false call: logto-connectors.createconnectorauthorizationuri with: body: tools.body outputParameters: - type: object mapping: $. - name: test-passwordless-connector description: Test passwordless connector hints: readOnly: true destructive: false idempotent: false call: logto-connectors.createconnectortest with: body: tools.body outputParameters: - type: object mapping: $. - name: get-connector description: Get connector hints: readOnly: true destructive: false idempotent: true call: logto-connectors.getconnector outputParameters: - type: object mapping: $. - name: update-connector description: Update connector hints: readOnly: false destructive: false idempotent: true call: logto-connectors.updateconnector with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-connector description: Delete connector hints: readOnly: false destructive: true idempotent: true call: logto-connectors.deleteconnector outputParameters: - type: object mapping: $.