Skip to content

Login with password

Request

Authenticates a user using their email and password.

Bodyapplication/jsonrequired
emailstring, (email)required
Example:"jane.doe@example.com"
passwordstring, (password)required
Example:"supersecret123"
curl -i -X POST \
  https://docs.speedysticks.com/_mock/openapi/login-password \
  -H 'Content-Type: application/json' \
  -d '{
    "email": "jane.doe@example.com",
    "password": "supersecret123"
  }'

Responses

Authenticated successfully.

Bodyapplication/json
tokenstring

JWT access token.

Example:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
refreshTokenstring

Token used to obtain a new access token.

Example:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
streamTokenstring

Token for stream-based services.

Example:"st_live_abc123xyz"
Response
{ "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "streamToken": "st_live_abc123xyz" }