Accept
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
import os
from keycardai_api import KeycardAPI
client = KeycardAPI(
api_key=os.environ.get("KEYCARD_API_API_KEY"), # This is the default and can be omitted
)
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"
}