Members
(route) POST /v1/oauth/token
- Source:
Route:
Method | Path |
---|---|
POST | /v1/oauth/token |
OAuth endpoint. Allows to exchange refresh token on a new pair of tokens.
Body Parameters:
Name | Type | Description |
---|---|---|
id | string | Id of user |
refresh_token | string | Can be retrieved from sign up |
Response:
Name | Type | Description |
---|---|---|
token_type | string | Always 'bearer' |
access_token | string | OAuth access token, used to authenticate |
expires_in | number | Time to access_token expire, in seconds |
refresh_token | string | OAuth refresh token, used to renew access token |
(route) POST /v1/users
- Source:
Route:
Method | Path |
---|---|
POST | /v1/users |
Register new user.
Response:
Name | Type | Description |
---|---|---|
user | object | |
user.id | string | User identifier |
user.name | string | User name |
user.updated_at | string | Date string of the last update |
user.created_at | string | Date string of the registration |
token | object | |
token.token_type | string | Always 'bearer' |
token.access_token | string | OAuth access token, used to authenticate |
token.expires_in | string | Time to access_token expire, in seconds |
token.refresh_token | string | OAuth refresh token, used to renew access token |