Authentication
All API calls to Appmixer must include the Authorization
header set to Bearer ACCESS_TOKEN
.
Sign-in User
POST
https://api.appmixer.com/user/auth
Sign-in a user with credentials and get their access token.
curl -XPOST "https://api.appmixer.com/user/auth" -H "Content-type: application/json" -d '{ "username": "abc@example.com", "password": "abc321" }'
Request Body
Name | Type | Description |
---|---|---|
password* | string | Password. |
username* | string | Username, has to have an email format. |
Create User
POST
https://api.appmixer.com/user
Create user. By default, this endpoint is open (does not require authentication). This can be changed by setting the API_USER_CREATE_SCOPE system configuration. If you set the value of API_USER_CREATE_SCOPE to for example admin
, then an admin token will be required to call this API.
curl -XPOST "https://api.appmixer.com/user" -H "Content-type: application/json" -d '{ "username": "abc@example.com", "email": "abc@example.com", "password": "abc321" }'
Request Body
Name | Type | Description |
---|---|---|
password* | string | Password. |
string | Email address. | |
username | string | Email address. |
Get User Information
GET
https://api.appmixer.com/user
Get user information.
curl "https://api.appmixer.com/user" -H "Authorization: Bearer [ACCESS_TOKEN]"
Last updated