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": "..."}.
| Method | Path | Manufa |
|---|---|---|
| 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 | /me | asusu; PATCH {name} |
| POST | /me/totp/setup | enable | disable | tantancewa 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}/verify | binciken DNS |
| POST | /agent-token | {endpoints: []} na dawo da {token, upstream_url, endpoints, expires_at} |
| GET | /usage | lokacin yanzu da tarihi |
| GET | /tunnels | agents da aka haɗa |
| GET | /billing/prices | tsare-tsare da farashin Stripe |
| POST | /billing/checkout | /billing/portal | {price} na dawo da {url} |