Sample - OpenAI API
GET/organization/projects/{project_id}/users

List project users

Lists the users associated with a project. Use limit and the after cursor to control the page size and retrieve subsequent pages of project users.

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

3 parameters
project_idstringrequired
The unique identifier of the project whose users to retrieve.
limitintegeroptional
The number of project users to return. The documented range is 1 through 100, and the value defaults to 20 when omitted.
Default:20
afterstringoptional
The ID of the last user in the previous page, used to retrieve the next page.

2 status codes
200Returns a paginated list of project users with the user data, pagination identifiers, and a `has_more` indicator.
objectstringrequired
dataarray<object>required
first_idstringoptional
last_idstringoptional
has_morebooleanrequired
400Returned when the project is archived.
errorobjectrequired

Error handling

A 400 is returned when the project is archived. project_id must identify the project to inspect, and limit defaults to 20 when omitted; pass the after cursor from the previous response to continue pagination.