For AI agents: The documentation index is at 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).
Usage
client.v1.consent.get(requestConfiguration?: RequestConfiguration<ConsentRequestBuilderGetQueryParameters>): Promise<undefined | List_consents>
Description
To list all signals consent records for your team, send a GET request to
/v1/consent. Each record indicates whether signals collection is enabled
for a source: per-environment records (source: agent) for Harness Runtime, and
the team-level record (source: inference) for Serverless Inference chat
completions.
Pass ?source=agent or ?source=inference to return only that source’s
records. When filtered, the response also echoes the source.
Parameters
source string optional
Filter consent records by source. agent returns per-environment records (Harness Runtime); inference returns the team-level record for Serverless Inference chat completions. When omitted, records for all sources are returned.
One of: agent, inference
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.consent.get();
Response Example
Show Response Example
{
"consents": [
{
"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"
},
{
"id": 6,
"team_id": 39449946,
"source": "agent",
"agent_id": "019fb6b1-aad4-7d54-a74e-c5570d768148",
"environment_id": "019fb6b1-aad4-7d54-a74e-c5570d768148",
"enabled": true,
"updated_at": "2026-08-07T10:10:16.385447Z"
},
{
"id": 21,
"team_id": 39449946,
"source": "inference",
"agent_id": "",
"enabled": true,
"updated_at": "2026-10-09T11:41:27.104822Z"
}
]
}
See /v1/consent in the API reference for additional detail on responses, headers, parameters, and more.