Marqeta · Capability

Core API — Account Transitions

Core API — Account Transitions. 4 operations. Lead operation: List account transitions. Self-contained Naftiko capability covering one Marqeta business surface.

Run with Naftiko MarqetaAccount Transitions

What You Can Do

GET
Listaccounttransitions — List account transitions
/v1/accounts/{account-token}/accounttransitions
POST
Transitionaccount — Transition account status
/v1/accounts/{account-token}/accounttransitions
GET
Getaccounttransition — Retrieve account transition
/v1/accounts/{account-token}/accounttransitions/{token}
POST
Resendwebhookevent — Resend credit event notification
/v1/webhooks/{event-type}/{resource-token}

MCP Tools

list-account-transitions

List account transitions

read-only idempotent
transition-account-status

Transition account status

retrieve-account-transition

Retrieve account transition

read-only idempotent
resend-credit-event-notification

Resend credit event notification

Capability Spec

core-account-transitions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Core API — Account Transitions
  description: 'Core API — Account Transitions. 4 operations. Lead operation: List account transitions. Self-contained Naftiko
    capability covering one Marqeta business surface.'
  tags:
  - Marqeta
  - Account Transitions
  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-transitions
    baseUri: ''
    description: Core API — Account Transitions business capability. Self-contained, no shared references.
    resources:
    - name: accounts-account_token-accounttransitions
      path: /accounts/{account_token}/accounttransitions
      operations:
      - name: listaccounttransitions
        method: GET
        description: List account transitions
        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 transitions.
          required: true
        - name: count
          in: query
          type: integer
          description: Number of account transition resources to retrieve.
        - name: start_index
          in: query
          type: integer
          description: Sort order index of the first resource in the returned array.
        - name: sort_by
          in: query
          type: string
          description: Field on which to sort.
      - name: transitionaccount
        method: POST
        description: Transition account 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 to transition a status.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: accounts-account_token-accounttransitions-token
      path: /accounts/{account_token}/accounttransitions/{token}
      operations:
      - name: getaccounttransition
        method: GET
        description: Retrieve account transition
        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 a transition.
          required: true
        - name: token
          in: path
          type: string
          description: Unique identifier of the account transition you want to retrieve.
          required: true
    - name: webhooks-event_type-resource_token
      path: /webhooks/{event_type}/{resource_token}
      operations:
      - name: resendwebhookevent
        method: POST
        description: Resend credit event notification
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: event_type
          in: path
          type: string
          description: Specifies the type of event you want to resend.
          required: true
        - name: resource_token
          in: path
          type: string
          description: Unique identifier of the resource for which you want to resend a notification.
          required: true
    authentication:
      type: basic
      username: '{{env.MARQETA_USER}}'
      password: '{{env.MARQETA_PASS}}'
  exposes:
  - type: rest
    namespace: core-account-transitions-rest
    port: 8080
    description: REST adapter for Core API — Account Transitions. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/accounts/{account-token}/accounttransitions
      name: accounts-account-token-accounttransitions
      description: REST surface for accounts-account_token-accounttransitions.
      operations:
      - method: GET
        name: listaccounttransitions
        description: List account transitions
        call: core-account-transitions.listaccounttransitions
        with:
          account_token: rest.account_token
          count: rest.count
          start_index: rest.start_index
          sort_by: rest.sort_by
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: transitionaccount
        description: Transition account status
        call: core-account-transitions.transitionaccount
        with:
          account_token: rest.account_token
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts/{account-token}/accounttransitions/{token}
      name: accounts-account-token-accounttransitions-token
      description: REST surface for accounts-account_token-accounttransitions-token.
      operations:
      - method: GET
        name: getaccounttransition
        description: Retrieve account transition
        call: core-account-transitions.getaccounttransition
        with:
          account_token: rest.account_token
          token: rest.token
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/webhooks/{event-type}/{resource-token}
      name: webhooks-event-type-resource-token
      description: REST surface for webhooks-event_type-resource_token.
      operations:
      - method: POST
        name: resendwebhookevent
        description: Resend credit event notification
        call: core-account-transitions.resendwebhookevent
        with:
          event_type: rest.event_type
          resource_token: rest.resource_token
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: core-account-transitions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Core API — Account Transitions. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-account-transitions
      description: List account transitions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: core-account-transitions.listaccounttransitions
      with:
        account_token: tools.account_token
        count: tools.count
        start_index: tools.start_index
        sort_by: tools.sort_by
      outputParameters:
      - type: object
        mapping: $.
    - name: transition-account-status
      description: Transition account status
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: core-account-transitions.transitionaccount
      with:
        account_token: tools.account_token
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieve-account-transition
      description: Retrieve account transition
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: core-account-transitions.getaccounttransition
      with:
        account_token: tools.account_token
        token: tools.token
      outputParameters:
      - type: object
        mapping: $.
    - name: resend-credit-event-notification
      description: Resend credit event notification
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: core-account-transitions.resendwebhookevent
      with:
        event_type: tools.event_type
        resource_token: tools.resource_token
      outputParameters:
      - type: object
        mapping: $.