Account API
Everything the dashboard shows is available over HTTPS at https://cdpfleet.com with your API key in x-api-key. Creating and revoking keys is only possible from the dashboard, so a leaked key can't create more keys.
| Method | Path | Returns |
|---|---|---|
GET | /v1/me | Your account, active plan (threads, daily minutes, maximum session length, rate limits, expiry) and key list (prefixes only). |
GET | /v1/me/usage | Today's usage: budget, used and remaining thread-seconds, active sessions and threads. ?day=YYYY-MM-DD for a past day. |
GET | /v1/me/usage/history | Daily thread-seconds and session counts; ?days=30 (up to 366). |
GET | /v1/me/sessions | Session history with start, end, duration, browser, threads, end reason and bytes. ?from, ?to (ISO timestamps, default last 24 h), ?limit (up to 1000). |
GET | /v1/me/bandwidth | Proxy traffic: totals, per UTC day, and the top 50 destination hosts with bytes down/up, connections and proxy (default or rule). ?days 1–31 (default 7). |
GET | /v1/me/bandwidth.csv | The same period as CSV: one row per day, session, host and proxy (day,session_id,host,proxy,bytes_down,bytes_up,connections). |
GET | /v1/me/sessions/<id>/bandwidth | One session's proxy traffic per destination host. |
GET | /v1/me/proxies | Your saved proxies with their last check (exit IP, country, response time). Passwords are masked; add and edit proxies in the dashboard. |
GET | /v1/me/proxy-rules | Your proxy-rule sets: default proxy and rules (hosts, proxy ids). |
GET | /v1/me/threads | Your live sessions with running time and deadline. |
DELETE | /v1/me/threads/{sessionId} | End one of your live sessions now. |
curl -s https://cdpfleet.com/v1/me/usage -H "x-api-key: $CDPFLEET_API_KEY"