Authentication

Login to your account

Authenticate and receive a JWT token. Use the token as Authorization: Bearer <token> for subsequent requests, or generate a persistent API key in Settings.

post/api/v1/auth/login

Request

  • Base URL: https://virtualsms.io
  • URL: https://virtualsms.io/api/v1/auth/login
  • Auth: none required

Request body

emailstring email required
passwordstring required

Example request

{
  "email": "user@example.com",
  "password": "secure123"
}

Response

Login successful

tokenstring

JWT bearer token

user_idstring uuid
expires_atstring date-time

Example response

{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "user_id": "550e8400-e29b-41d4-a716-446655440000",
  "expires_at": "2026-03-04T12:00:00Z"
}

Changes

No recorded changes to this operation across all 1 revision of this API.