> ## Documentation Index
> Fetch the complete documentation index at: https://weights.fyi/run/llms.txt

# GET /v1/trace-sinks

```text
GET https://weights.fyi/run/v1/trace-sinks
Authorization: Bearer <token>                    scope: manage
```

**Available since:** 2026-10-08, when the service went live on weights.fyi/run.

**Answer time:** synchronous: the destinations and their delivery counts are read from the service's own records and answered at once.

Lists the trace destinations of your account, oldest first, each with what it has received and what still waits for it. This is the call that tells you whether your traces are arriving. A destination that works shows `delivered` growing and `backlog` near zero; one that does not shows a growing backlog, and its `last_error` says what your end answered, or that it did not answer at all.

Delivery never drops a span, so a destination that was down keeps everything that ended meanwhile, in order, and receives it when it is back. The backlog is that waiting work: `backlog` counts the spans, `backlog_oldest_at` says how far back the oldest one goes, and `next_try_at` says when the service will try again; the wait between tries grows from 1 s to at most 64 s, or longer when your end asks for it with `Retry-After`. An error stays on record after the destination recovers, so compare the two times: when `last_ok_at` is later than `last_error_at`, the error is past. `enabled` says whether the destination receives spans at all. It is `false` while your account's Tracing and tracking option is off, which you switch on your panel, [/app](/run/app), under Tracing; while it is off, nothing new is queued, and what was queued before waits. Tracing and tracking is free today: its fee per job is $0.00. The list shows header names only: the values you set are secrets, used for delivery and never shown back, and a webhook's signing secret was shown once, when you added it.

## Request

| Name | Where | Required | Meaning |
|---|---|---|---|
| `Authorization` | header | yes | `Bearer` and your token. The token needs the `manage` scope. |

## Return value

**200 OK** with one field, `sinks`: a list of your destinations, oldest first. Each entry has these fields:

| Field | Meaning |
|---|---|
| `id` | The destination's number, the `sink_id` the other calls take. |
| `account_id` | Your account's number. |
| `name` | The name you gave it. |
| `kind` | `otlp_http`, `mlflow` or `webhook`. |
| `url` | The address you gave; the OpenTelemetry kinds deliver to it with `/v1/traces` added. |
| `header_names` | The names of the headers you set, sorted, without their values. |
| `include_outputs` | Whether each page's result is sent with the spans of calls to the model. |
| `enabled` | `true` when it receives spans, `false` while it is paused. |
| `created_at` | When it was added; it receives only spans that ended after this moment. |
| `delivered` | How many spans it has received. |
| `backlog` | How many spans wait for it. |
| `backlog_oldest_at` | When the oldest waiting span was queued, or `null` when nothing waits. |
| `next_try_at` | When the oldest waiting span will next be sent, or `null` when nothing waits. |
| `last_ok_at` | When a delivery last succeeded, or `null` if none has yet. |
| `last_error` | The last delivery's error, as a short code that holds nothing of the spans: `http_401` for a status your end answered, `deadline_exceeded` when it did not answer within 10 s, `redirect_302_not_followed`, `connection_refused`, `tls_verify_failed`, `address_not_public` and the like. `null` if no delivery has failed. |
| `last_error_at` | When that error happened, or `null`. |

## Errors

| Status | Code | When it happens | What to do |
|---|---|---|---|
| `401` | `unauthorized`, `invalid_token`, `token_revoked`, `token_expired` | No token, or one that does not work (any more). | Use a valid token. |
| `403` | `scope_required`, `account_suspended` | The token lacks `manage`, or the account is suspended. | Use a token with `manage`. |

## Examples

```sh
curl -s https://weights.fyi/run/v1/trace-sinks -H "Authorization: Bearer $WEIGHTS_API_KEY"
```

A collector that refused one delivery with `401` and has taken everything since:

```json
{
  "sinks": [
    {
      "id": 1,
      "account_id": 1,
      "name": "prod collector",
      "kind": "otlp_http",
      "url": "https://collector.example.org",
      "header_names": ["Authorization"],
      "include_outputs": false,
      "enabled": true,
      "created_at": "2026-10-09T09:12:40.118Z",
      "delivered": 214,
      "backlog": 0,
      "backlog_oldest_at": null,
      "next_try_at": null,
      "last_ok_at": "2026-10-09T09:41:07.902Z",
      "last_error": "http_401",
      "last_error_at": "2026-10-09T09:20:15.331Z"
    }
  ]
}
```

## History

- 2026-10-08: live with the service, with the delivered count, the backlog and the last error of each destination.
- 2026-10-08: `enabled` follows the Tracing and tracking option: `false` for every destination while it is off.

## See also

- [POST /v1/trace-sinks](/run/docs/reference/trace-sinks-create.md) to add a destination, and [POST /v1/trace-sinks/{sink_id}/test](/run/docs/reference/trace-sinks-test.md) to try one.
- [DELETE /v1/trace-sinks/{sink_id}](/run/docs/reference/trace-sinks-delete.md) to remove one.
- [Tracing and exports](/run/docs/tracing.md), the topic.
