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

Generated on 5 Nov 2026 from DoTs version v1.23.0

Usage

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
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
{
  "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 in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.