ReferenceAPI

Create a destination

Create a destination that receives the workspace's logs and metrics over OTLP/HTTP, such as Grafana Cloud, Honeycomb, Datadog, New Relic, Dynatrace, Elastic or your own collector.

POST https://api.nevia.cloud/v1/destinations
curl -X POST "https://api.nevia.cloud/v1/destinations" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: 8f1c2a7e-3b4d-4c5e-9f0a-1b2c3d4e5f60" \
  -H "Content-Type: application/json" \
  -d '{
    "workspace": "01d4cnjjq40hnnh0nwmkg35nv2h",
    "preset": "honeycomb",
    "region": "eu",
    "api_key": "<api key>"
  }'
{
  "destination": {
    "id": "01d30cbpnr2g96ry9h5kkkhd6db",
    "workspace": "01d4cnjjq40hnnh0nwmkg35nv2h",
    "name": "Honeycomb production",
    "endpoint": "https://api.honeycomb.io",
    "preset": "honeycomb",
    "header_names": [
      "x-honeycomb-team"
    ],
    "signals": [
      "logs"
    ],
    "projects": [
      "01ck8y1dm5qqnf88mytnh4m0h4g"
    ],
    "delivery": {
      "status": "delivering",
      "last_error": {
        "code": "delivered",
        "http_status": 503,
        "failed_at": "2026-09-10T12:34:56Z"
      },
      "last_delivered_at": "2026-09-10T12:34:56Z",
      "dropped": 0
    },
    "created_by": "01d4cnjmn4fbb1r5btxb5mypv62",
    "updated_by": "01d4cnjmn4fbb1r5btxb5mypv62",
    "created_at": "2026-09-10T12:34:56Z",
    "updated_at": "2026-09-10T12:34:56Z",
    "deleted_at": "2026-09-10T12:34:56Z"
  },
  "test": {
    "logs": {
      "code": "delivered",
      "http_status": 200
    },
    "metrics": {
      "code": "delivered",
      "http_status": 200
    }
  }
}

Authorization

bearerAuth
Authorization Bearer <token>

Send the token in the Authorization: Bearer <token> header. See Authenticate.

In: header

Header Parameters

Idempotency-Key* string

Required for this non-idempotent request. Clients generate one key per action and preserve it across transport retries. Within the retained window, repeats return the recorded result and different input with the same key is 409. Keys expire 10 minutes after admission, or 120 seconds after success or terminal failure, whichever is earlier. Reusing an expired key can execute new work. The API tracks at most 100,000 requests across replicas. New keys at capacity receive 429 with Retry-After of 600–630 seconds.

Length 1 <= length <= 255

Request Body

application/json

Behavior

Records go out as stored, in the OTel data model, with service.name set to the resource's name and service.instance.id to its id. A preset fills in its vendor's endpoint for region and builds its vendor's credential header from its credential fields (api_key, and instance_id for Grafana Cloud). Header values are write-only. Header values are never read back. Saving sends one test record per signal: a log record with the body Nevia test record and a gauge nevia.destination.test of 1, on a resource with service.name nevia. test says how the destination answered each, as a code and its HTTP status, and delivery starts from it. The destination is saved whatever it answered, so fix it with PATCH and read the new test.

Response

application/json

The destination and its answer to the test records.

The destination and its answer to the test records just sent