dots.v1.signals.exports.post()

Generated on 5 Nov 2026 from DoTs version v1.23.0

Usage

client.v1.signals.exports.post(body: Create_export_request, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | Export_job>

Description

To create a new signals data export, send a POST request to /v1/signals/exports. To export one Harness Runtime environment, include its environment_id (type defaults to agent). Deprecated agent_id is still accepted. To export the team’s Serverless Inference Signals conversations, set type to inference and omit environment_id and agent_id. You may optionally filter the export by signal_type, session_ids, start_time, and end_time. Use the export options endpoint to discover available signal types.

The export job runs asynchronously. Poll the get export endpoint to check its status. When complete, use the download endpoint to retrieve a pre-signed URL.

Parameters

type string optional

The scope of the export. agent exports Signals conversations for one Harness Runtime environment and requires environment_id (or deprecated agent_id). inference exports Serverless Inference Signals conversations for the whole team (team-wide; omit environment_id and agent_id). Defaults to agent when environment_id or agent_id is provided and to inference when both are omitted.

One of: agent, inference

environmentId string optional

Example: 01a0f3d5-b58d-7c99-a743-7ca0397b7f5d

The environment whose data should be exported. For Harness Runtime, this is the Environment Config ID. Required when type is agent if agent_id is omitted; must be omitted when type is inference. Prefer this over agent_id.

agentId string optional deprecated

Example: 01a0f3d5-b58d-7c99-a743-7ca0397b7f5d

Deprecated alias for environment_id. Accepted for backward compatibility; must equal environment_id when both are set. Both set and different returns 400. Required when type is agent if environment_id is omitted; must be omitted when type is inference.

signalType array of strings optional

Example: ["ExecutionFailureToolNotFound"]

Filter the export to only include the specified signal types. Use the export options endpoint to list available values.

sessionIds array of strings optional

Example: ["01a0f3d5-d5f1-798a-9352-2cd8f8b81e78"]

Optional list of specific session IDs to include in the export.

startTime string optional

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

Include only sessions that started at or after this timestamp.

endTime string optional

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

Include only sessions that started at or before this timestamp.

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.exports.post({
    environmentId: "01a0f3d5-b58d-7c99-a743-7ca0397b7f5d",
    signalType: [
        "ExecutionFailureToolNotFound",
    ],
});

Response Example

Show Response Example
{
  "export_id": "9f13c09c-c877-436b-9863-dcc39c9dd737",
  "type": "agent",
  "agent_id": "01a0f3d5-b58d-7c99-a743-7ca0397b7f5d",
  "environment_id": "01a0f3d5-b58d-7c99-a743-7ca0397b7f5d",
  "status": "complete",
  "filters": {
    "signal_type": [
      "ExecutionFailureToolNotFound"
    ],
    "session_ids": [
      "01a0f3d5-d5f1-798a-9352-2cd8f8b81e78"
    ]
  },
  "created_at": 1791036405,
  "completed_at": 1791036405,
  "expires_at": 1791641205,
  "error_message": null
}

More Information

See /v1/signals/exports 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.