HTTP API

기본 URL은 https://addtothese.com/api/v1입니다. Authorization: Bearer att_...(API 토큰) 또는 브라우저 세션과 X-CSRF-Token으로 인증합니다. 모든 본문은 JSON이며, 오류는 {"error": "...", "code": "..."} 형식입니다.

메서드경로용도
POST/auth/register{email, password, name}
POST/auth/login{email, password}; {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}OAuth 시작
GET/PATCH/me계정; PATCH {name}
POST/me/totp/setup | enable | disable2단계 인증
POST/me/password{current_password, new_password}
GET/POST/DELETE/tokens[/{id}]API 토큰; POST {name}은 비밀 값을 한 번만 반환
GET/POST/DELETE/endpoints[/{id}]POST {subdomain, protocol}
POST/endpoints/ephemeral{protocol} 랜덤 이름
GET/POST/DELETE/domains[/{id}]POST {domain, endpoint_id}
POST/domains/{id}/verifyDNS 확인
POST/agent-token{endpoints: []}는 {token, upstream_url, endpoints, expires_at}를 반환
GET/usage현재 기간 및 이력
GET/tunnels연결된 에이전트
GET/billing/prices플랜 및 Stripe 가격
POST/billing/checkout | /billing/portal{price}는 {url}을 반환