naftiko: 1.0.0-alpha2 info: label: Core API — account holder groups description: 'Core API — account holder groups. 4 operations. Lead operation: Lists account holder groups. Self-contained Naftiko capability covering one Marqeta business surface.' tags: - Marqeta - account holder groups created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MARQETA_API_KEY: MARQETA_API_KEY capability: consumes: - type: http namespace: core-account-holder-groups baseUri: '' description: Core API — account holder groups business capability. Self-contained, no shared references. resources: - name: accountholdergroups path: /accountholdergroups operations: - name: getaccountholdergroups method: GET description: Lists account holder groups outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: count in: query type: integer description: Number of items to retrieve. Count can be between 1 - 10 items. - name: start_index in: query type: integer description: Indicates from what row to start returning data. - name: sort_by in: query type: string description: Field by which to sort the returned items. Use any field in the model, or system fields lastModifiedTime or createdTime. - name: postaccountholdergroups method: POST description: Creates an account holder group object outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: accountholdergroups-token path: /accountholdergroups/{token} operations: - name: getaccountholdergroupstoken method: GET description: Returns a specific account holder group object outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: token in: path type: string description: Account holder group token required: true - name: putaccountholdergroupstoken method: PUT description: Updates an account holder group object outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: token in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: basic username: '{{env.MARQETA_USER}}' password: '{{env.MARQETA_PASS}}' exposes: - type: rest namespace: core-account-holder-groups-rest port: 8080 description: REST adapter for Core API — account holder groups. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/accountholdergroups name: accountholdergroups description: REST surface for accountholdergroups. operations: - method: GET name: getaccountholdergroups description: Lists account holder groups call: core-account-holder-groups.getaccountholdergroups with: count: rest.count start_index: rest.start_index sort_by: rest.sort_by outputParameters: - type: object mapping: $. - method: POST name: postaccountholdergroups description: Creates an account holder group object call: core-account-holder-groups.postaccountholdergroups with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/accountholdergroups/{token} name: accountholdergroups-token description: REST surface for accountholdergroups-token. operations: - method: GET name: getaccountholdergroupstoken description: Returns a specific account holder group object call: core-account-holder-groups.getaccountholdergroupstoken with: token: rest.token outputParameters: - type: object mapping: $. - method: PUT name: putaccountholdergroupstoken description: Updates an account holder group object call: core-account-holder-groups.putaccountholdergroupstoken with: token: rest.token body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: core-account-holder-groups-mcp port: 9090 transport: http description: MCP adapter for Core API — account holder groups. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: lists-account-holder-groups description: Lists account holder groups hints: readOnly: true destructive: false idempotent: true call: core-account-holder-groups.getaccountholdergroups with: count: tools.count start_index: tools.start_index sort_by: tools.sort_by outputParameters: - type: object mapping: $. - name: creates-account-holder-group-object description: Creates an account holder group object hints: readOnly: false destructive: false idempotent: false call: core-account-holder-groups.postaccountholdergroups with: body: tools.body outputParameters: - type: object mapping: $. - name: returns-specific-account-holder-group description: Returns a specific account holder group object hints: readOnly: true destructive: false idempotent: true call: core-account-holder-groups.getaccountholdergroupstoken with: token: tools.token outputParameters: - type: object mapping: $. - name: updates-account-holder-group-object description: Updates an account holder group object hints: readOnly: false destructive: false idempotent: true call: core-account-holder-groups.putaccountholdergroupstoken with: token: tools.token body: tools.body outputParameters: - type: object mapping: $.