Sample - OpenAI API
GET/organization/projects

List organization projects

Lists projects in an organization. Use limit and after to paginate the results, and set include_archived to include projects that are archived.

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

3 parameters
limitintegeroptional
The maximum number of project objects to return, from 1 to 100. Defaults to 20 when omitted.
Default:20
afterstringoptional
A cursor containing a project object ID that marks the starting position for the next page.
include_archivedbooleanoptional
Whether to include archived projects. Defaults to false when omitted.
Default:false

1 status code
200Returns a list object containing project data, the first and last project IDs, and a `has_more` value indicating whether additional results are available.
objectstringrequired
Allowed:list
dataarray<object>required
first_idstringoptional
last_idstringoptional
has_morebooleanrequired

Error handling

limit must be between 1 and 100 when provided and defaults to 20 when omitted. Use after as a project object ID to continue pagination, and include_archived defaults to false when omitted.