Pass the token as a Bearer header on every protected request:
GET /v1/userAuthorization: Bearer 1|abc123...
Token management
Tokens are scoped to a single device. Each login call creates a new token.Logout (current device):
POST /v1/auth/logoutAuthorization: Bearer {token}
Logout all devices:
POST /v1/auth/logout-allAuthorization: Bearer {token}
Email verification
If email verification is enabled on your StartMyVPN installation, API users must verify their email before accessing protected endpoints.Resend verification email:
POST /v1/auth/resend-verificationAuthorization: Bearer {token}
Verify email with code:
POST /v1/auth/verify-emailContent-Type: application/json{ "token": "verification_token_from_email"}
Password reset
Request reset (sends email):
POST /v1/auth/forgot-passwordContent-Type: application/json{ "email": "user@example.com"}