HTTP API

Base URL https://addtothese.com/api/v1. Tantance kanka da Authorization: Bearer att_... (API token) ko zaman browser tare da X-CSRF-Token. Duk jikin buƙatu JSON ne; kurakurai su ne {"error": "...", "code": "..."}.

MethodPathManufa
POST/auth/register{email, password, name}
POST/auth/login{email, password}; zai iya amsa {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}yana fara OAuth
GET/PATCH/measusu; PATCH {name}
POST/me/totp/setup | enable | disabletantancewa ta matakai biyu
POST/me/password{current_password, new_password}
GET/POST/DELETE/tokens[/{id}]API tokens; POST {name} na dawo da sirrin sau ɗaya
GET/POST/DELETE/endpoints[/{id}]POST {subdomain, protocol}
POST/endpoints/ephemeral{protocol} suna na bazuwar
GET/POST/DELETE/domains[/{id}]POST {domain, endpoint_id}
POST/domains/{id}/verifybinciken DNS
POST/agent-token{endpoints: []} na dawo da {token, upstream_url, endpoints, expires_at}
GET/usagelokacin yanzu da tarihi
GET/tunnelsagents da aka haɗa
GET/billing/pricestsare-tsare da farashin Stripe
POST/billing/checkout | /billing/portal{price} na dawo da {url}