naftiko: 1.0.0-alpha2 info: label: Core API — Migrations description: 'Core API — Migrations. 3 operations. Lead operation: Get finalize status. Self-contained Naftiko capability covering one Marqeta business surface.' tags: - Marqeta - Migrations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MARQETA_API_KEY: MARQETA_API_KEY capability: consumes: - type: http namespace: core-migrations baseUri: '' description: Core API — Migrations business capability. Self-contained, no shared references. resources: - name: migrations-accounts-account_token-finalize path: /migrations/accounts/{account_token}/finalize operations: - name: getfinalizeaccountmigrationstatus method: GET description: Get finalize status outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: account_token in: path type: string description: Unique identifier of the credit account for which you want to get the finalize status. required: true - name: migrations-accounts-account_token-getaccountbalances path: /migrations/accounts/{account_token}/getaccountbalances operations: - name: getaccountbalances method: GET description: Get the current balance and available credit for a credit account outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: account_token in: path type: string description: Unique identifier of the credit account for which you want to retrieve fees. required: true - name: migrations-accounts-account_token-statements-statement_summary_token-files path: /migrations/accounts/{account_token}/statements/{statement_summary_token}/files operations: - name: syncstatementasset method: POST description: Sync statement asset outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: account_token in: path type: string description: Unique identifier of the credit account for which you want to sync a statement asset. required: true - name: statement_summary_token in: path type: string description: Unique identifier of the migrated statement summary for which you want to sync an asset. 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-migrations-rest port: 8080 description: REST adapter for Core API — Migrations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/migrations/accounts/{account-token}/finalize name: migrations-accounts-account-token-finalize description: REST surface for migrations-accounts-account_token-finalize. operations: - method: GET name: getfinalizeaccountmigrationstatus description: Get finalize status call: core-migrations.getfinalizeaccountmigrationstatus with: account_token: rest.account_token outputParameters: - type: object mapping: $. - path: /v1/migrations/accounts/{account-token}/getaccountbalances name: migrations-accounts-account-token-getaccountbalances description: REST surface for migrations-accounts-account_token-getaccountbalances. operations: - method: GET name: getaccountbalances description: Get the current balance and available credit for a credit account call: core-migrations.getaccountbalances with: account_token: rest.account_token outputParameters: - type: object mapping: $. - path: /v1/migrations/accounts/{account-token}/statements/{statement-summary-token}/files name: migrations-accounts-account-token-statements-statement-summary-token-files description: REST surface for migrations-accounts-account_token-statements-statement_summary_token-files. operations: - method: POST name: syncstatementasset description: Sync statement asset call: core-migrations.syncstatementasset with: account_token: rest.account_token statement_summary_token: rest.statement_summary_token body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: core-migrations-mcp port: 9090 transport: http description: MCP adapter for Core API — Migrations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-finalize-status description: Get finalize status hints: readOnly: true destructive: false idempotent: true call: core-migrations.getfinalizeaccountmigrationstatus with: account_token: tools.account_token outputParameters: - type: object mapping: $. - name: get-current-balance-and-available description: Get the current balance and available credit for a credit account hints: readOnly: true destructive: false idempotent: true call: core-migrations.getaccountbalances with: account_token: tools.account_token outputParameters: - type: object mapping: $. - name: sync-statement-asset description: Sync statement asset hints: readOnly: false destructive: false idempotent: false call: core-migrations.syncstatementasset with: account_token: tools.account_token statement_summary_token: tools.statement_summary_token body: tools.body outputParameters: - type: object mapping: $.