Error Inviting User - Send a User an Invite over Email

I am attempting to use the "Send a User an Invite over Email" functionality, as seen in the API docs.

This doesn't seem to ever work and I get the following error.

{
"code": 500,
"error_code": "unexpected_failure",
"msg": "Database error creating new user",
"error_id": "ID HERE"
}

Is there something weird about this functionality, or any gotchas which aren't quite clear from the docs?
image.png
Was this page helpful?