간편한 통합
어떤 언어로든 HTTPS를 통해 REST API를 직접 호출하세요. API 문서에 설명된 대로 로그인하고, 계정 정보를 읽고, 서버를 다룰 수 있습니다.
- RESTful API 디자인
- 종합 문서화
example.ts
// Plain HTTPS calls to the REST API
const API = 'https://api.orbai.world/api/v1';
// Sign in and receive an access token
const login = await fetch(`${API}/auth/login`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
email: 'user@example.com',
password: 'your_password',
platform: 'web', // a script sign-in, not a VPN device
}),
});
// Accounts with two-factor sign-in get requires_2fa here instead of tokens.
const { data } = await login.json();
// Read the signed-in account
const me = await fetch(`${API}/users/me`, {
headers: { Authorization: `Bearer ${data.tokens.access_token}` },
});
console.log(await me.json());API 기능
인증
이메일 또는 소셜 로그인을 통한 토큰 로그인
레이트 리미팅
제한이 적용됩니다. 요청 한도 문서를 참고하세요.
Hylon API 키
API를 통해 Hylon API 키를 만들고, 조회하고, 폐기할 수 있습니다.
WebSocket
WebSocket으로 실시간 알림과 채팅을 받을 수 있습니다.
API 엔드포인트
POST
/api/v1/auth/register사용자 계정 생성GET
/api/v1/users/me사용자 상세 정보 조회GET
/api/v1/subscriptions/current구독 조회GET
/api/v1/serversVPN 서버 목록 조회GET
/api/v1/vpn/connection활성 연결 조회GET
/api/v1/vpn/usage대역폭 사용량 조회