TopRank Skills

Home / Claw Skills / API 集成 / agentfin
Official OpenClaw rules 36%

agentfin

Issue virtual Visa/MC cards funded by USDT. Check balance, get card credentials, fetch OTP codes — all via REST API.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 agentfin 技能。 若已安装,则直接安装 agentfin 技能。

Overview

Skill Key
elvismusli/agentfin
Author
elvismusli
Source Repo
openclaw/skills
Version
1.0.0
Source Path
skills/elvismusli/agentfin
Latest Commit SHA
9408a16871a76ff880e31d6334cfbf65ec319587

Extracted Content

SKILL.md excerpt

# AgentFin — Virtual Cards for Agents

You have access to the AgentFin API. Use it to check your balance, get virtual card credentials for online purchases, and fetch OTP codes for 3DS verification.

## Authentication

All requests require a Bearer token. Use the `AGENTFIN_API_KEY` environment variable.

```
Authorization: Bearer $AGENTFIN_API_KEY
```

Base URL: `https://agentfin.tech/api`

## Endpoints

### Check Balance & Card Status

```bash
curl -H "Authorization: Bearer $AGENTFIN_API_KEY" \
  https://agentfin.tech/api/me
```

Response includes `balance` (USD string), `card` object with `maskedPan` and `status`, and `depositAddress` for USDT top-ups.

### Get Card Credentials (for online purchases)

```bash
curl -H "Authorization: Bearer $AGENTFIN_API_KEY" \
  https://agentfin.tech/api/cards/{cardId}/sensitive
```

Returns `pan`, `cvv`, `expiryMonth`, `expiryYear`, `cardHolderName`, `billingAddress`. Rate limited to 10 requests/minute.

**Important:** Use the `cardId` from the `/api/me` response (`card.cardId` field).

### Fetch Latest OTP Code (for 3DS verification)

```bash
curl -H "Authorization: Bearer $AGENTFIN_API_KEY" \
  https://agentfin.tech/api/inbox/latest-otp
```

Returns the most recent email with extracted OTP codes. The `extractedCodes` field is an array of strings. Use the first element as the verification code.

If a purchase triggers 3DS, wait 10-30 seconds for the OTP email to arrive, then call this endpoint.

### Top Up Card Balance

```bash
curl -X POST -H "Authorization: Bearer $AGENTFIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"amount": 50, "currency": "USD"}' \
  https://agentfin.tech/api/cards/{cardId}/topup
```

Moves funds from your account balance to the card. The card is prepaid — you cannot spend more than the loaded amount.

### View Transaction History

```bash
curl -H "Authorization: Bearer $AGENTFIN_API_KEY" \
  https://agentfin.tech/api/me/transactions
```

Returns all deposits, card charges, top-ups, and refun...

Related Claw Skills