POST
/projects/{project_id}/branches/{branch_id}/auth/usersCreate new auth userCreates a new user in the Neon Auth user directory for the specified branch. The user is created in the neon_auth.users_sync table and can immediately authenticate using the branch's configured auth providers.
Parameters
project_idstringpathrequiredThe Neon project ID
branch_idstringpathrequiredThe Neon branch ID
Request body
requiredapplication/json
objectCreateBranchNeonAuthNewUserRequest
emailstring · emailrequiredEmail address of the new Neon Auth user to create.
namestringDisplay name for the new user. Optional. Pair with the required email field when creating a new user.
{
"email": "user@example.com",
"name": "string"
}Responses
objectNeonAuthCreateNewUserResponse
idstringrequiredID of newly created user
{
"id": "string"
}objectGeneralError
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"
}