How can I create a staged user via the API?

I think that all you need to do is set the parameter staged to true when you create the user. Be sure to not set the active parameter to true when you create the user.

When the enable staged users site setting is checked, staged users are automatically created when Discourse receives an email from a user who does not have an existing account of the forum. I’m not sure why you would need to create a staged user via the API.