User Endpoints
Get a User
GET /api/user/<auth0_id>
Returns the user for the given auth0_id.
Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Response
{
"id": 8,
"auth0_id": "auth0|663853106fa7baf42014492e",
"username": "user@example.com",
"email": "user@example.com",
"lang": "en",
"max_api_calls": 47
}Create a new user
POST /api/user
Creates a new user object.
Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Body
Name
Type
Description
auth0_id
string
Id generated by auth0
username
string
Username of the auth0 user
email
string
Email of the auth0 user
lang
string
Language setting for the user
Response
Update a user
PUT /api/user/<auth0_id>
Updates the user.
Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Body
Name
Type
Description
auth0_id
string
Id generated by auth0
username
string
Username of the auth0 user
email
string
Email of the auth0 user
lang
string
Language setting for the user
Response
Last updated