Create a user by email
Creates a user with the given email if one doesn't already exist. If a user with that email already exists, returns it unchanged. Requires an admin user.
POST
/api/v1/admin/usersAuthorization
BearerAuth AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/v1/admin/users" \ -H "Content-Type: application/json" \ -d '{ "email": "user@example.com", "name": "string" }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "email": "string", "is_active": true, "is_admin": true, "created_at": "2019-08-24T14:15:22Z", "wallet_credits": "string", "created": true}