List invites
GEThttps:/api.openai.com/v1/organization/invites
Returns a list of invites in the organization.
Query parameters
limit
integer
Defaults: 20
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.after
string
A cursor for use in pagination.
after
is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
Response
A list of Invite objects.
Example request
1 curl https://api.openai.com/v1/organization/invites?after=invite-abc&limit=20 \2 -H "Authorization: Bearer $OPENAI_ADMIN_KEY" \3 -H "Content-Type: application/json"
Example response
1 {2 "object": "list",3 "data": [4 {5 "object": "organization.invite",6 "id": "invite-abc",7 "email": "user@example.com",8 "role": "owner",9 "status": "accepted",10 "invited_at": 1711471533,11 "expires_at": 1711471533,12 "accepted_at": 171147153313 }14 ],15 "first_id": "invite-abc",16 "last_id": "invite-abc",17 "has_more": false18 }
Built with