Usersv1Users
Invite regular user
Invite regular user to client application (requires Internal role + Create permission on users)
POST
/v1/users/inviteAuthorization
bearerAuth AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/users/invite" \ -H "Content-Type: application/json" \ -d '{ "email": "user@example.com" }'{
"user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
"email": "user@example.com",
"status": "pending_activation",
"invite_sent_at": "2019-08-24T14:15:22Z",
"invite_expires_at": "2019-08-24T14:15:22Z"
}{
"code": "users_m.invalid_user_input",
"message": "Invalid user input data"
}{
"code": "users_m.insufficient_permissions",
"message": "You do not have permission to perform this action"
}{
"code": "users_m.user_already_exists",
"message": "User with this email already exists"
}