Create an invite code for a user
POST/v2/users/:userId/invite_code
Create an invite code for a user to initialize their first authentication method (password, passkeys, IdP) depending on the organization's available methods. If an invite code has been created previously, it's url template and application name will be used as defaults for the new code. The new code will overwrite the previous one and make it invalid.
Request​
Responses​
- 200
- 400
- 401
- 403
- 404
- default
OK
The request is malformed.
Returned when the user is not authenticated.
Returned when the user does not have permission to access the resource.
User ID does not exist.
An unexpected error response.