Skip to main content
GET
/
v1
/
environments
List environments
curl --request GET \
  --url https://api.app.chainloop.dev/v1/environments \
  --header 'Authorization: Bearer <token>'
{
  "pagination": {
    "total_count": 2,
    "page": 5,
    "total_pages": 7,
    "page_size": 5
  },
  "environments": [
    {
      "updated_at": "2000-01-23T04:56:07.000Z",
      "organization_id": "organization_id",
      "name": "name",
      "description": "description",
      "created_at": "2000-01-23T04:56:07.000Z",
      "id": "id",
      "type": "ENVIRONMENT_TYPE_UNSPECIFIED"
    },
    {
      "updated_at": "2000-01-23T04:56:07.000Z",
      "organization_id": "organization_id",
      "name": "name",
      "description": "description",
      "created_at": "2000-01-23T04:56:07.000Z",
      "id": "id",
      "type": "ENVIRONMENT_TYPE_UNSPECIFIED"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.chainloop.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer token for authentication

Query Parameters

pagination.page
integer<int32>

The (zero-based) offset of the first item returned in the collection.

pagination.page_size
integer<int32>

The maximum number of entries to return. If the value exceeds the maximum, then the maximum value will be used.

query
string

Query string to search across environment name and description (case-insensitive)

Response

A successful response.

environments
Environment represents an environment entity · object[]
pagination
OffsetPaginationResponse is used to return the pagination information · object
Example:
{
"total_count": 2,
"page": 5,
"total_pages": 7,
"page_size": 5
}