Marqeta · Capability
Core API — Account Cards
Core API — Account Cards. 3 operations. Lead operation: List account cards. Self-contained Naftiko capability covering one Marqeta business surface.
What You Can Do
GET
Getcardsbyaccount
— List account cards
/v1/accounts/{account-token}/cards
POST
Createcardforaccount
— Create account card
/v1/accounts/{account-token}/cards
GET
Getcardbyaccount
— Retrieve account card
/v1/accounts/{account-token}/cards/{card-token}
MCP Tools
list-account-cards
List account cards
read-only
idempotent
create-account-card
Create account card
retrieve-account-card
Retrieve account card
read-only
idempotent
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: Core API — Account Cards
description: 'Core API — Account Cards. 3 operations. Lead operation: List account cards. Self-contained Naftiko capability
covering one Marqeta business surface.'
tags:
- Marqeta
- Account Cards
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-cards
baseUri: ''
description: Core API — Account Cards business capability. Self-contained, no shared references.
resources:
- name: accounts-account_token-cards
path: /accounts/{account_token}/cards
operations:
- name: getcardsbyaccount
method: GET
description: List account cards
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 retrieve credit cards.
required: true
- name: status
in: query
type: string
description: Status of the credit cards to retrieve.
- name: count
in: query
type: integer
description: Number of credit card 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: createcardforaccount
method: POST
description: Create account card
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 create a credit card.
required: true
- name: body
in: body
type: object
description: Request body (JSON).
required: true
- name: accounts-account_token-cards-card_token
path: /accounts/{account_token}/cards/{card_token}
operations:
- name: getcardbyaccount
method: GET
description: Retrieve account card
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 retrieve a credit card.
required: true
- name: card_token
in: path
type: string
description: Unique identifier of the credit card to retrieve.
required: true
authentication:
type: basic
username: '{{env.MARQETA_USER}}'
password: '{{env.MARQETA_PASS}}'
exposes:
- type: rest
namespace: core-account-cards-rest
port: 8080
description: REST adapter for Core API — Account Cards. One Spectral-compliant resource per consumed operation, prefixed
with /v1.
resources:
- path: /v1/accounts/{account-token}/cards
name: accounts-account-token-cards
description: REST surface for accounts-account_token-cards.
operations:
- method: GET
name: getcardsbyaccount
description: List account cards
call: core-account-cards.getcardsbyaccount
with:
account_token: rest.account_token
status: rest.status
count: rest.count
start_index: rest.start_index
sort_by: rest.sort_by
outputParameters:
- type: object
mapping: $.
- method: POST
name: createcardforaccount
description: Create account card
call: core-account-cards.createcardforaccount
with:
account_token: rest.account_token
body: rest.body
outputParameters:
- type: object
mapping: $.
- path: /v1/accounts/{account-token}/cards/{card-token}
name: accounts-account-token-cards-card-token
description: REST surface for accounts-account_token-cards-card_token.
operations:
- method: GET
name: getcardbyaccount
description: Retrieve account card
call: core-account-cards.getcardbyaccount
with:
account_token: rest.account_token
card_token: rest.card_token
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: core-account-cards-mcp
port: 9090
transport: http
description: MCP adapter for Core API — Account Cards. One tool per consumed operation, routed inline through this capability's
consumes block.
tools:
- name: list-account-cards
description: List account cards
hints:
readOnly: true
destructive: false
idempotent: true
call: core-account-cards.getcardsbyaccount
with:
account_token: tools.account_token
status: tools.status
count: tools.count
start_index: tools.start_index
sort_by: tools.sort_by
outputParameters:
- type: object
mapping: $.
- name: create-account-card
description: Create account card
hints:
readOnly: false
destructive: false
idempotent: false
call: core-account-cards.createcardforaccount
with:
account_token: tools.account_token
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: retrieve-account-card
description: Retrieve account card
hints:
readOnly: true
destructive: false
idempotent: true
call: core-account-cards.getcardbyaccount
with:
account_token: tools.account_token
card_token: tools.card_token
outputParameters:
- type: object
mapping: $.