Create
POST/organizations/{organization_id}/invitations
Create an invitation to join an organization
Path Parameters
organization_id: string
Organization ID or label identifier
minLength1
maxLength255
Header Parameters
"X-Client-Request-ID": optional string
formatuuid
Body ParametersJSON
email: string
Email address to invite
formatemail
Returns
Create
curl https://api.keycard.ai/organizations/$ORGANIZATION_ID/invitations \
-H 'Content-Type: application/json' \
-d '{
"email": "dev@stainless.com",
"role": "org_admin"
}'{
"id": "ab3def8hij2klm9opq5rst7uvw",
"created_at": "2019-12-27T18:11:19.117Z",
"created_by": "ab3def8hij2klm9opq5rst7uvw",
"email": "dev@stainless.com",
"expires_at": "2019-12-27T18:11:19.117Z",
"organization_id": "ab3def8hij2klm9opq5rst7uvw",
"role": "org_admin",
"status": "pending",
"updated_at": "2019-12-27T18:11:19.117Z",
"permissions": {
"organizations": {
"read": true,
"update": true
},
"users": {
"read": true,
"list": true
}
}
}Returns Examples
{
"id": "ab3def8hij2klm9opq5rst7uvw",
"created_at": "2019-12-27T18:11:19.117Z",
"created_by": "ab3def8hij2klm9opq5rst7uvw",
"email": "dev@stainless.com",
"expires_at": "2019-12-27T18:11:19.117Z",
"organization_id": "ab3def8hij2klm9opq5rst7uvw",
"role": "org_admin",
"status": "pending",
"updated_at": "2019-12-27T18:11:19.117Z",
"permissions": {
"organizations": {
"read": true,
"update": true
},
"users": {
"read": true,
"list": true
}
}
}