Yurba Docs
Yurba Documentation

Get started

Accounts

Users

Relationships

Dialogs (Messages)

Tracks (MuseBase)

Photos

Posts

Comments

Safety

Other

Yurba CDN (cdn.yurba.one)

POST /login

Authorizes the user, returns the ID and token.

Request headers:

"Content-Type: application/json"

Request body:

{ email: string, password: string }

Response:

{ ok: int, id: int, token: string }

Example:

{ ok: 1, id: 1, token: "y.y8ZghPXy6wn2nF55nQ7YCPT1iQb4pkQl" }

Errors:

invalid_user: your user is missing from the database or cannot be read

too_many_attempts: too many incorrect login attempts, no more than 5 times per 5 minutes

incorrect_password: incorrect user password