While you can perform some API actions as a guest, in many cases you will want to authenticate users.

Object
"user": {
"email": "",
"password": "xyz789"

Logging In
To login a user send a POST request to the sign_in path.

Sample Curl Request
curl -H "Content-Type: application/json" \ \
-d '{"user":{"email":"","password":"xyz789"}}'

Sample Response
"user": {

Upon a successful login, an authentication_token is returned, which can be used to make authenticated requests. For example, to request the list of videos as this user, you could do:


The authentication_token expires after 30 minutes of inactivity by the user, after which they will need to sign in again to get a new token.

Logging Out
To logout a user send a DELETE request to the sign_out path.