Skip to main content

AuthN | Python SDK | Invite Endpoints

Invite Endpoints

Invite User

authn.user.invite(inviter, email, callback, state)

Send an invitation to a user.

str

An email address

str

An email address

str

A login callback URI

str

State tracking string for login callbacks

A PangeaResponse with a pending user invitation in the response.result field. Available response fields can be found in our API Documentation.

response = authn.user.invite(
    inviter="admin@email.com",
    email="joe.user@email.com",
    callback="/callback",
    state="pcb_zurr3lkcwdp5keq73htsfpcii5k4zgm7"
)

Delete Invite

authn.user.invites.delete(id)

Delete a user invitation.

str

A one-time ticket

A PangeaResponse with an empty object in the response.result field.

authn.user.invites.delete(
    id="pmc_wuk7tvtpswyjtlsx52b7yyi2l7zotv4a",
)

List Invites

authn.user.invites.list(filter, last, order, order_by, size)

Look up active invites for the userpool.

dict
str

Reflected value from a previous response to obtain the next page of results.

m.ItemOrder

Order results asc(ending) or desc(ending).

m.UserInviterOrderBy

Which field to order results by.

int

Maximum results to include in the response. Minimum: 1.

A PangeaResponse with a list of pending user invitations in the response.result field. Available response fields can be found in our API Documentation.

response = authn.user.invites.list()