Returns a list of projects.

GET /organization/projects

Query parameters

  • limit integer

    A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.

    Default value 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.

  • include_archived boolean

    If true returns all projects including those that have been archived. Archived projects are not included by default.

    Default value is false.

Responses

  • 200 application/json

    Projects listed successfully.

    Hide response attributes Show response attributes object
    • object string Required

      Value is list.

    • data array[object] Required

      Represents an individual project.

      Hide data attributes Show data attributes object
      • id string Required

        The identifier, which can be referenced in API endpoints

      • object string Required

        The object type, which is always organization.project

        Value is organization.project.

      • name string Required

        The name of the project. This appears in reporting.

      • created_at integer Required

        The Unix timestamp (in seconds) of when the project was created.

      • archived_at integer | null

        The Unix timestamp (in seconds) of when the project was archived or null.

      • status string Required

        active or archived

        Values are active or archived.

    • first_id string Required
    • last_id string Required
    • has_more boolean Required
GET /organization/projects
curl \
 --request GET 'https://api.openai.com/v1/organization/projects' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "object": "list",
  "data": [
    {
      "id": "string",
      "object": "organization.project",
      "name": "string",
      "created_at": 42,
      "archived_at": 42,
      "status": "active"
    }
  ],
  "first_id": "string",
  "last_id": "string",
  "has_more": true
}