> ## Documentation Index
> Fetch the complete documentation index at: https://docs.avazal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Pasted links

> Turn Slack, Linear, Gmail and Avazal links into objects you can read with search.resolve.

People paste links: a Slack message permalink, a thread, a Slack List or canvas, an Avazal link to a mail thread or document. `search.resolve` says what each one points to, so an agent can read it with the right operation. It needs `search:read`.

```bash theme={null}
curl -X POST https://api.avazal.com/v1/search.resolve \
  -H "Authorization: Bearer $AVAZAL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://acme.slack.com/archives/C0123ABCD/p1733050000123456"]}'
```

```json theme={null}
{
  "links": [
    {
      "url": "https://acme.slack.com/archives/C0123ABCD/p1733050000123456",
      "object": {
        "_tag": "Conversation",
        "id": "chcv_…",
        "message": "1733050000.123456",
        "title": "#launch",
        "url": "…"
      }
    }
  ]
}
```

Links come back in the order you sent them. `object` is `null` when Avazal doesn't know the link or you can't see what it points to.

## Read what a link points to

Pick the operation from the object's `_tag`:

| `_tag` | Read it with |
| - | - |
| `Conversation` with `message` | `messages.get`, with the conversation id, `@` and `message` as `id` |
| `Conversation` | `conversations.get` |
| `List` | `lists.get`, or `tasks.get` when `item` is set |
| `File` with `kind: "canvas"` | `documents.get` |
| `Document` | `documents.get` |
| `MailThread` | `conversations.get` |
| `CalendarEvent` | `events.get` |

The MCP prompt `read_link` does this for you: it resolves a link, reads the object and summarises it.

## Search

When there is no link, `search.query` searches people, email threads, meetings, documents, chat conversations, lists and files at once, and GitHub branches and pull requests when you ask for them with `types`, best match first. Each result has the same `_tag` and ids as a resolved link, so you read it the same way.

```bash theme={null}
avazal search.query --q "board deck"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.