Marqeta · Capability

Core API — Account Rewards

Core API — Account Rewards. 1 operations. Lead operation: Create account reward. Self-contained Naftiko capability covering one Marqeta business surface.

Run with Naftiko MarqetaAccount Rewards

What You Can Do

POST
Createreward — Create account reward
/v1/accounts/{account-token}/rewards

MCP Tools

create-account-reward

Create account reward

Capability Spec

core-account-rewards.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Core API — Account Rewards
  description: 'Core API — Account Rewards. 1 operations. Lead operation: Create account reward. Self-contained Naftiko capability
    covering one Marqeta business surface.'
  tags:
  - Marqeta
  - Account Rewards
  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-rewards
    baseUri: ''
    description: Core API — Account Rewards business capability. Self-contained, no shared references.
    resources:
    - name: accounts-account_token-rewards
      path: /accounts/{account_token}/rewards
      operations:
      - name: createreward
        method: POST
        description: Create account reward
        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 create a reward.
          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-rewards-rest
    port: 8080
    description: REST adapter for Core API — Account Rewards. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/accounts/{account-token}/rewards
      name: accounts-account-token-rewards
      description: REST surface for accounts-account_token-rewards.
      operations:
      - method: POST
        name: createreward
        description: Create account reward
        call: core-account-rewards.createreward
        with:
          account_token: rest.account_token
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: core-account-rewards-mcp
    port: 9090
    transport: http
    description: MCP adapter for Core API — Account Rewards. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: create-account-reward
      description: Create account reward
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: core-account-rewards.createreward
      with:
        account_token: tools.account_token
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.