---
title: "Log export API: forward every request to your observability stack"
canonical: https://uncensoredllm.ai/docs/exports
generated: 2026-11-23T06:12:10.509Z
source: https://uncensoredllm.ai/docs/exports
base_url: https://api.uncensoredllm.ai/v1
---

# Log export.

Updated November 22, 2026.

Point your own observability stack at the gateway and every completed request is pushed to it; this page documents the destination routes served from `https://api.uncensoredllm.ai/v1`, together with the one-shot CSV pull. Each destination gets grouped batches roughly a minute after a request settles, and a destination that keeps failing is switched off rather than retried forever.

[Get a key](https://app.uncensoredllm.ai/console)

## Seeing your destinations

`GET /v1/exports` returns `data`, one object per destination. No credential is ever echoed: each carries a `summary` that names the host, the first few characters of a Langfuse public key, or which headers it attaches.

## Creating a destination

`POST /v1/exports` needs a `kind` plus whatever that kind requires, and answers `201`:

| Field | Type | Kind | Notes |
| --- | --- | --- | --- |
| `kind` | string, required | all | One of `webhook`, `langfuse` or `otlp`. |
| `name` | string | all | 1 to 80 characters. |
| `url` | string | webhook | A public https URL that receives the signed POST. |
| `public_key` | string | langfuse | The Langfuse project public key. |
| `secret_key` | string | langfuse | The Langfuse project secret key. Encrypted on save and never echoed. |
| `host` | string | langfuse | The Langfuse host; the managed cloud host if omitted. |
| `endpoint` | string | otlp | The OTLP-over-HTTP base URL; `/v1/traces` is appended when missing. |
| `headers` | object | otlp | As many as 10 headers to accompany each delivery, for instance an API key. Stored encrypted. |
| `key_ids` | array or null | all | Restrict to these keys’ requests; null covers every key. |
| `include_bodies` | boolean | all | Attach request bodies for keys that retain them. Defaults off. |

A webhook’s signing secret, `webhook_secret`, comes back once, on this create call, and is not shown again. An organization may keep up to 10 destinations; the eleventh answers `409 limit_reached`. An unknown kind, a URL that is not public https, a missing key or a key id from another organization answers `400 invalid_request`.

## Updating or deleting a destination

`GET /v1/exports/{destination_id}` reads one along with its 50 most recent delivery attempts, `PATCH /v1/exports/{destination_id}` edits its fields (re-enabling a paused one resets the failure counter), and `DELETE /v1/exports/{destination_id}` removes it so nothing further, queued batches included, is sent.

## Downloading the usage log

`GET /v1/usage/export` streams the organization’s requests between `from` and `to`, oldest first, as a CSV row per request: the request id, its timestamp, the key and session, the model, the outcome and the status code, each token count on its own, the settled charge, the latency, any refund reason and the end user. Filter with `key_id`, `model`, `status` and `user`. Without `from` the file starts 30 days before `to`; one file spans 92 days at the most and stops at 200,000 rows. A longer range, or a `from` that is not before `to`, answers `400 invalid_request`.

```bash
curl "https://api.uncensoredllm.ai/v1/usage/export?from=2026-11-01&to=2026-11-21" \
  -H "Authorization: Bearer sk-ullm-live-…" -o usage.csv
```

## Example

```bash
curl https://api.uncensoredllm.ai/v1/exports \
  -H "Authorization: Bearer sk-ullm-live-…" \
  -H "Content-Type: application/json" \
  -d '{"kind": "otlp", "name": "honeycomb", "endpoint": "https://api.honeycomb.io", "headers": {"x-honeycomb-team": "..."}}'
```

Each route here takes an admin key from the console.

## Log export: questions

### When does a request land at my destination?

Requests are grouped and dispatched roughly a minute after each one settles. If a delivery hits a connection error, a 408, a 429 or any 5xx, the gateway tries it again up to three times, waiting 10 seconds, then 60 seconds, then 5 minutes.

### What if my endpoint stays down?

Fifty failed deliveries in a row pause the destination and send one notice to the organization’s address, so a dead receiver neither retries endlessly nor backs up the rest of your traffic. Switch it back on with a PATCH and the counter starts over.

### Do my prompts and replies leave the gateway?

Only if include_bodies is switched on, and then only for keys configured to retain bodies. With it off, a destination sees metadata and token counts rather than the message content.

## Read next

- [MCP servers](https://uncensoredllm.ai/docs/mcp-servers)
- [Invoices](https://uncensoredllm.ai/docs/invoices)
- [Billing details](https://uncensoredllm.ai/docs/billing-details)
- [Statement signing key](https://uncensoredllm.ai/docs/statements-public-key)
- [Keys](https://uncensoredllm.ai/docs/keys)
- [Requests and receipts](https://uncensoredllm.ai/docs/requests)
- [Balance and spend limits](https://uncensoredllm.ai/docs/budgets)
- [Batches](https://uncensoredllm.ai/docs/batches)
- [Files](https://uncensoredllm.ai/docs/files)
- [Count tokens](https://uncensoredllm.ai/docs/count-tokens)
- [App usage stats](https://uncensoredllm.ai/docs/stats-apps)
- [Auth keys](https://uncensoredllm.ai/docs/auth-keys)
- [Webhook deliveries](https://uncensoredllm.ai/docs/webhooks-deliveries)
- [Docs: connect in two minutes](https://uncensoredllm.ai/docs)
- [Sessions and log export](https://uncensoredllm.ai/features/observability)
