pydo.signals.get_consent()

Generated on 13 Nov 2026 from pydo version v0.46.0

Usage

client.signals.get_consent(
    environment_id="019fb3d2-8a56-72cc-8bf9-9d21510b2a99",
)
Returns JSON Raises HttpResponseError

Description

To retrieve the consent record for a specific environment, send a GET request to /v1/consent/{environment_id}. The response includes an enabled field indicating whether signals collection is on for this environment.

This endpoint only serves per-environment (source: agent) records. Team-level inference consent is read from GET /v1/consent?source=inference.

Parameters

environment_id string required

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

Response Example

Show Response Example
{
  "id": 13,
  "team_id": 39449946,
  "source": "agent",
  "agent_id": "019fb3d2-8a56-72cc-8bf9-9d21510b2a99",
  "environment_id": "019fb3d2-8a56-72cc-8bf9-9d21510b2a99",
  "enabled": true,
  "updated_at": "2026-08-10T10:09:25.738533Z"
}

More Information

See /v1/consent/{environment_id} 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.