Skip to content

Create a new admin or staff account

POST
/admin/v1/users
curl --request POST \
--url https://your-store.example.com/admin/v1/users \
--header 'Content-Type: application/json' \
--data '{ "email": "hello@example.com", "name": "example", "role": "admin", "password": "example" }'
Media type application/json
object
email
required
string format: email
<= 320 characters /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/
name
required
string
>= 1 characters <= 255 characters
role
required
string
Allowed values: admin staff
password
required
string
>= 12 characters <= 1024 characters