---
title: dots.v1.signals.agents.byEnvironment_id().sessions.get()
description: List Sessions for an Environment
product: Reference
url: https://docs.digitalocean.com/reference/dots/reference/signals/signals-list-agent-sessions/
last_updated: "2026-11-24"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# dots.v1.signals.agents.byEnvironment_id().sessions.get()

Generated on 24 Nov 2026 from DoTs version [`v1.26.0`](https://github.com/digitalocean/dots/releases/tag/v1.26.0)

## Usage

```typescript
client.v1.signals.agents.byEnvironment_id(environment_id).sessions.get(requestConfiguration?: RequestConfiguration<SessionsRequestBuilderGetQueryParameters>): Promise<undefined | SessionsGetResponse>
```

## Description

To list signals sessions for a specific environment, send a GET request to `/v1/signals/agents/{environment_id}/sessions`. Results are paginated using cursor-based pagination with `limit` and `after` parameters.

## Parameters

### Path Parameters

`environment_id` string required

Example: `019fb3d2-8a56-72cc-8bf9-9d21510b2a99`

A unique identifier for an environment. For Harness Runtime, this is the Environment Config ID. Formerly named agent_id.

### Query Parameters

`limit` integer optional

Example: `20`

Maximum number of items to return per page.

Default: `20`

Min: `1`

Max: `100`

`after` string optional

Example: `eyJ0ZWFtX2lkIjozOTQ0OTk0Nn0=`

An opaque cursor string returned from a previous page. Pass this value to retrieve the next page of results.

`startTime` string optional

Example: `2026-09-01T00:00:00Z`

Filter results to those occurring at or after this timestamp (RFC 3339).

`endTime` string optional

Example: `2026-10-01T00:00:00Z`

Filter results to those occurring at or before this timestamp (RFC 3339).

`signalType` string optional

Example: `DisengagementEscalation`

Filter results by signal type. Use the export options endpoint to list available signal types.

## Request Sample

## Show Request Sample

```typescript
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.v1.signals.agents
    .byEnvironment_id("019fb3d2-8a56-72cc-8bf9-9d21510b2a99").sessions.get();
```

## Response Example

## Show Response Example

```json
{
  "edges": [
    {
      "cursor": "eyJ0ZWFtX2lkIjozOTQ0OTk0Nn0=",
      "node": {
        "session_id": "01a0f3d5-d5f1-798a-9352-2cd8f8b81e78",
        "total_turns": 5,
        "started_at": "2026-09-15T14:30:00Z",
        "duration_seconds": 120.5,
        "signal_count": 3
      }
    }
  ],
  "page_info": {
    "has_next_page": false
  }
}
```

## More Information

See [`/v1/signals/agents/{environment_id}/sessions`](https://docs.digitalocean.com/reference/api/reference/signals/index.html.md#signals_list_agent_sessions) in the API reference for additional detail on responses, headers, parameters, and more.