Get invitation
Gets an invitation.
Gets an invitation.
bearerAuthorizationBearer <token>An access token, or an API key.
organization*stringThe organization's ID.
^org_[0-7][0-9a-hjkmnp-tv-z]{25}$invitation*stringThe invitation's ID.
^inv_[0-7][0-9a-hjkmnp-tv-z]{25}$OK
application/json- response
acceptor*stringWho accepted the invitation, users/{user_id}; empty until accepted.
createTime*stringWhen the invitation was created.
date-timeemail*stringThe invited email address.
expireTime*stringWhen the invitation expires unless accepted.
date-timegrants*array<>Roles the invitee receives on accepting.
inviter*stringWho sent the invitation, users/{user_id}.
kind*stringHow the invitee will belong to the organization: a MEMBER sees its directory and is included in grants to all members; a GUEST sees only what they are granted.
"MEMBER""GUEST"name*stringResource name, organizations/{organization_id}/invitations/{invitation_id}.
state*stringLifecycle state: PENDING, waiting for the invitee; ACCEPTED, the invitee joined; REVOKED before it was accepted; EXPIRED, not accepted in time, as invitations last 7 days.
"PENDING""ACCEPTED""REVOKED""EXPIRED"updateTime*stringWhen the invitation last changed.
date-timecurl -X GET 'https://api.kosem.ai/v1/organizations/string/invitations/string'{
"acceptor": "string",
"createTime": "2019-08-24T14:15:22Z",
"email": "string",
"expireTime": "2019-08-24T14:15:22Z",
"grants": [
{
"resource": "string",
"role": "string"
}
],
"inviter": "string",
"kind": "MEMBER",
"name": "string",
"state": "PENDING",
"updateTime": "2019-08-24T14:15:22Z"
}