Skip to main content
POST
/
api
/
issue
Issue a new virtual payment card
curl --request POST \
  --url https://mag3nt.com/api/issue \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "purpose": "Research Agent",
  "limit_amount": 50,
  "network": "eip155:8453"
}
'
{
  "success": true,
  "card": {
    "id": "sx_a66a6666-1234-5678-9abc-def012345678",
    "token": "tok_3b9fe670-abcd-efgh-ijkl-mnopqrstuvwx",
    "purpose": "Research Agent",
    "limit_amount": 50,
    "status": "ACTIVE",
    "mcc_locks": "",
    "single_use": 0,
    "expires_at": "2023-11-07T05:31:56Z",
    "funding_network": "eip155:8453",
    "funding_asset": "USDC",
    "wallet_address": "0x1234...abcd",
    "balance": 0,
    "remaining": 50,
    "created_at": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.mag3nt.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Session token from POST /api/auth/verify

Body

application/json
purpose
string
required

Human-readable label for the card

Example:

"Research Agent"

limit_amount
number
required

Maximum spend in USDC

Example:

50

network
string
default:eip155:8453
asset
string
default:USDC
tx_hash
string

On-chain funding transaction hash (optional)

mcc_locks
string

Comma-separated merchant category codes

single_use
boolean
default:false
expires_in
number

Hours until expiry (0 = never)

Response

Card created

success
boolean
card
object