Skip to main content
POST
/
api
/
cards
/
{id}
/
claim
Claim a card using its token
curl --request POST \
  --url https://mag3nt.com/api/cards/{id}/claim \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "token": "<string>"
}
'
{
  "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

Path Parameters

id
string
required

Body

application/json
token
string
required

Response

200 - application/json

Card claimed

id
string
Example:

"sx_a66a6666-1234-5678-9abc-def012345678"

token
string
Example:

"tok_3b9fe670-abcd-efgh-ijkl-mnopqrstuvwx"

purpose
string
Example:

"Research Agent"

limit_amount
number
Example:

50

status
enum<string>
Available options:
ACTIVE,
FROZEN,
EXPIRED,
USED,
PENDING_FUNDING,
FUNDING_FAILED
Example:

"ACTIVE"

mcc_locks
string
Example:

""

single_use
enum<integer>
Available options:
0,
1
Example:

0

expires_at
string<date-time> | null
funding_network
string
Example:

"eip155:8453"

funding_asset
string
Example:

"USDC"

wallet_address
string
Example:

"0x1234...abcd"

balance
number
Example:

0

remaining
number
Example:

50

created_at
string<date-time>