Managing access tokens

Generate an access token

A username/password authorization endpoint to enable you to generate an access token.

Login

POST https://web.r0app.com/api/v1/login

Request Body

Name
Type
Description

user[email]*

String

Primary email address for the user.

user[password]*

String

Example request

curl https://web.r0app.com/api/v1/login \
    -X POST \
    -d 'user[email]=homersimpson@gmail.com' \
    -d 'user[password]=123456789'

Delete an access token

Deletes a given access token passed in the authorization header.

Delete an API token

DELETE https://web.r0app.com/api/v1/logout

Deletes an API token / revokes API access for the token provided in the header.

Headers

Name
Type
Description

Authorization

Example request

curl https://web.r0app.com/api/v1/logout \
    -H 'Authorization: Bearer <token>'

Last updated