naftiko: 1.0.0-alpha2 info: label: Leaf Agriculture Leaf API — API Reference > Leaf User > Provider Credentials > Valley description: 'Leaf Agriculture Leaf API — API Reference > Leaf User > Provider Credentials > Valley. 4 operations. Lead operation: Leaf Agriculture Get Valley credentials of the LeafUser. Self-contained Naftiko capability covering one Leaf Agriculture business surface.' tags: - Leaf Agriculture - API Reference > Leaf User > Provider Credentials > Valley created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: LEAF_AGRICULTURE_API_KEY: LEAF_AGRICULTURE_API_KEY capability: consumes: - type: http namespace: leaf-agriculture-api-reference-leaf-user-provider-credentials-valley baseUri: '' description: Leaf Agriculture Leaf API — API Reference > Leaf User > Provider Credentials > Valley business capability. Self-contained, no shared references. resources: - name: services-usermanagement-api-users-leaf_user_id-valley-credentials path: /services/usermanagement/api/users/{leaf_user_id}/valley-credentials operations: - name: get method: GET description: Leaf Agriculture Get Valley credentials of the LeafUser outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: Content-Type in: header type: string - name: leaf_user_id in: path type: string required: true - name: post method: POST description: Leaf Agriculture Add Valley credentials to the LeafUser outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: Content-Type in: header type: string - name: leaf_user_id in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: false - name: delete method: DELETE description: Leaf Agriculture Delete Valley credentials of the LeafUser outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: Content-Type in: header type: string - name: leaf_user_id in: path type: string required: true - name: services-usermanagement-api-users-leaf_user_id-valley-credentials-events path: /services/usermanagement/api/users/{leaf_user_id}/valley-credentials/events operations: - name: get method: GET description: Leaf Agriculture Get Valley credentials Events outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: leaf_user_id in: path type: string required: true exposes: - type: rest namespace: leaf-agriculture-api-reference-leaf-user-provider-credentials-valley-rest port: 8080 description: REST adapter for Leaf Agriculture Leaf API — API Reference > Leaf User > Provider Credentials > Valley. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/services/usermanagement/api/users/{leaf-user-id}/valley-credentials name: services-usermanagement-api-users-leaf-user-id-valley-credentials description: REST surface for services-usermanagement-api-users-leaf_user_id-valley-credentials. operations: - method: GET name: get description: Leaf Agriculture Get Valley credentials of the LeafUser call: leaf-agriculture-api-reference-leaf-user-provider-credentials-valley.get with: Authorization: rest.Authorization Content-Type: rest.Content-Type leaf_user_id: rest.leaf_user_id outputParameters: - type: object mapping: $. - method: POST name: post description: Leaf Agriculture Add Valley credentials to the LeafUser call: leaf-agriculture-api-reference-leaf-user-provider-credentials-valley.post with: Authorization: rest.Authorization Content-Type: rest.Content-Type leaf_user_id: rest.leaf_user_id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: delete description: Leaf Agriculture Delete Valley credentials of the LeafUser call: leaf-agriculture-api-reference-leaf-user-provider-credentials-valley.delete with: Authorization: rest.Authorization Content-Type: rest.Content-Type leaf_user_id: rest.leaf_user_id outputParameters: - type: object mapping: $. - path: /v1/services/usermanagement/api/users/{leaf-user-id}/valley-credentials/events name: services-usermanagement-api-users-leaf-user-id-valley-credentials-events description: REST surface for services-usermanagement-api-users-leaf_user_id-valley-credentials-events. operations: - method: GET name: get description: Leaf Agriculture Get Valley credentials Events call: leaf-agriculture-api-reference-leaf-user-provider-credentials-valley.get with: leaf_user_id: rest.leaf_user_id outputParameters: - type: object mapping: $. - type: mcp namespace: leaf-agriculture-api-reference-leaf-user-provider-credentials-valley-mcp port: 9090 transport: http description: MCP adapter for Leaf Agriculture Leaf API — API Reference > Leaf User > Provider Credentials > Valley. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: leaf-agriculture-get-valley-credentials description: Leaf Agriculture Get Valley credentials of the LeafUser hints: readOnly: true destructive: false idempotent: true call: leaf-agriculture-api-reference-leaf-user-provider-credentials-valley.get with: Authorization: tools.Authorization Content-Type: tools.Content-Type leaf_user_id: tools.leaf_user_id outputParameters: - type: object mapping: $. - name: leaf-agriculture-add-valley-credentials description: Leaf Agriculture Add Valley credentials to the LeafUser hints: readOnly: false destructive: false idempotent: false call: leaf-agriculture-api-reference-leaf-user-provider-credentials-valley.post with: Authorization: tools.Authorization Content-Type: tools.Content-Type leaf_user_id: tools.leaf_user_id body: tools.body outputParameters: - type: object mapping: $. - name: leaf-agriculture-delete-valley-credentials description: Leaf Agriculture Delete Valley credentials of the LeafUser hints: readOnly: false destructive: true idempotent: true call: leaf-agriculture-api-reference-leaf-user-provider-credentials-valley.delete with: Authorization: tools.Authorization Content-Type: tools.Content-Type leaf_user_id: tools.leaf_user_id outputParameters: - type: object mapping: $. - name: leaf-agriculture-get-valley-credentials-2 description: Leaf Agriculture Get Valley credentials Events hints: readOnly: true destructive: false idempotent: true call: leaf-agriculture-api-reference-leaf-user-provider-credentials-valley.get with: leaf_user_id: tools.leaf_user_id outputParameters: - type: object mapping: $.