POST
/
organization
/
invites
curl --request POST \
  --url https://api.openai.com/v1/organization/invites \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "<string>",
  "role": "reader",
  "projects": [
    {
      "id": "<string>",
      "role": "member"
    }
  ]
}'
{
  "object": "organization.invite",
  "id": "<string>",
  "email": "<string>",
  "role": "owner",
  "status": "accepted",
  "invited_at": 123,
  "expires_at": 123,
  "accepted_at": 123,
  "projects": [
    {
      "id": "<string>",
      "role": "member"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

The invite request payload.

The body is of type object.

Response

200 - application/json

User invited successfully.

Represents an individual invite to the organization.