Skip to main content

AuthN | C# SDK | Invite Endpoints

Invite Endpoints

Invite User

User.Invite(UserInviteRequest)

Send an invitation to a user.

required parameters

UserInviteRequest

Response Object

Task<Response<UserInviteResult>>

Response<UserInviteResult>

var request = new UserInviteRequest
    .Builder(
        "admin@pangea.cloud",
        "joe.user@pangea.cloud",
        "https://www.myserver.com/callback",
        "pcb_zurr3lkcwdp5keq73htsfpcii5k4zgm7")
    .Build();

var response = await client.User.Invite(request);

List Invites

UserInvite.List(UserInviteListRequest)

Look up active invites for the userpool.

required parameters

UserInviteListRequest

Response Object

Task<Response<UserInviteListResult>>

Response<UserInviteListResult>

var request = new UserInviteListRequest
    .Builder()
    .Build();

var response = await client.User.Invites.List(request);

Delete Invite

UserInvite.Delete(string)

Delete a user invitation.

required parameters

string

A one-time ticket

Response Object

Task<Response<UserInviteDeleteResult>>

Response<UserInviteDeleteResult>

await client.User.Invites.Delete("pmc_wuk7tvtpswyjtlsx52b7yyi2l7zotv4a");