naftiko: 1.0.0-alpha2 info: label: Smartproxy API — Sub-Users description: 'Smartproxy API — Sub-Users. 4 operations. Lead operation: Get Sub-Users. Self-contained Naftiko capability covering one Smartproxy business surface.' tags: - Smartproxy - Sub-Users created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SMARTPROXY_API_KEY: SMARTPROXY_API_KEY capability: consumes: - type: http namespace: smartproxy-sub-users baseUri: https://api.decodo.com/v1 description: Smartproxy API — Sub-Users business capability. Self-contained, no shared references. resources: - name: users-userId-sub-users path: /users/{userId}/sub-users operations: - name: getsubusers method: GET description: Get Sub-Users outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: userId in: path type: string description: Primary account user ID required: true - name: createsubuser method: POST description: Create Sub-User outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: userId in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true - name: updatesubuser method: PUT description: Update Sub-User outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: userId in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true - name: users-userId-sub-users-subUserId path: /users/{userId}/sub-users/{subUserId} operations: - name: deletesubuser method: DELETE description: Delete Sub-User outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: userId in: path type: string required: true - name: subUserId in: path type: string required: true authentication: type: apikey key: Authorization value: '{{env.SMARTPROXY_API_KEY}}' placement: header exposes: - type: rest namespace: smartproxy-sub-users-rest port: 8080 description: REST adapter for Smartproxy API — Sub-Users. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/users/{userid}/sub-users name: users-userid-sub-users description: REST surface for users-userId-sub-users. operations: - method: GET name: getsubusers description: Get Sub-Users call: smartproxy-sub-users.getsubusers with: userId: rest.userId outputParameters: - type: object mapping: $. - method: POST name: createsubuser description: Create Sub-User call: smartproxy-sub-users.createsubuser with: userId: rest.userId body: rest.body outputParameters: - type: object mapping: $. - method: PUT name: updatesubuser description: Update Sub-User call: smartproxy-sub-users.updatesubuser with: userId: rest.userId body: rest.body outputParameters: - type: object mapping: $. - path: /v1/users/{userid}/sub-users/{subuserid} name: users-userid-sub-users-subuserid description: REST surface for users-userId-sub-users-subUserId. operations: - method: DELETE name: deletesubuser description: Delete Sub-User call: smartproxy-sub-users.deletesubuser with: userId: rest.userId subUserId: rest.subUserId outputParameters: - type: object mapping: $. - type: mcp namespace: smartproxy-sub-users-mcp port: 9090 transport: http description: MCP adapter for Smartproxy API — Sub-Users. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-sub-users description: Get Sub-Users hints: readOnly: true destructive: false idempotent: true call: smartproxy-sub-users.getsubusers with: userId: tools.userId outputParameters: - type: object mapping: $. - name: create-sub-user description: Create Sub-User hints: readOnly: false destructive: false idempotent: false call: smartproxy-sub-users.createsubuser with: userId: tools.userId body: tools.body outputParameters: - type: object mapping: $. - name: update-sub-user description: Update Sub-User hints: readOnly: false destructive: false idempotent: true call: smartproxy-sub-users.updatesubuser with: userId: tools.userId body: tools.body outputParameters: - type: object mapping: $. - name: delete-sub-user description: Delete Sub-User hints: readOnly: false destructive: true idempotent: true call: smartproxy-sub-users.deletesubuser with: userId: tools.userId subUserId: tools.subUserId outputParameters: - type: object mapping: $.