Start a plan upgrade paid in USDC on Hyperliquid
curl --request POST \
--url https://api.ironflow.sh/v1/billing/upgrade \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]",
"wallet": "0x1234567890abcdef1234567890abcdef12345678",
"plan": "explorer"
}
'import requests
url = "https://api.ironflow.sh/v1/billing/upgrade"
payload = {
"email": "[email protected]",
"wallet": "0x1234567890abcdef1234567890abcdef12345678",
"plan": "explorer"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
email: '[email protected]',
wallet: '0x1234567890abcdef1234567890abcdef12345678',
plan: 'explorer'
})
};
fetch('https://api.ironflow.sh/v1/billing/upgrade', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ironflow.sh/v1/billing/upgrade",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => '[email protected]',
'wallet' => '0x1234567890abcdef1234567890abcdef12345678',
'plan' => 'explorer'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.ironflow.sh/v1/billing/upgrade"
payload := strings.NewReader("{\n \"email\": \"[email protected]\",\n \"wallet\": \"0x1234567890abcdef1234567890abcdef12345678\",\n \"plan\": \"explorer\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.ironflow.sh/v1/billing/upgrade")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"[email protected]\",\n \"wallet\": \"0x1234567890abcdef1234567890abcdef12345678\",\n \"plan\": \"explorer\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ironflow.sh/v1/billing/upgrade")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"[email protected]\",\n \"wallet\": \"0x1234567890abcdef1234567890abcdef12345678\",\n \"plan\": \"explorer\"\n}"
response = http.request(request)
puts response.read_body{
"request_id": "up_0123456789abcdef0123456789abcdef",
"status": "pending",
"status_url": "https://api.ironflow.sh/v1/billing/upgrade?request=up_0123456789abcdef0123456789abcdef",
"page_url": "https://ironflow.sh/upgrade?request=up_0123456789abcdef0123456789abcdef",
"email": "[email protected]",
"plan": "explorer",
"plan_name": "Explorer",
"amount_usdc": 49,
"days": 30,
"token": "USDC",
"network": "Hyperliquid",
"from_wallet": "0x1234567890abcdef1234567890abcdef12345678",
"to_address": "0x0000000000000000000000000000000000000000",
"expires_at": "2026-11-14T09:00:00Z",
"checked_every_seconds": 10
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded. Retry after 60 seconds.",
"upgrade": {},
"ironbox": {
"why": "No rate limits inside an Ironbox: your agent runs next to Hyperliquid with the data on the box.",
"create": "POST https://api.ironflow.sh/v1/ironbox",
"url": "https://ironflow.sh/ironbox?utm_source=api"
},
"stream": "GET https://api.ironflow.sh/v1/liquidations/stream (no daily limit for keyless streams)"
}
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded. Retry after 60 seconds.",
"upgrade": {},
"ironbox": {
"why": "No rate limits inside an Ironbox: your agent runs next to Hyperliquid with the data on the box.",
"create": "POST https://api.ironflow.sh/v1/ironbox",
"url": "https://ironflow.sh/ironbox?utm_source=api"
},
"stream": "GET https://api.ironflow.sh/v1/liquidations/stream (no daily limit for keyless streams)"
}
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded. Retry after 60 seconds.",
"upgrade": {},
"ironbox": {
"why": "No rate limits inside an Ironbox: your agent runs next to Hyperliquid with the data on the box.",
"create": "POST https://api.ironflow.sh/v1/ironbox",
"url": "https://ironflow.sh/ironbox?utm_source=api"
},
"stream": "GET https://api.ironflow.sh/v1/liquidations/stream (no daily limit for keyless streams)"
}
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded. Retry after 60 seconds.",
"upgrade": {},
"ironbox": {
"why": "No rate limits inside an Ironbox: your agent runs next to Hyperliquid with the data on the box.",
"create": "POST https://api.ironflow.sh/v1/ironbox",
"url": "https://ironflow.sh/ironbox?utm_source=api"
},
"stream": "GET https://api.ironflow.sh/v1/liquidations/stream (no daily limit for keyless streams)"
}
}Keys and billing
Upgrade an API key with USDC on Hyperliquid
POST /v1/billing/upgrade opens a plan upgrade for an API key: send the USDC on Hyperliquid from your wallet and the plan starts within a minute.
POST
/
v1
/
billing
/
upgrade
Start a plan upgrade paid in USDC on Hyperliquid
curl --request POST \
--url https://api.ironflow.sh/v1/billing/upgrade \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]",
"wallet": "0x1234567890abcdef1234567890abcdef12345678",
"plan": "explorer"
}
'import requests
url = "https://api.ironflow.sh/v1/billing/upgrade"
payload = {
"email": "[email protected]",
"wallet": "0x1234567890abcdef1234567890abcdef12345678",
"plan": "explorer"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
email: '[email protected]',
wallet: '0x1234567890abcdef1234567890abcdef12345678',
plan: 'explorer'
})
};
fetch('https://api.ironflow.sh/v1/billing/upgrade', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ironflow.sh/v1/billing/upgrade",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => '[email protected]',
'wallet' => '0x1234567890abcdef1234567890abcdef12345678',
'plan' => 'explorer'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.ironflow.sh/v1/billing/upgrade"
payload := strings.NewReader("{\n \"email\": \"[email protected]\",\n \"wallet\": \"0x1234567890abcdef1234567890abcdef12345678\",\n \"plan\": \"explorer\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.ironflow.sh/v1/billing/upgrade")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"[email protected]\",\n \"wallet\": \"0x1234567890abcdef1234567890abcdef12345678\",\n \"plan\": \"explorer\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ironflow.sh/v1/billing/upgrade")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"[email protected]\",\n \"wallet\": \"0x1234567890abcdef1234567890abcdef12345678\",\n \"plan\": \"explorer\"\n}"
response = http.request(request)
puts response.read_body{
"request_id": "up_0123456789abcdef0123456789abcdef",
"status": "pending",
"status_url": "https://api.ironflow.sh/v1/billing/upgrade?request=up_0123456789abcdef0123456789abcdef",
"page_url": "https://ironflow.sh/upgrade?request=up_0123456789abcdef0123456789abcdef",
"email": "[email protected]",
"plan": "explorer",
"plan_name": "Explorer",
"amount_usdc": 49,
"days": 30,
"token": "USDC",
"network": "Hyperliquid",
"from_wallet": "0x1234567890abcdef1234567890abcdef12345678",
"to_address": "0x0000000000000000000000000000000000000000",
"expires_at": "2026-11-14T09:00:00Z",
"checked_every_seconds": 10
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded. Retry after 60 seconds.",
"upgrade": {},
"ironbox": {
"why": "No rate limits inside an Ironbox: your agent runs next to Hyperliquid with the data on the box.",
"create": "POST https://api.ironflow.sh/v1/ironbox",
"url": "https://ironflow.sh/ironbox?utm_source=api"
},
"stream": "GET https://api.ironflow.sh/v1/liquidations/stream (no daily limit for keyless streams)"
}
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded. Retry after 60 seconds.",
"upgrade": {},
"ironbox": {
"why": "No rate limits inside an Ironbox: your agent runs next to Hyperliquid with the data on the box.",
"create": "POST https://api.ironflow.sh/v1/ironbox",
"url": "https://ironflow.sh/ironbox?utm_source=api"
},
"stream": "GET https://api.ironflow.sh/v1/liquidations/stream (no daily limit for keyless streams)"
}
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded. Retry after 60 seconds.",
"upgrade": {},
"ironbox": {
"why": "No rate limits inside an Ironbox: your agent runs next to Hyperliquid with the data on the box.",
"create": "POST https://api.ironflow.sh/v1/ironbox",
"url": "https://ironflow.sh/ironbox?utm_source=api"
},
"stream": "GET https://api.ironflow.sh/v1/liquidations/stream (no daily limit for keyless streams)"
}
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded. Retry after 60 seconds.",
"upgrade": {},
"ironbox": {
"why": "No rate limits inside an Ironbox: your agent runs next to Hyperliquid with the data on the box.",
"create": "POST https://api.ironflow.sh/v1/ironbox",
"url": "https://ironflow.sh/ironbox?utm_source=api"
},
"stream": "GET https://api.ironflow.sh/v1/liquidations/stream (no daily limit for keyless streams)"
}
}Body
application/json
Response
The request is open; pay it.
up_ and 32 hex characters
Available options:
pending, paid, expired Available options:
USDC Available options:
Hyperliquid The request lapses unpaid after 7 days