Observability

Update an observability destination

Changed on

Update an existing observability destination. Only the fields provided in the request body are updated. Management key required.

patch/observability/destinations/{id}

Request

  • Base URL: https://openrouter.ai/api/v1
  • URL: https://openrouter.ai/api/v1/observability/destinations/{id}
  • Auth: HTTP bearer

Path parameters

idstring uuid required

The destination ID (UUID).

Example:99999999-aaaa-bbbb-cccc-dddddddddddd

Request body

api_key_hashesstring[] nullable

Optional allowlist of OpenRouter API key hashes. null clears the filter (all keys). Omitting leaves the current value. Must contain at least one hash if provided.

broadcast_generation_costboolean

Whether to include cost and billing generation metadata.

broadcast_generation_cost_allocationboolean

Beta. When true, include openrouter_cost_allocation: per-token-kind usage and cost, sent only when they reconcile with the billed cost.

broadcast_generation_identityboolean

Whether to include identity generation metadata.

broadcast_generation_request_contextboolean

Whether to include request-context generation metadata.

configobject

Provider-specific configuration fields to update. Masked values are ignored; unset fields keep their current value.

enabledboolean

Whether the destination is enabled.

namestring

Human-readable name for the destination.

privacy_modeboolean

When true, request/response bodies are not forwarded — only metadata.

regionsObservabilityDataRegionInput[]

Data regions this destination applies to. eu is accepted as an alias for europe and normalizes to europe. Omitting this field keeps the current value; it cannot be cleared.

sampling_ratenumber double

Sampling rate between 0.0001 and 1 (1 = 100%).

Example request

{
  "enabled": false,
  "name": "Updated Langfuse"
}

Response

Destination updated successfully

Example response

{
  "data": {
    "api_key_hashes": null,
    "broadcast_generation_cost": false,
    "broadcast_generation_cost_allocation": false,
    "broadcast_generation_identity": false,
    "broadcast_generation_request_context": false,
    "config": {
      "baseUrl": "https://us.cloud.langfuse.com",
      "publicKey": "pk-l...EfGh",
      "secretKey": "sk-l...AbCd"
    },
    "created_at": "2025-08-24T10:30:00Z",
    "enabled": true,
    "filter_rules": null,
    "id": "99999999-aaaa-bbbb-cccc-dddddddddddd",
    "name": "Production Langfuse",
    "privacy_mode": false,
    "regions": [
      "global"
    ],
    "sampling_rate": 1,
    "type": "langfuse",
    "updated_at": "2025-08-24T15:45:00Z",
    "workspace_id": "550e8400-e29b-41d4-a716-446655440000"
  }
}

Changes

    • info

      added the new optional request property

    • info

      added the required property ///////// to the response with the status

    • info

      added the required property ///////// to the response with the status

    • info

      added the required property ///////// to the response with the status

    • info

      added the required property ///////// to the response with the status

    • info

      added the required property ///////// to the response with the status

    • info

      added the required property ///////// to the response with the status

    • info

      added the required property ///////// to the response with the status

    • info

      added the required property ///////// to the response with the status

    • info

      added the required property ///////// to the response with the status

    • info

      added the required property ///////// to the response with the status

    • info

      added the required property ///////// to the response with the status

    • info

      added the required property ///////// to the response with the status

    • info

      added the required property ///////// to the response with the status

    • info

      added the required property ///////// to the response with the status

    • info

      added the required property ///////// to the response with the status

    • info

      added the required property ///////// to the response with the status

    • info

      added the required property ///////// to the response with the status

    • info

      added the optional property ////////// to the response with the status

    • info

      added the optional property ////////// to the response with the status