HTTP API

Base URL https://addtothese.com/api/v1. Autentikasi dengan Authorization: Bearer att_... (token API) atau sesi browser ditambah X-CSRF-Token. Semua body berformat JSON; error berbentuk {"error": "...", "code": "..."}.

MetodePathKegunaan
POST/auth/register{email, password, name}
POST/auth/login{email, password}; dapat membalas {mfa_required: true}
POST/auth/totp/verify{code}
POST/auth/logout
POST/auth/password/forgot | /auth/password/reset{email} | {token, password}
GET/auth/oauth/{google|github}memulai OAuth
GET/PATCH/meakun; PATCH {name}
POST/me/totp/setup | enable | disabledua faktor
POST/me/password{current_password, new_password}
GET/POST/DELETE/tokens[/{id}]token API; POST {name} mengembalikan secret sekali saja
GET/POST/DELETE/endpoints[/{id}]POST {subdomain, protocol}
POST/endpoints/ephemeral{protocol} nama acak
GET/POST/DELETE/domains[/{id}]POST {domain, endpoint_id}
POST/domains/{id}/verifypemeriksaan DNS
POST/agent-token{endpoints: []} mengembalikan {token, upstream_url, endpoints, expires_at}
GET/usageperiode saat ini dan riwayat
GET/tunnelsagen yang terhubung
GET/billing/pricespaket dan harga Stripe
POST/billing/checkout | /billing/portal{price} mengembalikan {url}