Accept
invitations.accept(strtoken, InvitationAcceptParams**kwargs) -> InvitationAcceptResponse
POST/invitations/{token}/accept
Accept and consume an invitation token to join the organization
Parameters
token: str
minLength1
maxLength500
x_client_request_id: Optional[str]
formatuuid
Returns
Accept
from keycardai_api import KeycardAPI
client = KeycardAPI()
response = client.invitations.accept(
token="token",
)
print(response.organization_id){
"organization_id": "ab3def8hij2klm9opq5rst7uvw",
"organization_name": "organization_name",
"success": true,
"user_id": "ab3def8hij2klm9opq5rst7uvw"
}Returns Examples
{
"organization_id": "ab3def8hij2klm9opq5rst7uvw",
"organization_name": "organization_name",
"success": true,
"user_id": "ab3def8hij2klm9opq5rst7uvw"
}