Create a new user.

POST
https://demo.azuracast.com/api/admin/users

Body

application/json
emailstring
Example
demo@azuracast.com
auth_passwordstring
Example
namestring | null
Example
Demo Account
localestring | null
Example
en_US
show_24_hour_timeboolean | null
Example
true
two_factor_secretstring | null
Example
A1B2C3D4
created_atinteger
Example
1609480800
updated_atinteger
Example
1609480800
rolesArray<any>

Response

Success

Response fields application/json
idintegerrequiredread only
emailstring
Example
demo@azuracast.com
auth_passwordstring
Example
namestring | null
Example
Demo Account
localestring | null
Example
en_US
show_24_hour_timeboolean | null
Example
true
two_factor_secretstring | null
Example
A1B2C3D4
created_atinteger
Example
1609480800
updated_atinteger
Example
1609480800
rolesArray<any>
is_mebooleanrequired

Whether this user record represents the currently logged-in user.

Example
true
403ForbiddenApi_Error

Access denied.

Response fields application/json
codeintegerrequired

The numeric code of the error.

Example
500
typestringrequired

The programmatic class of error.

Example
NotLoggedInException
messagestringrequired

The text description of the error.

Example
Error description.
formatted_messagestring | nullrequired

The HTML-formatted text description of the error.

Example
<b>Error description.</b><br>Detailed error text.
extra_dataArray<any>required

Stack traces and other supplemental data.

successbooleanrequired

Used for API calls that expect an \Entity\Api\Status type response.

Example
false
500Internal Server ErrorApi_Error

A generic exception has occurred.

Response fields application/json
codeintegerrequired

The numeric code of the error.

Example
500
typestringrequired

The programmatic class of error.

Example
NotLoggedInException
messagestringrequired

The text description of the error.

Example
Error description.
formatted_messagestring | nullrequired

The HTML-formatted text description of the error.

Example
<b>Error description.</b><br>Detailed error text.
extra_dataArray<any>required

Stack traces and other supplemental data.

successbooleanrequired

Used for API calls that expect an \Entity\Api\Status type response.

Example
false

Authorization

ApiKeyapiKey in header