@clawcard/cli 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/setup.mjs +7 -9
- package/package.json +1 -1
package/bin/setup.mjs
CHANGED
|
@@ -53,17 +53,13 @@ curl -X POST -H "Authorization: Bearer $CLAWCARD_API_KEY" -H "Content-Type: appl
|
|
|
53
53
|
-d '{"to":"recipient@example.com","subject":"Hello","body":"Message text"}' \\
|
|
54
54
|
$CLAWCARD_BASE_URL/api/agents/KEY_ID/emails/send
|
|
55
55
|
|
|
56
|
-
### SMS
|
|
56
|
+
### SMS (inbound only)
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
Each key gets a dedicated phone number for receiving SMS (e.g. verification codes). Outbound SMS is not currently supported.
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
**Send SMS:**
|
|
60
|
+
**Read received messages:**
|
|
63
61
|
|
|
64
|
-
curl -
|
|
65
|
-
-d '{"to":"+15551234567","body":"Message text"}' \\
|
|
66
|
-
$CLAWCARD_BASE_URL/api/agents/KEY_ID/sms/send
|
|
62
|
+
curl -H "Authorization: Bearer $CLAWCARD_API_KEY" "$CLAWCARD_BASE_URL/api/agents/KEY_ID/sms?limit=20"
|
|
67
63
|
|
|
68
64
|
### Virtual Cards
|
|
69
65
|
|
|
@@ -77,7 +73,9 @@ curl -X POST -H "Authorization: Bearer $CLAWCARD_API_KEY" -H "Content-Type: appl
|
|
|
77
73
|
-d '{"amountCents":1000,"memo":"Hosting payment","type":"single_use"}' \\
|
|
78
74
|
$CLAWCARD_BASE_URL/api/agents/KEY_ID/cards
|
|
79
75
|
|
|
80
|
-
Card types:
|
|
76
|
+
Card types:
|
|
77
|
+
- single_use — card closes automatically after one successful transaction. Best for one-time purchases.
|
|
78
|
+
- merchant_locked — card locks to the first merchant that charges it. Best for subscriptions or repeated payments to the same service (e.g. hosting, SaaS).
|
|
81
79
|
|
|
82
80
|
**Get card details (PAN, CVV):**
|
|
83
81
|
|