naftiko: 1.0.0-alpha2 info: label: Core API — Velocity Controls description: 'Core API — Velocity Controls. 5 operations. Lead operation: List velocity controls. Self-contained Naftiko capability covering one Marqeta business surface.' tags: - Marqeta - Velocity Controls created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MARQETA_API_KEY: MARQETA_API_KEY capability: consumes: - type: http namespace: core-velocity-controls baseUri: '' description: Core API — Velocity Controls business capability. Self-contained, no shared references. resources: - name: velocitycontrols path: /velocitycontrols operations: - name: getvelocitycontrols method: GET description: List velocity controls outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: card_product in: query type: string description: Unique identifier of the card product. - name: user in: query type: string description: Unique identifier of the user. - name: count in: query type: integer description: Number of velocity control resources to retrieve. - name: start_index in: query type: integer description: Sort order index of the first resource in the returned array. - name: fields in: query type: string description: Comma-delimited list of fields to return (`field_1,field_2`, and so on). - name: sort_by in: query type: string description: Field on which to sort. - name: postvelocitycontrols method: POST description: Create velocity control outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: velocitycontrols-user-user_token-available path: /velocitycontrols/user/{user_token}/available operations: - name: getvelocitycontrolsuserusertokenavailable method: GET description: List user velocity control balances outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: user_token in: path type: string description: Unique identifier of the cardholder. required: true - name: count in: query type: integer description: Number of available balance resources to retrieve. - name: start_index in: query type: integer description: The sort order index of the first resource in the returned array. - name: fields in: query type: string description: Comma-delimited list of fields to return (`field_1,field_2`, and so on). - name: sort_by in: query type: string description: Field on which to sort. - name: velocitycontrols-token path: /velocitycontrols/{token} operations: - name: getvelocitycontrolstoken method: GET description: Returns a specific velocity control outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: token in: path type: string description: Unique identifier of the velocity control resource. required: true - name: fields in: query type: string description: Comma-delimited list of fields to return (`field_1,field_2`, and so on). - name: putvelocitycontrolstoken method: PUT description: Update velocity control outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: token in: path type: string description: Unique identifier of the velocity control resource. 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-velocity-controls-rest port: 8080 description: REST adapter for Core API — Velocity Controls. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/velocitycontrols name: velocitycontrols description: REST surface for velocitycontrols. operations: - method: GET name: getvelocitycontrols description: List velocity controls call: core-velocity-controls.getvelocitycontrols with: card_product: rest.card_product user: rest.user count: rest.count start_index: rest.start_index fields: rest.fields sort_by: rest.sort_by outputParameters: - type: object mapping: $. - method: POST name: postvelocitycontrols description: Create velocity control call: core-velocity-controls.postvelocitycontrols with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/velocitycontrols/user/{user-token}/available name: velocitycontrols-user-user-token-available description: REST surface for velocitycontrols-user-user_token-available. operations: - method: GET name: getvelocitycontrolsuserusertokenavailable description: List user velocity control balances call: core-velocity-controls.getvelocitycontrolsuserusertokenavailable with: user_token: rest.user_token count: rest.count start_index: rest.start_index fields: rest.fields sort_by: rest.sort_by outputParameters: - type: object mapping: $. - path: /v1/velocitycontrols/{token} name: velocitycontrols-token description: REST surface for velocitycontrols-token. operations: - method: GET name: getvelocitycontrolstoken description: Returns a specific velocity control call: core-velocity-controls.getvelocitycontrolstoken with: token: rest.token fields: rest.fields outputParameters: - type: object mapping: $. - method: PUT name: putvelocitycontrolstoken description: Update velocity control call: core-velocity-controls.putvelocitycontrolstoken with: token: rest.token body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: core-velocity-controls-mcp port: 9090 transport: http description: MCP adapter for Core API — Velocity Controls. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-velocity-controls description: List velocity controls hints: readOnly: true destructive: false idempotent: true call: core-velocity-controls.getvelocitycontrols with: card_product: tools.card_product user: tools.user count: tools.count start_index: tools.start_index fields: tools.fields sort_by: tools.sort_by outputParameters: - type: object mapping: $. - name: create-velocity-control description: Create velocity control hints: readOnly: false destructive: false idempotent: false call: core-velocity-controls.postvelocitycontrols with: body: tools.body outputParameters: - type: object mapping: $. - name: list-user-velocity-control-balances description: List user velocity control balances hints: readOnly: true destructive: false idempotent: true call: core-velocity-controls.getvelocitycontrolsuserusertokenavailable with: user_token: tools.user_token count: tools.count start_index: tools.start_index fields: tools.fields sort_by: tools.sort_by outputParameters: - type: object mapping: $. - name: returns-specific-velocity-control description: Returns a specific velocity control hints: readOnly: true destructive: false idempotent: true call: core-velocity-controls.getvelocitycontrolstoken with: token: tools.token fields: tools.fields outputParameters: - type: object mapping: $. - name: update-velocity-control description: Update velocity control hints: readOnly: false destructive: false idempotent: true call: core-velocity-controls.putvelocitycontrolstoken with: token: tools.token body: tools.body outputParameters: - type: object mapping: $.