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
Required
The invite request payload.
-
Send an email to this address
-
owner
orreader
Values are
reader
orowner
. -
An array of projects to which membership is granted at the same time the org invite is accepted. If omitted, the user will be invited to the default project for compatibility with legacy behavior.
POST
/organization/invites
curl \
--request POST 'https://api.openai.com/v1/organization/invites' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"email":"string","role":"reader","projects":[{"id":"string","role":"member"}]}'
Request examples
{
"email": "string",
"role": "reader",
"projects": [
{
"id": "string",
"role": "member"
}
]
}
Response examples (200)
{
"object": "organization.invite",
"id": "string",
"email": "string",
"role": "owner",
"status": "accepted",
"invited_at": 42,
"expires_at": 42,
"accepted_at": 42,
"projects": [
{
"id": "string",
"role": "member"
}
]
}