Retrieve
invitations.retrieve(strtoken, InvitationRetrieveParams**kwargs) -> InvitationRetrieveResponse
GET/invitations/{token}
View invitation details by token without consuming the token
Parameters
token: str
minLength1
maxLength500
x_client_request_id: Optional[str]
formatuuid
Returns
Retrieve
from keycardai_api import KeycardAPI
client = KeycardAPI()
invitation = client.invitations.retrieve(
token="token",
)
print(invitation.created_by_name){
"created_by_name": "created_by_name",
"email": "dev@stainless.com",
"expires_at": "2019-12-27T18:11:19.117Z",
"organization_name": "organization_name",
"role": "org_admin",
"status": "pending"
}Returns Examples
{
"created_by_name": "created_by_name",
"email": "dev@stainless.com",
"expires_at": "2019-12-27T18:11:19.117Z",
"organization_name": "organization_name",
"role": "org_admin",
"status": "pending"
}