Skip to main content

AuthN | Java SDK | Invite Endpoints

Invite Endpoints

Invite User

invite(UserInviteRequest request)

Send an invitation to a user.

required parameters

UserInviteRequest

Response Object

UserInviteResponse

UserInviteResponse

 UserInviteRequest request = new UserInviteRequest
 	.Builder(
 		"admin@email.com",
 		"joe.user@email.com",
 		"https://www.myserver.com/callback",
 		"pcb_zurr3lkcwdp5keq73htsfpcii5k4zgm7")
 	.build();

 UserInviteResponse response = client.user().invite(request);

List Invites

list(UserInviteListRequest request)

Look up active invites for the userpool.

required parameters

UserInviteListRequest

Response Object

UserInviteListResponse

UserInviteListResponse

 UserInviteListRequest request =
 	new UserInviteListRequest.Builder().build();

 UserInviteListResponse response =
 	client.user().invite().list(request);

Delete Invite

delete(String id)

Delete a user invitation.

required parameters

String

A one-time ticket

Response Object

UserInviteDeleteResponse

UserInviteDeleteResponse

 client.user().invite().delete("pmc_wuk7tvtpswyjtlsx52b7yyi2l7zotv4a");