naftiko: 1.0.0-alpha2 info: label: Stripe Link API — Accounts description: 'Stripe Link API — Accounts. 5 operations. Lead operation: Stripe Get Linked Accounts. Self-contained Naftiko capability covering one Stripe business surface.' tags: - Stripe - Accounts created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: STRIPE_API_KEY: STRIPE_API_KEY capability: consumes: - type: http namespace: link-accounts baseUri: https://api.stripe.com description: Stripe Link API — Accounts business capability. Self-contained, no shared references. resources: - name: v1-linked_accounts path: /v1/linked_accounts operations: - name: getlinkedaccounts method: GET description: Stripe Get Linked Accounts outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: account_holder in: query type: object description: If present, only return accounts that belong to the specified account holder. `account_holder[customer]` and `account_holder[account]` are mutually exclusive. - name: ending_before in: query type: string description: A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 ob - name: expand in: query type: array description: Specifies which fields in the response should be expanded. - name: limit in: query type: integer description: A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. - name: session in: query type: string description: If present, only return accounts that were collected as part of the given session. - name: starting_after in: query type: string description: A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 o - name: body in: body type: object description: Request body (JSON). required: false - name: v1-linked_accounts-account path: /v1/linked_accounts/{account} operations: - name: getlinkedaccountsaccount method: GET description: Stripe Get Linked Accounts outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: account in: path type: string required: true - name: expand in: query type: array description: Specifies which fields in the response should be expanded. - name: body in: body type: object description: Request body (JSON). required: false - name: v1-linked_accounts-account-disconnect path: /v1/linked_accounts/{account}/disconnect operations: - name: postlinkedaccountsaccountdisconnect method: POST description: Stripe Post Linked Accounts Disconnect outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: account in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: false - name: v1-linked_accounts-account-owners path: /v1/linked_accounts/{account}/owners operations: - name: getlinkedaccountsaccountowners method: GET description: Stripe Get Linked Accounts Owners outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: account in: path type: string required: true - name: ending_before in: query type: string description: A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 ob - name: expand in: query type: array description: Specifies which fields in the response should be expanded. - name: limit in: query type: integer description: A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. - name: ownership in: query type: string description: The ID of the ownership object to fetch owners from. required: true - name: starting_after in: query type: string description: A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 o - name: body in: body type: object description: Request body (JSON). required: false - name: v1-linked_accounts-account-refresh path: /v1/linked_accounts/{account}/refresh operations: - name: postlinkedaccountsaccountrefresh method: POST description: Stripe Post Linked Accounts Refresh outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: account in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.STRIPE_API_KEY}}' exposes: - type: rest namespace: link-accounts-rest port: 8080 description: REST adapter for Stripe Link API — Accounts. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/linked-accounts name: v1-linked-accounts description: REST surface for v1-linked_accounts. operations: - method: GET name: getlinkedaccounts description: Stripe Get Linked Accounts call: link-accounts.getlinkedaccounts with: account_holder: rest.account_holder ending_before: rest.ending_before expand: rest.expand limit: rest.limit session: rest.session starting_after: rest.starting_after body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/linked-accounts/{account} name: v1-linked-accounts-account description: REST surface for v1-linked_accounts-account. operations: - method: GET name: getlinkedaccountsaccount description: Stripe Get Linked Accounts call: link-accounts.getlinkedaccountsaccount with: account: rest.account expand: rest.expand body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/linked-accounts/{account}/disconnect name: v1-linked-accounts-account-disconnect description: REST surface for v1-linked_accounts-account-disconnect. operations: - method: POST name: postlinkedaccountsaccountdisconnect description: Stripe Post Linked Accounts Disconnect call: link-accounts.postlinkedaccountsaccountdisconnect with: account: rest.account body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/linked-accounts/{account}/owners name: v1-linked-accounts-account-owners description: REST surface for v1-linked_accounts-account-owners. operations: - method: GET name: getlinkedaccountsaccountowners description: Stripe Get Linked Accounts Owners call: link-accounts.getlinkedaccountsaccountowners with: account: rest.account ending_before: rest.ending_before expand: rest.expand limit: rest.limit ownership: rest.ownership starting_after: rest.starting_after body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/linked-accounts/{account}/refresh name: v1-linked-accounts-account-refresh description: REST surface for v1-linked_accounts-account-refresh. operations: - method: POST name: postlinkedaccountsaccountrefresh description: Stripe Post Linked Accounts Refresh call: link-accounts.postlinkedaccountsaccountrefresh with: account: rest.account body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: link-accounts-mcp port: 9090 transport: http description: MCP adapter for Stripe Link API — Accounts. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: stripe-get-linked-accounts description: Stripe Get Linked Accounts hints: readOnly: true destructive: false idempotent: true call: link-accounts.getlinkedaccounts with: account_holder: tools.account_holder ending_before: tools.ending_before expand: tools.expand limit: tools.limit session: tools.session starting_after: tools.starting_after body: tools.body outputParameters: - type: object mapping: $. - name: stripe-get-linked-accounts-2 description: Stripe Get Linked Accounts hints: readOnly: true destructive: false idempotent: true call: link-accounts.getlinkedaccountsaccount with: account: tools.account expand: tools.expand body: tools.body outputParameters: - type: object mapping: $. - name: stripe-post-linked-accounts-disconnect description: Stripe Post Linked Accounts Disconnect hints: readOnly: false destructive: false idempotent: false call: link-accounts.postlinkedaccountsaccountdisconnect with: account: tools.account body: tools.body outputParameters: - type: object mapping: $. - name: stripe-get-linked-accounts-owners description: Stripe Get Linked Accounts Owners hints: readOnly: true destructive: false idempotent: true call: link-accounts.getlinkedaccountsaccountowners with: account: tools.account ending_before: tools.ending_before expand: tools.expand limit: tools.limit ownership: tools.ownership starting_after: tools.starting_after body: tools.body outputParameters: - type: object mapping: $. - name: stripe-post-linked-accounts-refresh description: Stripe Post Linked Accounts Refresh hints: readOnly: false destructive: false idempotent: false call: link-accounts.postlinkedaccountsaccountrefresh with: account: tools.account body: tools.body outputParameters: - type: object mapping: $.