Create user using API (curl command)

I’m trying to create a user by using the following command

curl -v -X POST "my_domain.com/admin/users.json" \
     -H "Content-Type: application/json" \
     -H "Api-Key: api_key" \
     -H "Api-Username: admin_account" \
     -d '{
           "name": "dave",
           "email": "dave@example.com",
           "username": "dave",
           "password": "daveIsAwesome",
           "active": true,
           "approved": true,
           "email_confirmed": true
         }'

Results in page not found error 404 error.

  <h1 class="title">Oops! That page doesn’t exist or is private.</h1>

The API key is correct, username as well and it’s admin (with Global permissions). The API key works cause I’ve tried it on listing users and their backend details and worked.

What am can be wrong with my curl?

https://docs.discourse.org/#tag/Users/operation/createUser

I think you may send the request to my_domain.com/users.json instead of my_domain.com/admin/users.json