# The public conversation link

> Every WhatsApp conversation has a link that shows its whole history without a login. What the link is, where you find it, how it is protected, and how to switch it off for one contact from the Inbox or the API.

Every conversation on your number has a public page: the whole chat with that contact, photos and files included, in one scrolling view. Its link is in every forwarded e-mail ("Show All History"), in the `conversation_url` field of the API answers and the webhook events, and in the Inbox's contact panel. Paste it into a ticket, a CRM record or a chat with a colleague and they can read the conversation at once, with no app2email login.

**The link is a key.** Whoever has it can read the conversation. Treat it like the conversation itself.

<a id="address"></a>

## What the link looks like

```
https://www.app2email.com/conversation/<contact>_<your number>_<code>
```

The code is 20 characters made for that one conversation by a cryptographic random generator. It cannot be worked out from the phone numbers, and a code that was not made by app2email is refused before anything is looked up.

The link never changes. The same code is part of the address you reply to by e-mail, so it stays the same for the life of the conversation.

<a id="protection"></a>

## How the page is protected

- **Guessing is stopped.** A connection that asks for many links that do not exist is refused for an hour. Every page view is limited per connection.
- **Never cached, never indexed.** The page tells browsers and proxies not to keep a copy, tells search engines not to list it, sends no referrer when someone follows a link on it, and cannot be shown inside another website's frame.
- **One answer for every refusal.** A link that does not exist, a mistyped one and one you switched off all answer "Conversation not found." Nobody can tell from the answer whether a conversation exists.
- **Nothing in the logs.** The link's code and the conversation text are never written to app2email's logs.

<a id="switch-off"></a>

## Switch the link off for one contact

When a link went somewhere it should not (a forwarded e-mail, a public ticket), switch that conversation's page off:

<Steps>
<Step title="In the Inbox">
Open the conversation, open the contact panel on the right, and untick **Public page: on** under "Public conversation page". The link answers "Conversation not found." from now on. Tick it again to bring the same link back.
</Step>
<Step title="Or with the API">
`PUT /v1/{number}/conversations/{contact}/link` with `{"blocked": true}` (the key needs the `settings:manage` scope). `{"blocked": false}` switches it back on. `GET /v1/{number}/conversations/{contact}` shows the state as `link_blocked`.
</Step>
</Steps>

```bash
curl -X PUT "https://api.app2email.com/v1/YOUR_NUMBER/conversations/61412345678/link" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"blocked": true}'
```

```json
{
  "success": true,
  "request_id": "l1nkb",
  "conversation": {
    "contact": "61412345678",
    "conversation_id": 1234,
    "link_blocked": true,
    "conversation_url": "https://www.app2email.com/conversation/61412345678_4976659348270_SAMPLEk3XbQ9rTzP2mW"
  },
  "note": "The public conversation page of this contact now answers \"not found\". The link is unchanged: {\"blocked\": false} brings it back."
}
```

AI agents can do the same with the hosted MCP tool `set_conversation_link`.

<Note>
Switching the page off changes nothing else: messages still arrive, e-mail forwarding and replies by e-mail work as before, and the photo thumbnails in the forwarded e-mails of that conversation stop loading, because they come from the same page.
</Note>

<a id="whole-number"></a>

## Switch the pages off for the whole number

To make every conversation page of the number answer "Conversation not found", or to let only people signed in to this number open them, use the `conversation_links` setting: on the dashboard under **Integrations → Link utilities**, or with `PUT /v1/{number}/links/settings`. See [link settings, the link secret and revoking links](/guides/link-settings).

<a id="errors"></a>

## Errors

| Code | Status | Meaning |
| --- | --- | --- |
| `invalid_link_setting` | 400 | `blocked` is missing, or is not `true` or `false` (a JSON boolean, not the string `"true"`). |
| `conversation_not_found` | 404 | There is no conversation with that contact yet, so there is no link. |
| `sandbox_key` | 403 | A sandbox key cannot change a real link. |
| `linkutil_not_ready` | 503 | The switch is waiting for a database update on app2email's side. The links themselves work. |

The complete list is on [the errors page](/api/errors).
