Storm docs logo
Search the docs.../
Explore Storm Products

Login

Endpoint used for user authentication in the system. Upon successful login, it returns a JWT token that should be used to authorize subsequent requests.

Request

PropertyValue
MethodPOST
URL/api/auth/login
Content-Typeapplication/json
AuthenticationNone
Request
Code iconbash
curl -X POST "{BASE_URL}/api/auth/login" \
  -H "Content-Type: application/json" \
  -d '{"key": "value"}'

Request Body

ParameterTypeRequiredDescription
usernamestringYesUser's username
passwordstringYesUser's password
Request Body
Code iconjson
{
  "username": "john.doe",
  "password": "securePassword123"
}

Response Body

ParameterTypeDescription
data.accessTokenstringJWT access token for authorizing subsequent requests
data.tokenTypestringToken type (always "Bearer")
data.expireDateintegerToken expiration date (Unix timestamp in ms)
data.remainingTimeintegerToken validity time remaining in milliseconds
data.usernamestringUsername of the authenticated user
data.messagestringMessage confirming successful authentication
meta.executionTimeintegerRequest processing time in milliseconds
meta.generatedAtintegerResponse generation timestamp (Unix timestamp in ms)
messagestringMain response status message
Successful Response (200)
Code iconjson
{
  "data": {
    "accessToken": "eyJhbGc...",
    "tokenType": "Bearer",
    "expireDate": 1763638078917,
    "remainingTime": 899999,
    "username": "john.doe",
    "message": "Authentication successful"
  },
  "meta": {
    "executionTime": 9,
    "generatedAt": 1763637178918
  },
  "message": "Authentication successful"
}

Error Response (4xx/5xx)

ParameterTypeDescription
messagestringHuman-readable error message
Error Response
Code iconjson
{
  "message": "Username or password is incorrect"
}

Notes

  • Token expires after 900 seconds (15 minutes).
  • Maximum 5 login attempts per minute per IP address.
  • Passwords must meet minimum security requirements.
  • Use HTTPS in production environments.
Support Needed?

Create a free ticket and our support team will provide you necessary assistance.

Blog
Support
About us
Patents
Term of use
Privacy policy
Contact
©2026 Storm Streaming Media. All Rights Reserved.