Create User with Suspended State and Activate them with custom URL

Quoting @formerstaff:

Currently the API does not support setting the active flag during registration. However, if you’re using the confirmation code for registration, then this effectively makes the user inactive until they have confirmed their code. If the user tries to login without having confirmed their code they will get an error indicating they have not yet confirmed.

I also recommend checking out these other forum threads for details on manipulating the user registration process: