> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orq.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Orq.ai is the control plane for model and MCP traffic: one key reaches the workspace's enabled models, MCP servers, and resources. The setup depends on where the agent runs.
> Hosted assistant (ChatGPT, claude.ai, a hosted sandbox): install nothing. Tell the human to add https://my.orq.ai/v2/mcp as a remote MCP connector and finish the Orq.ai sign-in. With OAuth, send no Authorization header; otherwise send an API key as a bearer token.
> Local coding agent (Claude Code, Codex, Cursor, OpenCode): run `curl -fsSL https://cli.orq.ai/install.sh | sh`. It installs the CLI and runs `orq setup`, which signs in, writes a project-scoped key to `~/.orq/env`, and wires the detected agents through the AI Gateway. It can also add the Orq MCP server and Orq Skills, the workflows for agents, evaluations, and traces: https://docs.orq.ai/ai-studio/integrations/code-assistants/orq-skills.md. Verify with `orq status`.
> Headless or CI: read `ORQ_API_KEY` from the environment; a human creates the key at https://docs.orq.ai/ai-studio/organization/api-keys.md.
> Send model traffic to https://my.orq.ai/v3/router with `Authorization: Bearer $ORQ_API_KEY`; the Anthropic SDK uses https://my.orq.ai/v3/anthropic. New integrations go on `/v3/router`: `/v2/router` stays published for backward compatibility, and `orq.prompt` works only on `/v2/router/chat/completions`.
> Enable a model for the workspace and use its exact `provider/model` id. `POST /v2/workspace-models` enables a model, and a call fails while the workspace has neither credits nor a provider key.
> On `/chat/completions`, a reasoning model rejects `tools` with a `reasoning_effort` other than `none`; `/responses` keeps reasoning.
> On a failure, branch on `error.code` and follow `error.doc_url`; a budget rejection answers 429.

# TelemetryDestinations SDK Reference

> SDK reference for the TelemetryDestinations API, available in Node.js and Python.

## TelemetryDestinations

### List TelemetryDestinations

List OpenTelemetry destinations

```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
from orq_ai_sdk import Orq
import os

with Orq(
    api_key=os.getenv("ORQ_API_KEY"),
) as orq:

    res = orq.telemetry_destinations.list()

    # Handle response
    print(res)

```

```typescript Node.js theme={"theme":{"light":"github-light","dark":"github-dark"}}
import { Orq } from "@orq-ai/node";

const orq = new Orq({
  apiKey: process.env["ORQ_API_KEY"] ?? "",
});

async function run() {
  const result = await orq.telemetryDestinations.list();

  console.log(result);
}

run();
```

**Parameters**

```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
    "limit": Optional[int],
    "starting_after": Optional[str],
}
```

```typescript Node.js theme={"theme":{"light":"github-light","dark":"github-dark"}}
// orq.telemetryDestinations.list(request?)
```

**Response**

```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
    "destinations": [{  # optional
        "id": Optional[str],
        "display_name": Optional[str],
        "provider": Optional[str],
        "endpoint_url": Optional[str],
        "request_headers": Dict[str, str],  # optional
        "settings": Dict[str, str],  # optional
        "content_mode": Optional[Literal["TELEMETRY_CONTENT_MODE_METADATA_ONLY", "TELEMETRY_CONTENT_MODE_FULL_CONTENT"]],
        "project_scope": Optional[Literal["TELEMETRY_PROJECT_SCOPE_ALL", "TELEMETRY_PROJECT_SCOPE_SELECTED", "TELEMETRY_PROJECT_SCOPE_ALL_EXCEPT"]],
        "project_ids": List[str],  # optional
        "enabled": Optional[bool],
        "created_at": str,  # optional
        "updated_at": str,  # optional
        "failure_count": Optional[int],
        "last_error": Optional[str],
        "last_status_code": Optional[int],
        "last_attempt_at": str,  # optional
        "disabled_reason": Optional[str],
    }],
    "has_more": Optional[bool],
}
```

```typescript Node.js theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  destinations?: {
    id?: string;
    displayName?: string;
    provider?: string;
    endpointUrl?: string;
    requestHeaders?: Record<string, string>;
    settings?: Record<string, string>;
    contentMode?: "TELEMETRY_CONTENT_MODE_METADATA_ONLY" | "TELEMETRY_CONTENT_MODE_FULL_CONTENT";
    projectScope?: "TELEMETRY_PROJECT_SCOPE_ALL" | "TELEMETRY_PROJECT_SCOPE_SELECTED" | "TELEMETRY_PROJECT_SCOPE_ALL_EXCEPT";
    projectIds?: string[];
    enabled?: boolean;
    createdAt?: Date;
    updatedAt?: Date;
    failureCount?: number;
    lastError?: string;
    lastStatusCode?: number;
    lastAttemptAt?: Date;
    disabledReason?: string;
  }[];
  hasMore?: boolean;
}
```

### Create a TelemetryDestination

Create an OpenTelemetry destination

```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
from orq_ai_sdk import Orq
import os

with Orq(
    api_key=os.getenv("ORQ_API_KEY"),
) as orq:

    res = orq.telemetry_destinations.create()

    # Handle response
    print(res)

```

```typescript Node.js theme={"theme":{"light":"github-light","dark":"github-dark"}}
import { Orq } from "@orq-ai/node";

const orq = new Orq({
  apiKey: process.env["ORQ_API_KEY"] ?? "",
});

async function run() {
  const result = await orq.telemetryDestinations.create({});

  console.log(result);
}

run();
```

**Parameters**

```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
    "destination": {  # optional
        "display_name": Optional[str],
        "provider": Optional[str],
        "endpoint_url": Optional[str],
        "request_headers": Dict[str, str],  # optional
        "settings": Dict[str, str],  # optional
        "content_mode": Optional[Literal["TELEMETRY_CONTENT_MODE_METADATA_ONLY", "TELEMETRY_CONTENT_MODE_FULL_CONTENT"]],
        "project_scope": Optional[Literal["TELEMETRY_PROJECT_SCOPE_ALL", "TELEMETRY_PROJECT_SCOPE_SELECTED", "TELEMETRY_PROJECT_SCOPE_ALL_EXCEPT"]],
        "project_ids": List[str],  # optional
        "enabled": Optional[bool],
    },
}
```

```typescript Node.js theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  destination?: {
    displayName?: string;
    provider?: string;
    endpointUrl?: string;
    requestHeaders?: Record<string, string>;
    settings?: Record<string, string>;
    contentMode?: "TELEMETRY_CONTENT_MODE_METADATA_ONLY" | "TELEMETRY_CONTENT_MODE_FULL_CONTENT";
    projectScope?: "TELEMETRY_PROJECT_SCOPE_ALL" | "TELEMETRY_PROJECT_SCOPE_SELECTED" | "TELEMETRY_PROJECT_SCOPE_ALL_EXCEPT";
    projectIds?: string[];
    enabled?: boolean;
  };
}
```

**Response**

```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
    "destination": {  # optional
        "id": Optional[str],
        "display_name": Optional[str],
        "provider": Optional[str],
        "endpoint_url": Optional[str],
        "request_headers": Dict[str, str],  # optional
        "settings": Dict[str, str],  # optional
        "content_mode": Optional[Literal["TELEMETRY_CONTENT_MODE_METADATA_ONLY", "TELEMETRY_CONTENT_MODE_FULL_CONTENT"]],
        "project_scope": Optional[Literal["TELEMETRY_PROJECT_SCOPE_ALL", "TELEMETRY_PROJECT_SCOPE_SELECTED", "TELEMETRY_PROJECT_SCOPE_ALL_EXCEPT"]],
        "project_ids": List[str],  # optional
        "enabled": Optional[bool],
        "created_at": str,  # optional
        "updated_at": str,  # optional
        "failure_count": Optional[int],
        "last_error": Optional[str],
        "last_status_code": Optional[int],
        "last_attempt_at": str,  # optional
        "disabled_reason": Optional[str],
    },
}
```

```typescript Node.js theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  destination?: {
    id?: string;
    displayName?: string;
    provider?: string;
    endpointUrl?: string;
    requestHeaders?: Record<string, string>;
    settings?: Record<string, string>;
    contentMode?: "TELEMETRY_CONTENT_MODE_METADATA_ONLY" | "TELEMETRY_CONTENT_MODE_FULL_CONTENT";
    projectScope?: "TELEMETRY_PROJECT_SCOPE_ALL" | "TELEMETRY_PROJECT_SCOPE_SELECTED" | "TELEMETRY_PROJECT_SCOPE_ALL_EXCEPT";
    projectIds?: string[];
    enabled?: boolean;
    createdAt?: Date;
    updatedAt?: Date;
    failureCount?: number;
    lastError?: string;
    lastStatusCode?: number;
    lastAttemptAt?: Date;
    disabledReason?: string;
  };
}
```

### Retrieve a TelemetryDestination

Retrieve an OpenTelemetry destination

```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
from orq_ai_sdk import Orq
import os

with Orq(
    api_key=os.getenv("ORQ_API_KEY"),
) as orq:

    res = orq.telemetry_destinations.get(destination_id="<id>")

    # Handle response
    print(res)

```

```typescript Node.js theme={"theme":{"light":"github-light","dark":"github-dark"}}
import { Orq } from "@orq-ai/node";

const orq = new Orq({
  apiKey: process.env["ORQ_API_KEY"] ?? "",
});

async function run() {
  const result = await orq.telemetryDestinations.get({
    destinationId: "<id>",
  });

  console.log(result);
}

run();
```

**Parameters**

```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
    "destination_id": str,  # required
}
```

```typescript Node.js theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  destinationId: string;  // required
}
```

**Response**

```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
    "destination": {  # optional
        "id": Optional[str],
        "display_name": Optional[str],
        "provider": Optional[str],
        "endpoint_url": Optional[str],
        "request_headers": Dict[str, str],  # optional
        "settings": Dict[str, str],  # optional
        "content_mode": Optional[Literal["TELEMETRY_CONTENT_MODE_METADATA_ONLY", "TELEMETRY_CONTENT_MODE_FULL_CONTENT"]],
        "project_scope": Optional[Literal["TELEMETRY_PROJECT_SCOPE_ALL", "TELEMETRY_PROJECT_SCOPE_SELECTED", "TELEMETRY_PROJECT_SCOPE_ALL_EXCEPT"]],
        "project_ids": List[str],  # optional
        "enabled": Optional[bool],
        "created_at": str,  # optional
        "updated_at": str,  # optional
        "failure_count": Optional[int],
        "last_error": Optional[str],
        "last_status_code": Optional[int],
        "last_attempt_at": str,  # optional
        "disabled_reason": Optional[str],
    },
}
```

```typescript Node.js theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  destination?: {
    id?: string;
    displayName?: string;
    provider?: string;
    endpointUrl?: string;
    requestHeaders?: Record<string, string>;
    settings?: Record<string, string>;
    contentMode?: "TELEMETRY_CONTENT_MODE_METADATA_ONLY" | "TELEMETRY_CONTENT_MODE_FULL_CONTENT";
    projectScope?: "TELEMETRY_PROJECT_SCOPE_ALL" | "TELEMETRY_PROJECT_SCOPE_SELECTED" | "TELEMETRY_PROJECT_SCOPE_ALL_EXCEPT";
    projectIds?: string[];
    enabled?: boolean;
    createdAt?: Date;
    updatedAt?: Date;
    failureCount?: number;
    lastError?: string;
    lastStatusCode?: number;
    lastAttemptAt?: Date;
    disabledReason?: string;
  };
}
```

### Update a TelemetryDestination

Update an OpenTelemetry destination

```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
from orq_ai_sdk import Orq
import os

with Orq(
    api_key=os.getenv("ORQ_API_KEY"),
) as orq:

    res = orq.telemetry_destinations.update(destination_id="<id>")

    # Handle response
    print(res)

```

```typescript Node.js theme={"theme":{"light":"github-light","dark":"github-dark"}}
import { Orq } from "@orq-ai/node";

const orq = new Orq({
  apiKey: process.env["ORQ_API_KEY"] ?? "",
});

async function run() {
  const result = await orq.telemetryDestinations.update({
    destinationId: "<id>",
    updateTelemetryDestinationRequest: {},
  });

  console.log(result);
}

run();
```

**Parameters**

```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
    "destination_id": str,  # required
    "destination": {  # optional
        "display_name": Optional[str],
        "provider": Optional[str],
        "endpoint_url": Optional[str],
        "request_headers": Dict[str, str],  # optional
        "settings": Dict[str, str],  # optional
        "content_mode": Optional[Literal["TELEMETRY_CONTENT_MODE_METADATA_ONLY", "TELEMETRY_CONTENT_MODE_FULL_CONTENT"]],
        "project_scope": Optional[Literal["TELEMETRY_PROJECT_SCOPE_ALL", "TELEMETRY_PROJECT_SCOPE_SELECTED", "TELEMETRY_PROJECT_SCOPE_ALL_EXCEPT"]],
        "project_ids": List[str],  # optional
        "enabled": Optional[bool],
    },
}
```

```typescript Node.js theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  destinationId: string;  // required
  updateTelemetryDestinationRequest: {  // required
    destination?: {
      displayName?: string;
      provider?: string;
      endpointUrl?: string;
      requestHeaders?: Record<string, string>;
      settings?: Record<string, string>;
      contentMode?: "TELEMETRY_CONTENT_MODE_METADATA_ONLY" | "TELEMETRY_CONTENT_MODE_FULL_CONTENT";
      projectScope?: "TELEMETRY_PROJECT_SCOPE_ALL" | "TELEMETRY_PROJECT_SCOPE_SELECTED" | "TELEMETRY_PROJECT_SCOPE_ALL_EXCEPT";
      projectIds?: string[];
      enabled?: boolean;
    };
  };
}
```

**Response**

```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
    "destination": {  # optional
        "id": Optional[str],
        "display_name": Optional[str],
        "provider": Optional[str],
        "endpoint_url": Optional[str],
        "request_headers": Dict[str, str],  # optional
        "settings": Dict[str, str],  # optional
        "content_mode": Optional[Literal["TELEMETRY_CONTENT_MODE_METADATA_ONLY", "TELEMETRY_CONTENT_MODE_FULL_CONTENT"]],
        "project_scope": Optional[Literal["TELEMETRY_PROJECT_SCOPE_ALL", "TELEMETRY_PROJECT_SCOPE_SELECTED", "TELEMETRY_PROJECT_SCOPE_ALL_EXCEPT"]],
        "project_ids": List[str],  # optional
        "enabled": Optional[bool],
        "created_at": str,  # optional
        "updated_at": str,  # optional
        "failure_count": Optional[int],
        "last_error": Optional[str],
        "last_status_code": Optional[int],
        "last_attempt_at": str,  # optional
        "disabled_reason": Optional[str],
    },
}
```

```typescript Node.js theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  destination?: {
    id?: string;
    displayName?: string;
    provider?: string;
    endpointUrl?: string;
    requestHeaders?: Record<string, string>;
    settings?: Record<string, string>;
    contentMode?: "TELEMETRY_CONTENT_MODE_METADATA_ONLY" | "TELEMETRY_CONTENT_MODE_FULL_CONTENT";
    projectScope?: "TELEMETRY_PROJECT_SCOPE_ALL" | "TELEMETRY_PROJECT_SCOPE_SELECTED" | "TELEMETRY_PROJECT_SCOPE_ALL_EXCEPT";
    projectIds?: string[];
    enabled?: boolean;
    createdAt?: Date;
    updatedAt?: Date;
    failureCount?: number;
    lastError?: string;
    lastStatusCode?: number;
    lastAttemptAt?: Date;
    disabledReason?: string;
  };
}
```

### Delete a TelemetryDestination

Delete an OpenTelemetry destination

```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
from orq_ai_sdk import Orq
import os

with Orq(
    api_key=os.getenv("ORQ_API_KEY"),
) as orq:

    res = orq.telemetry_destinations.delete(destination_id="<id>")

    # Handle response
    print(res)

```

```typescript Node.js theme={"theme":{"light":"github-light","dark":"github-dark"}}
import { Orq } from "@orq-ai/node";

const orq = new Orq({
  apiKey: process.env["ORQ_API_KEY"] ?? "",
});

async function run() {
  const result = await orq.telemetryDestinations.delete({
    destinationId: "<id>",
  });

  console.log(result);
}

run();
```

**Parameters**

```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
    "destination_id": str,  # required
}
```

```typescript Node.js theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  destinationId: string;  // required
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.