Deposits
Card / Apple Pay: a signed Swapped widget URL
POST
/swapped/urlRequires a session: Authorization: Bearer <token>Limit: 20 / 10 min per user
Embed the URL in an iframe. Swapped handles sign-in, ID check and payment, then sends USDC to the user's Hyperliquid address (rail hyperliquid) or their wallet on Polygon.
Request
curl -X POST 'https://api.slay.money/api/predict/swapped/url' \
-H 'Authorization: Bearer $SLAY_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"usd":100,"method":"creditcard","rail":"hyperliquid"}'Body
usdnumberrequiredmethodstring One of
creditcard, apple-payrailstring One of
hyperliquid, polygonResponses
200Widget URL.
urlstringliveboolean200 response
{
"url": "string",
"live": true
}400Outside $8–$20,000.
400 response
{
"error": "The minimum is $8."
}401No valid session. Sign in again.
401 response
{
"error": "Sign in first"
}403The account is suspended.
403 response
{
"error": "This account has been suspended for violating Slay's terms.",
"code": "ACCOUNT_BANNED"
}409No wallet yet.
409 response
{
"error": "Set up your wallet first"
}429Rate limit reached. Wait for the window to pass.
429 response
{
"error": "Too many requests. Wait a moment."
}