dots.v1.consent.byEnvironment_id().get()
Generated on 5 Nov 2026
from DoTs version
v1.23.0
Usage
client.v1.consent.byEnvironment_id(environment_id).get(requestConfiguration?: RequestConfiguration<object>): Promise<undefined | Agent_consent>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_idstring requiredExample:
019fb3d2-8a56-72cc-8bf9-9d21510b2a99A unique identifier for an environment. For Harness Runtime, this is the Environment Config ID. Formerly named agent_id.
Request Sample
Response Example
More Information
See /v1/consent/{environment_id} in the API reference for additional detail on responses, headers, parameters, and more.