Sample - OpenAI API
GET/organization/users

List organization users

Lists all users in the organization. Use limit to control page size, after to continue from a previous page, and emails to filter results by email address. Results include pagination metadata and whether more users are available.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

3 parameters
limitintegeroptional
Maximum number of users to return, from 1 to 100. Defaults to 20 when omitted.
Default:20
afterstringoptional
Cursor identifying the object after which to continue listing users.
emailsarray<string>optional
Array of email addresses used to filter the users returned.

1 status code
200Returns a list object containing user records, the first and last object identifiers, and a `has_more` flag indicating whether additional users are available.
objectstringrequired
Allowed:list
dataarray<object>required
first_idstringoptional
last_idstringoptional
has_morebooleanrequired

Error handling

limit must be between 1 and 100 and defaults to 20 when omitted. Use the after value from the previous page to retrieve the next page, and provide emails as an array of email addresses when filtering.