# Headers

Noduma-Routing and Noduma-Redaction, the two request headers of Noduma's own.

Source: https://docs.noduma.dev/api/headers/

## `Noduma-Routing`

Which PCs may answer this request. Without it, the account's default mode applies (`routing` in [`GET /v1/account`](/api/account/)). The answer carries the mode used in its own `Noduma-Routing` header.

| Value | Who answers |
|---|---|
| `any` | Any PC that serves the model; Noduma chooses |
| `own` | Only your own PCs, while they share; free |
| `vetted` | Only PCs a maintainer vetted |
| `trusted` | Only vetted PCs outside every network (Ad-Hoc accounts) |
| `network:<id>` | Only the PCs of that Ad-Hoc network (its member accounts) |
| `confidential` | Only attested confidential-computing PCs (never run on real confidential hardware) |

An account created in the Noduma app may send `any` and `own`; any other value that is a mode is refused with `403 routing_not_in_plan`, and a value that is not one with `400 invalid_request`. A request is never served in a less private mode than it asked for. The modes, and who can read a request in each, are in [Routing](/concepts/routing/).

```sh
curl https://app.noduma.dev/v1/chat/completions \
  -H "Authorization: Bearer $NODUMA_API_KEY" \
  -H "Noduma-Routing: own" \
  -H "Content-Type: application/json" \
  -d '{"model": "qwen2.5-7b-instruct-q4_k_m", "messages": [{"role": "user", "content": "Hello"}]}'
```

## `Noduma-Redaction`

`Noduma-Redaction: off` turns off redaction for this request. By default, before a request leaves the coordinator, known secret formats (private keys, API tokens, `password=` values, email addresses) are replaced with placeholders, and the answer gets them back. It covers known formats only.

## Response headers

| Header | Meaning |
|---|---|
| `Noduma-Routing` | The routing mode used |
| `Cache-Control: no-store` | On every answer and error |
| `Retry-After` | On `429 rate_limit_exceeded` (until a request fits again: the next minute, or 00:00 UTC for the day's tokens), on `503 model_not_available` (60 seconds) and while the coordinator restarts (10 seconds) |
