Create invite
POST/organization/invites
Create an invite for a user to the organization. The invite must be accepted by the user before they have access to the organization.
Body ParametersJSON
email: string
Send an email to this address
Returns
Create invite
curl https://api.openai.com/v1/organization/invites \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-d '{
"email": "email",
"role": "reader"
}'{
"id": "id",
"email": "email",
"expires_at": 0,
"invited_at": 0,
"object": "organization.invite",
"role": "owner",
"status": "accepted",
"accepted_at": 0,
"projects": [
{
"id": "id",
"role": "member"
}
]
}Returns Examples
{
"id": "id",
"email": "email",
"expires_at": 0,
"invited_at": 0,
"object": "organization.invite",
"role": "owner",
"status": "accepted",
"accepted_at": 0,
"projects": [
{
"id": "id",
"role": "member"
}
]
}