naftiko: 1.0.0-alpha2 info: label: Core API — auto reloads description: 'Core API — auto reloads. 4 operations. Lead operation: Lists all auto reloads for the program. Self-contained Naftiko capability covering one Marqeta business surface.' tags: - Marqeta - auto reloads created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MARQETA_API_KEY: MARQETA_API_KEY capability: consumes: - type: http namespace: core-auto-reloads baseUri: '' description: Core API — auto reloads business capability. Self-contained, no shared references. resources: - name: autoreloads path: /autoreloads operations: - name: getautoreloads method: GET description: Lists all auto reloads for the program outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: card_product in: query type: string description: Card product token - name: user_token in: query type: string description: User token - name: business_token in: query type: string description: Business token - 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: fields in: query type: string description: Comma-delimited list of fields to return (e.g. field_1,field_2,..). Leave blank to return all fields. - 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: postautoreloads method: POST description: Creates an auto reload object outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: autoreloads-token path: /autoreloads/{token} operations: - name: getautoreloadstoken method: GET description: Returns a specific auto reload object outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: token in: path type: string description: Auto reload token required: true - name: fields in: query type: string description: Comma-delimited list of fields to return (e.g. field_1,field_2,..). Leave blank to return all fields. - name: putautoreloadstoken method: PUT description: Updates a specific auto reload 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-auto-reloads-rest port: 8080 description: REST adapter for Core API — auto reloads. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/autoreloads name: autoreloads description: REST surface for autoreloads. operations: - method: GET name: getautoreloads description: Lists all auto reloads for the program call: core-auto-reloads.getautoreloads with: card_product: rest.card_product user_token: rest.user_token business_token: rest.business_token count: rest.count start_index: rest.start_index fields: rest.fields sort_by: rest.sort_by outputParameters: - type: object mapping: $. - method: POST name: postautoreloads description: Creates an auto reload object call: core-auto-reloads.postautoreloads with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/autoreloads/{token} name: autoreloads-token description: REST surface for autoreloads-token. operations: - method: GET name: getautoreloadstoken description: Returns a specific auto reload object call: core-auto-reloads.getautoreloadstoken with: token: rest.token fields: rest.fields outputParameters: - type: object mapping: $. - method: PUT name: putautoreloadstoken description: Updates a specific auto reload object call: core-auto-reloads.putautoreloadstoken with: token: rest.token body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: core-auto-reloads-mcp port: 9090 transport: http description: MCP adapter for Core API — auto reloads. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: lists-all-auto-reloads-program description: Lists all auto reloads for the program hints: readOnly: true destructive: false idempotent: true call: core-auto-reloads.getautoreloads with: card_product: tools.card_product user_token: tools.user_token business_token: tools.business_token count: tools.count start_index: tools.start_index fields: tools.fields sort_by: tools.sort_by outputParameters: - type: object mapping: $. - name: creates-auto-reload-object description: Creates an auto reload object hints: readOnly: false destructive: false idempotent: false call: core-auto-reloads.postautoreloads with: body: tools.body outputParameters: - type: object mapping: $. - name: returns-specific-auto-reload-object description: Returns a specific auto reload object hints: readOnly: true destructive: false idempotent: true call: core-auto-reloads.getautoreloadstoken with: token: tools.token fields: tools.fields outputParameters: - type: object mapping: $. - name: updates-specific-auto-reload-object description: Updates a specific auto reload object hints: readOnly: false destructive: false idempotent: true call: core-auto-reloads.putautoreloadstoken with: token: tools.token body: tools.body outputParameters: - type: object mapping: $.