Overview
Authentication
How to authenticate with the StartMyVPN API.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
How to authenticate with the StartMyVPN API.
POST /v1/auth/login
Content-Type: application/json
{
"email": "user@example.com",
"password": "your_password"
}
{
"success": true,
"data": {
"token": "1|abc123...",
"user": {
"id": 1,
"name": "Jane Smith",
"email": "user@example.com"
}
}
}
{
"success": false,
"message": "Invalid credentials."
}
GET /v1/user
Authorization: Bearer 1|abc123...
POST /v1/auth/logout
Authorization: Bearer {token}
POST /v1/auth/logout-all
Authorization: Bearer {token}
POST /v1/auth/resend-verification
Authorization: Bearer {token}
POST /v1/auth/verify-email
Content-Type: application/json
{
"token": "verification_token_from_email"
}
POST /v1/auth/forgot-password
Content-Type: application/json
{
"email": "user@example.com"
}
POST /v1/auth/reset-password
Content-Type: application/json
{
"token": "reset_token_from_email",
"email": "user@example.com",
"password": "new_password",
"password_confirmation": "new_password"
}