Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation
Theme

Retrieve invite

$ openai admin:organization:invites retrieve
GET
/organization/invites/{invite_id}

Retrieves an invite.

Parameters
--invite-id: string

The ID of the invite to retrieve.

Returns
invite: object { id, created_at, email, 6 more }

Represents an individual invite to the organization.

id: string

The identifier, which can be referenced in API endpoints

created_at: number

The Unix timestamp (in seconds) of when the invite was sent.

email: string

The email address of the individual to whom the invite was sent

object: "organization.invite"

The object type, which is always organization.invite

projects: array of object { id, role }

The projects that were granted membership upon acceptance of the invite.

role: "owner" or "reader"

owner or reader

status: "accepted" or "expired" or "pending"

accepted,expired, or pending

accepted_at: optional number

The Unix timestamp (in seconds) of when the invite was accepted.

expires_at: optional number

The Unix timestamp (in seconds) of when the invite expires.

Retrieve invite

openai admin:organization:invites retrieve \
  --admin-api-key 'My Admin API Key' \
  --invite-id invite_id
Response example
{
    "object": "organization.invite",
    "id": "invite-abc",
    "email": "user@example.com",
    "role": "owner",
    "status": "accepted",
    "created_at": 1711471533,
    "expires_at": 1711471533,
    "accepted_at": 1711471533,
    "projects": []
}
Returns Examples
Response example
{
    "object": "organization.invite",
    "id": "invite-abc",
    "email": "user@example.com",
    "role": "owner",
    "status": "accepted",
    "created_at": 1711471533,
    "expires_at": 1711471533,
    "accepted_at": 1711471533,
    "projects": []
}