How do I find all the files on a deal?

Open the deal and look at its Documents card: every file from its notes and emails, with the ones you pinned on top. Sam and the API can list the files and pin them too.

Written by Philippe Genois

Updated December 3, 2026

Open the deal and look for the Documents card in the side column. It lists every file from the deal's notes and emails, with the files you pinned on top and the rest newest first. Click a file to open it. Click the star on a file to pin it on top. You can also ask Sam for a file or to pin one, or use the API.

Also called: deal attachments, contract, signed quote, agreement, find a file on a deal, pin a file, star a file, favorite file, documents d'une affaire, pièces jointes, contrat signé, fichiers, épingler un fichier

Find the files on the deal's page

  1. Open Leads & deals

    Click the deal you want. Its cards sit in the column beside its history.

  2. Find the Documents card.

    Its title shows how many files there are, like Documents · 7. Each row shows the file's name, its date, and where it came from: Note, Email or Message. For an email, the email's subject follows, like "Email · Final contract to sign". Photos get a picture icon and other files get a document icon.

  3. Click a file's row to open it in the preview.

  4. If the card has more than 5 files, click See all (it shows the number, like See all 7) to show the whole list. Click Show fewer to go back to the short list.

Pin a file on top

Pin the files you come back to most, like the signed contract, so they stay at the top of the card.

  1. Open Leads & deals

    Click the deal, then find its Documents card.

  2. Point at the file's row and click the star at its right end.

    The star shows when you point at the row. On a phone or tablet it is always there. The star's label says Pin (file name) to the top.

  3. The file jumps to the top of the card and its row turns a soft yellow.

  4. To unpin it, click the filled star again. Its label says Unpin (file name). The file goes back to its place by date.

A pin is for the whole team: everyone who opens the deal sees the same pinned files on top. You need to be allowed to edit the deal to pin or unpin. If you pin more than one file, the one you pinned last comes first among the pinned ones, then the others, then newest first. A deal keeps up to 50 pinned files. Pinning one more drops the one pinned longest ago.

Ask Sam for a file or to pin it

Ask Sam in plain words, like "send me the signed contract on the Northwind Studio deal". Sam looks at that deal's files and gives you the link to open the file. Each file comes with its name, its date and where it came from (note, email or message, with the email's subject), and whether it is pinned. Sam reads up to 50 files on a deal, pinned ones first, then newest first.

To pin a file, ask for it by name, like "Pin the signed agreement on the Brightlane Agency deal". To unpin, say "Unpin it". Sam can pin or unpin up to 20 files at once. When it is done, Sam shows a card with the file's name.

Read and pin the files with the API

To list the files, send a GET request to https://api.alori.dev/v1/deals/{id}/documents, where {id} is the deal's id. A key that only reads (Reports (read only)) can call it. To make a key, see How does the Alori API work?

  1. Send the request with your key in the Authorization header.

    curl https://api.alori.dev/v1/deals/k71fd0a3b2/documents \
      -H "Authorization: Bearer YOUR_KEY"
  2. You get the files back, pinned ones first, then newest first, at most 50.

    {
      "data": [
        {
          "key": "kg2a7r1m5x8c3v6b9n4d0f2h",
          "starred": true,
          "name": "Signed agreement.pdf",
          "url": "https://example.com/files/signed-agreement.pdf",
          "at": "2026-11-10T09:30:00.000Z",
          "on": "note"
        },
        {
          "key": "kh8b4s2n6y9d4w7c0p5e1g3j",
          "starred": false,
          "name": "Service contract 12 months.pdf",
          "url": "https://example.com/files/service-contract.pdf",
          "at": "2026-11-15T14:03:00.000Z",
          "on": "email",
          "emailSubject": "Final contract to sign"
        }
      ],
      "nextCursor": null
    }
    • key: the file's own id. Use it to pin or unpin the file.

    • starred: true when the file is pinned on top.

    • name: the file's name.

    • url: the link that opens the file for someone who has access.

    • at: the date, as ISO text.

    • on: where it came from: note, email or message.

    • emailSubject: the email's subject, only when the file came on an email.

  3. To pin files, send a PATCH request to the same address. This needs a key with Full access, not a read-only one.

    FieldTypeWhat it is
    fileslist of text, 1 to 20The key of each file to pin, taken from the list above.
    starredtrue or falsefalse unpins the files. Pins them when you leave it out.
    curl -X PATCH https://api.alori.dev/v1/deals/k71fd0a3b2/documents \
      -H "Authorization: Bearer YOUR_KEY" \
      -H "Content-Type: application/json" \
      -d '{"files": ["kh8b4s2n6y9d4w7c0p5e1g3j"], "starred": true}'
  4. You get the deal's id and how many files changed.

    {
      "data": {
        "id": "k71fd0a3b2",
        "changed": 1
      }
    }

    If some keys are not files of this deal, they come back in a missing list.

If your app is not up to date, the API answers 409 with appNeedsUpdate. A deal your key's person can't see or edit answers 404. Upgrade your app first: How do I upgrade my app to the newest Alori features?

Good to know

  • The card, Sam and the API give the same files, with the same rules.

  • The files come from the notes, emails and messages on the deal's history, including files that came with a deal imported from HubSpot. A file shows once it is on one of them.

  • The card only shows files. You can't add or remove a file from it, only pin it. To add a file, put it on a note or an email of the deal.

  • Pictures on a note show. A picture on an email or message shows only when it looks like a document, like a screenshot or a photo. Small pictures such as signature logos are left out.

  • Notes show only for someone who can see customers. Emails and messages show only for someone who can also see Conversations. Spam is left out.

  • A deal opened without its people's past only shows files from after it was opened.

If it doesn't work

  • No Documents card. The card only shows when the deal has at least one file. Your role may also not see customers.

  • A file is missing. Check that it is on a note, an email or a message of this deal, and that your role can see them. A small picture on an email or message is never listed.

  • I can't pin a file. You need to be allowed to edit the deal. With the API, use a Full access key.

  • The star doesn't show. Point at the row. The star shows when you point at it.

  • Sam says there is no file. Name the deal in your question, like "the contract on the Brightlane Agency deal", and the file by its name.

Did this answer your question?

NoPartlyYes
Built with Alori