naftiko: 1.0.0-alpha2 info: label: Commerce Layer Provisioning API — API Credentials description: 'Manage API credentials for Commerce Layer organizations (client_credentials, password, etc).' tags: - Commerce Layer created: '2026-05-25' modified: '2026-05-25' binds: - namespace: env keys: COMMERCE_LAYER_PROVISIONING_ACCESS_TOKEN: COMMERCE_LAYER_PROVISIONING_ACCESS_TOKEN capability: consumes: - type: http namespace: provisioning-api-credentials baseUri: https://provisioning.commercelayer.io description: Commerce Layer Provisioning API — API Credentials business surface. resources: - name: api_credentials path: /api_credentials operations: - name: listapicredentials method: GET description: List All API Credentials outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createapicredential method: POST description: Create An API Credential outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object required: true - name: api_credentials-apiCredentialId path: /api_credentials/{apiCredentialId} operations: - name: retrieveapicredential method: GET description: Retrieve An API Credential outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updateapicredential method: PATCH description: Update An API Credential outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object required: true - name: deleteapicredential method: DELETE description: Delete An API Credential outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: oauth2 flow: client_credentials tokenUrl: https://auth.commercelayer.io/oauth/token value: 'Bearer {{env.COMMERCE_LAYER_PROVISIONING_ACCESS_TOKEN}}' placement: header key: Authorization exposes: - type: rest namespace: provisioning-api-credentials-rest port: 8080 description: REST adapter for Commerce Layer Provisioning API — API Credentials. resources: - path: /api/api_credentials name: api-credentials operations: - method: GET name: listapicredentials call: provisioning-api-credentials.listapicredentials outputParameters: - type: object mapping: $. - method: POST name: createapicredential call: provisioning-api-credentials.createapicredential with: body: rest.body outputParameters: - type: object mapping: $. - path: /api/api_credentials/{apiCredentialId} name: api-credentials-apiCredentialId operations: - method: GET name: retrieveapicredential call: provisioning-api-credentials.retrieveapicredential outputParameters: - type: object mapping: $. - method: PATCH name: updateapicredential call: provisioning-api-credentials.updateapicredential with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteapicredential call: provisioning-api-credentials.deleteapicredential outputParameters: - type: object mapping: $. - type: mcp namespace: provisioning-api-credentials-mcp port: 9090 transport: http description: MCP adapter for Commerce Layer Provisioning API — API Credentials. tools: - name: commerce-layer-listapicredentials description: List All API Credentials hints: readOnly: true idempotent: true destructive: false call: provisioning-api-credentials.listapicredentials outputParameters: - type: object mapping: $. - name: commerce-layer-createapicredential description: Create An API Credential hints: readOnly: false idempotent: false destructive: false call: provisioning-api-credentials.createapicredential with: body: tools.body outputParameters: - type: object mapping: $. - name: commerce-layer-retrieveapicredential description: Retrieve An API Credential hints: readOnly: true idempotent: true destructive: false call: provisioning-api-credentials.retrieveapicredential outputParameters: - type: object mapping: $. - name: commerce-layer-updateapicredential description: Update An API Credential hints: readOnly: false idempotent: true destructive: false call: provisioning-api-credentials.updateapicredential with: body: tools.body outputParameters: - type: object mapping: $. - name: commerce-layer-deleteapicredential description: Delete An API Credential hints: readOnly: false idempotent: true destructive: true call: provisioning-api-credentials.deleteapicredential outputParameters: - type: object mapping: $.