naftiko: 1.0.0-alpha2 info: label: Envestnet Aggregation APIs — Consents description: 'Envestnet Aggregation APIs — Consents. 8 operations. Lead operation: Envestnet Get Consents. Self-contained Naftiko capability covering one Envestnet business surface.' tags: - Envestnet - Consents created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ENVESTNET_API_KEY: ENVESTNET_API_KEY capability: consumes: - type: http namespace: account-aggregation-consents baseUri: '' description: Envestnet Aggregation APIs — Consents business capability. Self-contained, no shared references. resources: - name: consents path: /consents operations: - name: getconsents method: GET description: Envestnet Get Consents outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: consentIds in: query type: string description: Consent Id generated through POST Consent. - name: include in: query type: string description: The flag responsible to include renew details like sharing duration and reauthorization required - name: providerAccountIds in: query type: string description: Unique identifier for the provider account resource. This is created during account addition. - name: createconsent method: POST description: Envestnet Post Consent outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: consents-history path: /consents/history operations: - name: getconsenthistory method: GET description: Envestnet Get Consent History outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: consentId in: query type: string description: Consent Id generated through POST Consent. required: true - name: fromDate in: query type: string description: Consent History from date(YYYY-MM-DD) - name: skip in: query type: integer description: skip (Min 0) - name: toDate in: query type: string description: Consent History end date (YYYY-MM-DD) - name: top in: query type: integer description: top (Max 500) - name: consents-history-count path: /consents/history/count operations: - name: getconsenthistorycount method: GET description: Envestnet Get Consent History Count outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: consentId in: query type: string description: Consent Id generated through POST Consent. required: true - name: fromDate in: query type: string description: Consent History from date(YYYY-MM-DD) - name: toDate in: query type: string description: Consent History end date (YYYY-MM-DD) - name: consents-preferences path: /consents/preferences operations: - name: getconsentpreferences method: GET description: Envestnet Get Consents Preferences outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: consentId in: query type: string description: consentId required: true - name: consents-consentId path: /consents/{consentId} operations: - name: getconsentdetails method: GET description: Envestnet Get Authorization Details outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: consentId in: path type: integer description: Consent Id generated through POST Consent. required: true - name: updateconsent method: PUT description: Envestnet Put Consent outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: consentId in: path type: integer description: Consent Id generated through POST Consent. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: consents-consentId-renewal path: /consents/{consentId}/renewal operations: - name: renewconsent method: PUT description: Envestnet Renew Consent outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: consentId in: path type: integer description: Consent Id to be renewed. required: true - name: body in: body type: object description: Request body (JSON). required: false exposes: - type: rest namespace: account-aggregation-consents-rest port: 8080 description: REST adapter for Envestnet Aggregation APIs — Consents. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/consents name: consents description: REST surface for consents. operations: - method: GET name: getconsents description: Envestnet Get Consents call: account-aggregation-consents.getconsents with: consentIds: rest.consentIds include: rest.include providerAccountIds: rest.providerAccountIds outputParameters: - type: object mapping: $. - method: POST name: createconsent description: Envestnet Post Consent call: account-aggregation-consents.createconsent with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/consents/history name: consents-history description: REST surface for consents-history. operations: - method: GET name: getconsenthistory description: Envestnet Get Consent History call: account-aggregation-consents.getconsenthistory with: consentId: rest.consentId fromDate: rest.fromDate skip: rest.skip toDate: rest.toDate top: rest.top outputParameters: - type: object mapping: $. - path: /v1/consents/history/count name: consents-history-count description: REST surface for consents-history-count. operations: - method: GET name: getconsenthistorycount description: Envestnet Get Consent History Count call: account-aggregation-consents.getconsenthistorycount with: consentId: rest.consentId fromDate: rest.fromDate toDate: rest.toDate outputParameters: - type: object mapping: $. - path: /v1/consents/preferences name: consents-preferences description: REST surface for consents-preferences. operations: - method: GET name: getconsentpreferences description: Envestnet Get Consents Preferences call: account-aggregation-consents.getconsentpreferences with: consentId: rest.consentId outputParameters: - type: object mapping: $. - path: /v1/consents/{consentid} name: consents-consentid description: REST surface for consents-consentId. operations: - method: GET name: getconsentdetails description: Envestnet Get Authorization Details call: account-aggregation-consents.getconsentdetails with: consentId: rest.consentId outputParameters: - type: object mapping: $. - method: PUT name: updateconsent description: Envestnet Put Consent call: account-aggregation-consents.updateconsent with: consentId: rest.consentId body: rest.body outputParameters: - type: object mapping: $. - path: /v1/consents/{consentid}/renewal name: consents-consentid-renewal description: REST surface for consents-consentId-renewal. operations: - method: PUT name: renewconsent description: Envestnet Renew Consent call: account-aggregation-consents.renewconsent with: consentId: rest.consentId body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: account-aggregation-consents-mcp port: 9090 transport: http description: MCP adapter for Envestnet Aggregation APIs — Consents. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: envestnet-get-consents description: Envestnet Get Consents hints: readOnly: true destructive: false idempotent: true call: account-aggregation-consents.getconsents with: consentIds: tools.consentIds include: tools.include providerAccountIds: tools.providerAccountIds outputParameters: - type: object mapping: $. - name: envestnet-post-consent description: Envestnet Post Consent hints: readOnly: false destructive: false idempotent: false call: account-aggregation-consents.createconsent with: body: tools.body outputParameters: - type: object mapping: $. - name: envestnet-get-consent-history description: Envestnet Get Consent History hints: readOnly: true destructive: false idempotent: true call: account-aggregation-consents.getconsenthistory with: consentId: tools.consentId fromDate: tools.fromDate skip: tools.skip toDate: tools.toDate top: tools.top outputParameters: - type: object mapping: $. - name: envestnet-get-consent-history-count description: Envestnet Get Consent History Count hints: readOnly: true destructive: false idempotent: true call: account-aggregation-consents.getconsenthistorycount with: consentId: tools.consentId fromDate: tools.fromDate toDate: tools.toDate outputParameters: - type: object mapping: $. - name: envestnet-get-consents-preferences description: Envestnet Get Consents Preferences hints: readOnly: true destructive: false idempotent: true call: account-aggregation-consents.getconsentpreferences with: consentId: tools.consentId outputParameters: - type: object mapping: $. - name: envestnet-get-authorization-details description: Envestnet Get Authorization Details hints: readOnly: true destructive: false idempotent: true call: account-aggregation-consents.getconsentdetails with: consentId: tools.consentId outputParameters: - type: object mapping: $. - name: envestnet-put-consent description: Envestnet Put Consent hints: readOnly: false destructive: false idempotent: true call: account-aggregation-consents.updateconsent with: consentId: tools.consentId body: tools.body outputParameters: - type: object mapping: $. - name: envestnet-renew-consent description: Envestnet Renew Consent hints: readOnly: false destructive: false idempotent: true call: account-aggregation-consents.renewconsent with: consentId: tools.consentId body: tools.body outputParameters: - type: object mapping: $.