Skip to main content

invites

Creates, updates, deletes, gets or lists a invites resource.

Overview

Nameinvites
TypeResource
Idopenai.invites.invites

Fields

NameDatatypeDescription
idstringThe identifier, which can be referenced in API endpoints
accepted_atintegerThe Unix timestamp (in seconds) of when the invite was accepted.
emailstringThe email address of the individual to whom the invite was sent
expires_atintegerThe Unix timestamp (in seconds) of when the invite expires.
invited_atintegerThe Unix timestamp (in seconds) of when the invite was sent.
objectstringThe object type, which is always organization.invite
rolestringowner or reader
statusstringaccepted,expired, or pending

Methods

NameAccessible byRequired ParamsDescription
list_invitesSELECT
retrieve_inviteSELECTinvite_id
delete_inviteDELETEinvite_id

SELECT examples

SELECT
id,
accepted_at,
email,
expires_at,
invited_at,
object,
role,
status
FROM openai.invites.invites
;

DELETE example

Deletes the specified invites resource.

/*+ delete */
DELETE FROM openai.invites.invites
WHERE invite_id = '{{ invite_id }}';