# encodePermalink

**Kind:** Function

**Source:** [`atloria-monorepo/packages/ui-core/src/components/api-explorer/permalink.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/packages/ui-core/src/components/api-explorer/permalink.ts#L133)

The fragment for a configured request, WITHOUT the leading `#`.

Files are absent by construction: a `File` has no serializable form short of embedding the
bytes, and a link carrying a megabyte of base64 is not a link. The caller states this beside
the button rather than letting a reader discover it after sharing.

## Signature

```ts
function encodePermalink(state: PermalinkState, secrets: string[]): string
```

## Parameters

| Name | Type |
|---|---|
| `state` | `PermalinkState` |
| `secrets` | `string[]` |

**Returns:** `string`
