naftiko: 1.0.0-alpha2 info: label: Core API — Admin description: 'Core API — Admin. 5 operations. Lead operation: Replays all failed statement from statement error processing table. Self-contained Naftiko capability covering one Marqeta business surface.' tags: - Marqeta - Admin created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MARQETA_API_KEY: MARQETA_API_KEY capability: consumes: - type: http namespace: core-admin baseUri: '' description: Core API — Admin business capability. Self-contained, no shared references. resources: - name: admin-replayfailedstatements path: /admin/replayfailedstatements operations: - name: replayfailedstatements method: POST description: Replays all failed statement from statement error processing table outputRawFormat: json outputParameters: - name: result type: object value: $. - name: admin-replayfailedstatements-short_code path: /admin/replayfailedstatements/{short_code} operations: - name: replayfailedstatementsbyshortcode method: POST description: Replays all failed statements by short code from statement error processing table outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: short_code in: path type: string description: Short code of the program required: true - name: admin-schedulestatements path: /admin/schedulestatements operations: - name: schedulestatements method: POST description: Schedules statements for applicable accounts outputRawFormat: json outputParameters: - name: result type: object value: $. - name: admin-short_code-replayfailedstatement-account_token path: /admin/{short_code}/replayfailedstatement/{account_token} operations: - name: replaysinglefailedstatement method: POST description: Replays single failed statement by short code and account token from statement error processing table outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: short_code in: path type: string description: Short code of the program required: true - name: account_token in: path type: string description: account token of the account required: true - name: admin-short_code-retryachpayments path: /admin/{short_code}/retryachpayments operations: - name: retryachpayment method: POST description: Create a new ACHO ACH transfer outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: short_code in: path type: string description: Short code of the program 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-admin-rest port: 8080 description: REST adapter for Core API — Admin. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/admin/replayfailedstatements name: admin-replayfailedstatements description: REST surface for admin-replayfailedstatements. operations: - method: POST name: replayfailedstatements description: Replays all failed statement from statement error processing table call: core-admin.replayfailedstatements outputParameters: - type: object mapping: $. - path: /v1/admin/replayfailedstatements/{short-code} name: admin-replayfailedstatements-short-code description: REST surface for admin-replayfailedstatements-short_code. operations: - method: POST name: replayfailedstatementsbyshortcode description: Replays all failed statements by short code from statement error processing table call: core-admin.replayfailedstatementsbyshortcode with: short_code: rest.short_code outputParameters: - type: object mapping: $. - path: /v1/admin/schedulestatements name: admin-schedulestatements description: REST surface for admin-schedulestatements. operations: - method: POST name: schedulestatements description: Schedules statements for applicable accounts call: core-admin.schedulestatements outputParameters: - type: object mapping: $. - path: /v1/admin/{short-code}/replayfailedstatement/{account-token} name: admin-short-code-replayfailedstatement-account-token description: REST surface for admin-short_code-replayfailedstatement-account_token. operations: - method: POST name: replaysinglefailedstatement description: Replays single failed statement by short code and account token from statement error processing table call: core-admin.replaysinglefailedstatement with: short_code: rest.short_code account_token: rest.account_token outputParameters: - type: object mapping: $. - path: /v1/admin/{short-code}/retryachpayments name: admin-short-code-retryachpayments description: REST surface for admin-short_code-retryachpayments. operations: - method: POST name: retryachpayment description: Create a new ACHO ACH transfer call: core-admin.retryachpayment with: short_code: rest.short_code body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: core-admin-mcp port: 9090 transport: http description: MCP adapter for Core API — Admin. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: replays-all-failed-statement-statement description: Replays all failed statement from statement error processing table hints: readOnly: false destructive: false idempotent: false call: core-admin.replayfailedstatements outputParameters: - type: object mapping: $. - name: replays-all-failed-statements-short description: Replays all failed statements by short code from statement error processing table hints: readOnly: false destructive: false idempotent: false call: core-admin.replayfailedstatementsbyshortcode with: short_code: tools.short_code outputParameters: - type: object mapping: $. - name: schedules-statements-applicable-accounts description: Schedules statements for applicable accounts hints: readOnly: false destructive: false idempotent: false call: core-admin.schedulestatements outputParameters: - type: object mapping: $. - name: replays-single-failed-statement-short description: Replays single failed statement by short code and account token from statement error processing table hints: readOnly: false destructive: false idempotent: false call: core-admin.replaysinglefailedstatement with: short_code: tools.short_code account_token: tools.account_token outputParameters: - type: object mapping: $. - name: create-new-acho-ach-transfer description: Create a new ACHO ACH transfer hints: readOnly: false destructive: false idempotent: false call: core-admin.retryachpayment with: short_code: tools.short_code body: tools.body outputParameters: - type: object mapping: $.