/projects/auth/userCreate new auth userDeprecated. Use /projects/{project_id}/branches/{branch_id}/auth/users instead. Removal scheduled for March 1, 2026. The user will be created in your neon_auth.users_sync table and automatically propagated to your auth project, whether Neon-managed or provider-owned.
Request body
requiredapplication/json
auth_providerstringrequiredAuthentication provider integrated with this Neon Auth configuration. `better_auth` integrates with Better Auth (the current, recommended provider). `stack` integrates with Stack Auth (deprecated). `mock` is a simulated provider for local development and testing only.
emailstring · emailrequiredEmail address of the new user.
namestringDisplay name for the new user. When omitted, the created user has no display name.
project_idstringrequiredThe Neon project ID. Returned as `id` from `GET /projects`.
{
"auth_provider": "better_auth",
"email": "user@example.com",
"name": "string",
"project_id": "string"
}Responses
idstringrequiredID of newly created user
{
"id": "string"
}codestringrequiredmessagestringrequiredError message
request_idstringUnique identifier for the request, useful for debugging. You can set this value manually by including an `X-Request-ID` header in the request. If not provided, the value will be generated automatically.
{
"code": "",
"message": "string",
"request_id": "string"
}