Skip to content

Login with two factor authentication code

Request

Authenticates a user using their email and the one-time code they were sent.

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

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" }