Four different events are all called an “open”
| Kind of tool | What “opened” means | What you can learn | What else can trigger it |
|---|---|---|---|
| Document viewer (DocSend, Papermark) | The file you uploaded was viewed through the vendor’s link | View events, page analytics and visitor details; an email address when the vendor asks for or verifies one | Anything that renders the page as a visitor would |
| Short link (Bitly) | The short link was followed to the destination | Engagement counts, locations, referrers and devices, grouped | Spam checkers that expand the link, and the shortener fetching the destination itself |
| Email read receipt (tracking pixel) | The images in the email were loaded | A count of loads and their timing | Mail clients and tools that load images without the person reading, or in the background on arrival |
| qURL link to an app or file on your machine | A browser opened the link and got a session to the app or folder | The link id, CRID, access count, whether a one-time link was consumed, the source IP and the user agent; with an invitation, the verified email on the grant | A scanner that opens the link in a real browser and runs its page |
What an “open” is for a qURL link
A link from qurl share is a bearer credential whose secret comes after the #. The first successful opening in a browser consumes it and starts one session for that browser, which is the event qURL reports as qurl.accessed with consumed set to true. Requests the browser makes during that session are the same visit, not new opens. A forwarded copy of the link opened later shows “Access link invalid”, and a one-time link that is used up is reported as qurl.token_exhausted.
A fetch without a browser is not an access. HTTP clients never send the part after the #, so curl, a link-preview bot or an AI agent’s fetch tool gets the opening page, never the app. On 2026-11-19 we fetched a private resource’s qurl.link address with a GPTBot User-Agent and got the generic qurl.link page from CloudFront, with none of the app’s content. A scanner that opens the link in a real browser and runs its page is different: it can use the one opening, and then you receive an event with the scanner’s IP and user agent.
The webhook runs on the LayerV side, so your app does not need an accounts system or a logging layer to produce these events. LayerV already sees which links were issued, opened, denied or revoked, and session metadata such as source IP; TLS ends at LayerV, which routes the traffic and keeps none of the content. A webhook delivers that record to an HTTPS endpoint you control. Without a webhook, GET /v1/resources/<CRID>/qurls shows each link’s status and use_count on demand.
Steps
DocSend and Papermark report that a document was viewed, Bitly that a short link was clicked, and an email read receipt that a tracking image loaded. For a live app or file served from your machine, qURL by LayerV sends a qurl.accessed webhook on each opening with the CRID, access count, source IP, user agent and whether a one-time link was consumed. Invitations, review and email capture tie access to a verified email.
Install the qURL CLI
On macOS, install it with Homebrew. On Linux and Windows, download the package for your platform from the latest release; the CLI page lists each one. Nothing asks you to sign up.
brew install layervai/tap/qurl brew upgrade qurl qurl --versionLink the publishing machine to your webhook account
On a new or unlinked publisher, run qurl account setup and sign in to the account that will own the webhook. If this machine already belongs to that account, continue to publishing. Keep the same account open in the dashboard for the API steps.
qurl account setupCheck: Account setup confirms the link. After publishing, verify the returned CRID appears in this account’s dashboard before creating the webhook.
Publish the app or the folder
Run
qurl publishon the machine that runs the app. Confirm that this publisher belongs to the account where you will create the webhook. The resource is private, so nobody can open it until you share a link or invite them. The name is public text that recipients see on the access page; keep secrets out of it. For a folder, serve it first on 127.0.0.1, for example with python3 -m http.server 8000 --bind 127.0.0.1, and publish that port instead.qurl publish http://127.0.0.1:3000 --name "Q3 report" -o jsonCheck: The reply says private: true. Save the CRID: the webhook events carry it as crid.
Create an account API key for webhook management and delivery history
The qURL CLI needs no account, but the webhook API does. Sign in to the dashboard, open the API keys page and create a key with the qurl:write scope, which the API reference lists as the scope that manages webhooks. Reading deliveries and link status requires qurl:read. Select both scopes for this walkthrough, or use a separate read-only key for its GET requests. Keep the key in your shell.
export QURL_API_KEY="<your account API key>"Check: The dashboard shows the selected scopes.
Create the webhook
Subscribe your endpoint to the three access events: qurl.accessed for each opening, qurl.token_exhausted for a one-time link that is used up, and qurl.access_denied for an opening refused by policy. The URL must be HTTPS. The API reference says creating a webhook does not support idempotent retries, so after an uncertain result list your webhooks (GET /v1/webhooks) before you create another.
curl -sS -X POST https://api.layerv.ai/v1/webhooks \ -H "Authorization: Bearer $QURL_API_KEY" \ -H "Content-Type: application/json" \ -d '{"url":"https://example.com/hooks/qurl","events":["qurl.accessed","qurl.token_exhausted","qurl.access_denied"],"description":"Link opens"}'Check: The response body has a data object containing webhook_id and a secret that starts with whsec_. The secret is returned only once; save it now. It cannot be read again, only regenerated.
Verify QURL-Signature in your receiver
Every qURL webhook delivery carries a QURL-Signature header. The API reference requires you to verify it with the webhook secret before you process a payload, so a POST from anyone else to your endpoint is ignored. Have the receiver answer with a 2xx status once it has recorded the event; each event carries a unique id, so a repeat delivery can be skipped by id.
Check: A POST to your endpoint without a valid signature is rejected by your receiver, and a valid one is logged.
Make a link and send it
qurl shareprints a single-use access link. --ttl is how long it waits to be opened, up to 24 hours without an account and 30 days with one. The expiry line, or single_use in the JSON reply, says it opens once.qurl share <CRID> --ttl 24h -o jsonCheck: single_use is true in the reply. Keep the CRID for the resource. The delivered event includes qurl_id for the individual link.
Send the link in a direct message
Send it in a direct message, not a public channel: whoever opens it first uses it. Avoid email and apps that preview links, because a scanner that runs the page could use its one opening. Don’t open it yourself to check it, for the same reason. Run
qurl shareagain whenever you need a fresh link.Read the event
When the recipient opens the link, your endpoint receives a qurl.accessed event. Its type names the event, its data is the record of the opening, and crid tells you which resource it belongs to. This is the API reference’s own example of the data for a URL or qURL Connector resource. access_count is the count after this access; consumed says whether this opening used up a one-time link; src_ip and user_agent are the viewer’s. The reference says concurrent events can show the same count, so read the resource’s current link summaries when you need the later state.
{ "type": "qurl.accessed", "id": "<event id>", "timestamp": "<date-time>", "data": { "qurl_id": "q_3a7f2c8e91b", "resource_id": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE2cTVv5_3eeYCcLLq5ROYCqcmY50HiKZ9ATglIkPnCji1E_S63UMtXba1moR8-Q6EV7oM6zwwh9_j2CDujzXvLA", "crid": "ahpviqz46qwcvx56glfatm3p3ooccwfcf2it4sdgjervwdkapykw3o3qdq2a", "access_count": 3, "consumed": false, "src_ip": "192.168.1.100", "user_agent": "Mozilla/5.0..." } }Check: The event’s type is qurl.accessed and its data.crid matches the CRID you published. For a share link, consumed is true.
Check deliveries when nothing arrives
The qURL deliveries list shows each attempt with its status (pending, success, failed, retrying or abandoned), the response code, up to 4096 bytes of the response body and any error message. A failed status with your endpoint’s error tells you the receiver rejected the POST; no rows at all means no subscribed event has fired.
curl -sS "https://api.layerv.ai/v1/webhooks/<webhook-id>/deliveries" \ -H "Authorization: Bearer $QURL_API_KEY"Check: The latest row has event_type qurl.accessed, status success and your endpoint’s 2xx response_code.
Without a webhook: read each link’s status
For polling alone, use an account API key with qurl:read. If you cannot run an HTTPS receiver, read the status of every qURL link on demand. Each link has a status of active, consumed, expired or revoked and a use_count. Pass meta.next_cursor as cursor until meta.has_more is false; a short page does not mean the list is complete, and the order is not guaranteed.
curl -sS "https://api.layerv.ai/v1/resources/<CRID>/qurls" \ -H "Authorization: Bearer $QURL_API_KEY" # next page, while meta.has_more is true: curl -sS "https://api.layerv.ai/v1/resources/<CRID>/qurls?cursor=<next_cursor>" \ -H "Authorization: Bearer $QURL_API_KEY"Check: The link you sent shows status consumed with use_count 1 after the recipient opens it, and status active before.
For a named person, invite them instead
A qURL link tells you that a browser opened it, not who. When the opening must be tied to a person, publish with the invite-only policy and invite their address. Only that mailbox gets in, after proving control of it and saving a passkey, and the grant carries the verified email after mailbox proof and disclosure consent. For the resource you already published, find its CRID in the active list and use consumer_access.version for --version. When consumer_access is absent, use 0. Then change the policy and invite the recipient. After configuring the policy, send the full https://qurl.link/<CRID> address or the emailed invitation for future access; this resource no longer issues new bearer links.
qurl list --status active -o json qurl access configure <CRID> --mode invite_only --version <current-version> -o json qurl access invite <CRID> --email recipient@example.com -o json qurl access list_grants <CRID> -o jsonCheck: Confirm the policy is invite_only. After the person verifies, list_grants shows their grant as active with their email. This walkthrough does not verify webhook delivery for grant-based access; list_grants confirms enrollment, not a new visit.
What the recipient sees
The recipient opens the qURL link in a browser, sees the resource’s name and who published it, and lands in the app or folder for the session.
More
Opening the same link again shows “Access link invalid”. An invited recipient opens the qurl.link address, verifies the invited mailbox and saves a passkey before they get in. Neither sees that an event was sent to you.
What each tool reports when a link is opened
Each row follows the vendor’s own documentation in the sources. Rows quoting DocSend’s and Bitly’s help centers were read from search snippets of those pages.
| Tool | Protects | Reports | Identity | How you are told |
|---|---|---|---|---|
| DocSend | An uploaded document | DocSend’s help center says the Activity tab highlights page-by-page analytics and visitor details such as name, location and device; per-page analytics are available for PDF, Word, PowerPoint, Google Docs, Google Slides and Keynote files | DocSend’s help center says email authentication, on its Advanced, Advanced Data Rooms and Enterprise plans, requires visitors to confirm they own the email address; viewer email validation checks that an address comes from a valid, deliverable source | DocSend’s help center says email notifications can trigger immediately once a visitor accesses any of your links |
| Papermark | An uploaded document or data room; open source and can be self-hosted | A view notification, triggered by the view event, with the viewer email if available and, on Business and Enterprise plans, an optional location | An email verification option, so only users with verified email addresses can access the content | An email to your team, with a “Receive email notification” toggle on each link |
| Bitly | Nothing: it redirects to a destination you host elsewhere | Total engagements, locations, referrers and devices; clicks from emails, text messages and pasted or typed links show as “Direct” | None: cities with fewer than 5 clicks are grouped so that no individual can be identified or located from a click | Analytics on the link; Bitly filters bot traffic to the best of its ability, but reports may still contain some bot clicks |
| Email tracking (Mailtrack) | Nothing: it reports on the email itself | Opens, counted when a tracking pixel added to the email loads; without images, no tracking is possible | None beyond the recipient address you sent to | Open events; some email apps and CRM tools generate multiple open events without the recipient ever opening the email |
| qURL | A live app or a folder served from your machine, with no public address | A qurl.accessed event per opening with qurl_id, crid, access_count, consumed, src_ip and user_agent; qurl.token_exhausted when a one-time link is used up; qurl.access_denied for an opening refused by policy | None for a share link. With an invitation, the grant carries the verified email after mailbox proof and disclosure consent; mailbox verification does not prove legal identity | A signed POST to an HTTPS endpoint you control, with an account API key; or GET /v1/resources/<CRID>/qurls on demand |
Sources: Vendor: DocSend Documents Activity Tab, Vendor: DocSend Upload Files, Vendor: DocSend Email Notification Settings, Vendor: DocSend Verified Visitors, Vendor: DocSend Viewer Email Validation, Vendor: Papermark, Vendor: Papermark email notifications, Vendor: Papermark require email verification, Vendor: Bitly link analytics, Vendor: Bitly on Direct clicks, Vendor: Bitly on city-level click data, Vendor: How does Bitly handle traffic from bots, Vendor: Mailsuite on how Mailtrack tracks email, Vendor: Mailsuite on open events without a reader, API reference, qURL access behaviour.
Openings that are not the person you sent the link to
Every notification channel has them. Know which ones your tool counts.
| Cause | What the vendor says | What qURL does |
|---|---|---|
| Mail security scanning (Microsoft Defender for Office 365 Safe Links) | Safe Links scans URLs prior to message delivery, whether or not it rewrites them, and detonates URLs that do not have a valid reputation asynchronously in the background | A scan that only fetches the link gets the opening page, because the secret after the # is never sent. A scan that opens the link in a real browser and runs its page can use the one opening; you then receive qurl.accessed with its IP and user agent |
| Spam checkers expanding a short link | Bitly says spam checkers in email programs might expand a shortened link without taking a user to the destination page, and that Bitly fetching the long URL of a short link may show as a click | Expanding or fetching a qURL link is not an access; only an opening in a browser is |
| Mail clients loading images | Mailsuite says some email apps and CRM tools may generate multiple open events without the recipient ever opening the email; Apple says Mail Privacy Protection downloads remote content privately in the background when a message arrives, so a sender cannot see whether it was opened | Not applicable: qURL reports openings of the link, not of the email it travelled in |
| A link preview in chat | Not described by these vendors | A preview that only fetches the link gets the opening page and fires nothing. Send the link in a direct message and do not open it yourself |
Sources: Vendor: Safe Links in Microsoft Defender for Office 365, Vendor: How does Bitly handle traffic from bots, Vendor: Bitly on clicks from fetching the long URL, Vendor: Mailsuite on open events without a reader, Vendor: Apple Mail Privacy Protection, Agent skill, qURL access behaviour.
The qURL webhook events that matter for a sent link
| Event | Meaning | Delivered today |
|---|---|---|
| qurl.accessed | Access through a qURL succeeded; data carries qurl_id, crid, access_count, consumed, src_ip and user_agent | Yes |
| qurl.token_exhausted | A one-time-use token was fully consumed | Yes |
| qurl.access_denied | Access to a qURL was denied by policy | Yes |
| qurl.created | A qURL was created | Yes |
| qurl.revoked | A resource or qURL was manually revoked; one event for a URL or qURL Connector resource | Yes |
| qurl.expired | Planned to report expiration at most once per link lifetime | No: subscribing does not enable delivery |
| resource.closed | Planned to report that all links have ended and no sessions remain | No: subscribing does not enable delivery |
Sources: API reference.
Troubleshooting
| If you see | Do this |
|---|---|
| An open arrived before I sent the link to anyone | Something between you and the recipient opened the link in a browser: a mail security scanner such as Safe Links, which detonates URLs in the background, or a tool that previews links by running the page. Bitly reports the same for shorteners, where spam checkers expand links without a user visiting. Read src_ip and user_agent in the event. The one-time link is now spent, so run qurl share again and send the new link in a direct message. Fix a one-time link that was already used → |
| No events arrive | Check that the published CRID and webhook belong to the same dashboard account. Then list the webhook’s deliveries. No rows means no subscribed event has fired: check that events includes qurl.accessed and that the recipient opened the link in a browser rather than fetching it. A failed or retrying row shows your endpoint’s response code and body: the URL must be HTTPS and must answer with a 2xx status. Remember that qurl.expired and resource.closed are not delivered yet. |
Show 8 more fixes
| If you see | Do this |
|---|---|
| The API refuses the request | Check the account that owns the resource and the key in the current shell. Creating the webhook needs qurl:write; reading deliveries or link status needs qurl:read. |
| I need to know when the link expires unopened | qurl.expired is not delivered yet; subscribing to it does nothing. Read GET /v1/resources/<CRID>/qurls after the --ttl you set: an unopened link shows status expired. |
| qurl publish says the local app is not accepting TCP connections | Start the app first and check that curl works on the same address. qurl publish connects to localhost as 127.0.0.1, so if your app listens only on IPv6 (on macOS or Linux, lsof -iTCP -sTCP:LISTEN -nP shows [::1]), publish 'http://[::1]:PORT' instead, or start the dev server with --host 127.0.0.1 and publish that address. Neither requires listening on your LAN. Keep the quotes: zsh treats the brackets as a pattern. |
| The recipient sees “Access link invalid” | The link was already used or has expired. Run qurl share again and send the new link. |
| The recipient sees “Resource not found” | The resource was deleted after the link was made. Publish the app again, then run qurl share and send the new link. |
| publish rejects http://127.0.0.1 with “only HTTPS URLs are allowed”, asks you to log in, or prints no Access: line | Your qURL CLI is out of date. On macOS run brew update, then brew upgrade qurl; elsewhere install the latest release. After updating, qurl --version prints 3.4.1 or later, and every publish is private by default. |
| publish says this Linux session “can’t reach a systemd user manager” | You are in a container or sandbox without a user service manager. Run qurl publish with --foreground; sharing lasts as long as that process runs. Container and CI setup → |
| publish says “Quota Exceeded” with “protected resource limit reached”, or “Your qURL account has reached a plan limit” | You can see this without an account: a device with no account can keep up to 3 active resources, with links that last up to 24 hours. Run qurl list --status active, then qurl delete <CRID> for any you no longer need (it asks you to confirm; --yes skips that). qurl stop keeps the resource, so it does not free a slot. |
Frequently Asked Questions
Does the event tell me who opened the link?
No. A qurl.accessed event for a share link carries the source IP and the user agent, which identify a network and a browser, not a person. To tie an opening to a person, publish with the invite-only policy and invite their address: the grant then carries the verified email after mailbox proof and disclosure consent. Mailbox verification does not prove legal identity.
Does an email read receipt tell me the link was opened?
No. qURL reports the opening of the link itself; a read receipt counts the tracking image in the email loading, which Mailsuite says is impossible without images and which some email apps and CRM tools trigger without the recipient reading. Apple’s Mail Privacy Protection downloads remote content in the background when the message arrives. None of that says whether the link inside was followed.
Why did DocSend or Bitly show a view before my recipient clicked?
Bitly says spam checkers in email programs might expand a shortened link without taking a user to the destination, and that its own fetch of the long URL may show as a click. Mail scanners such as Safe Links detonate URLs in the background before delivery. The same scanners can reach a qURL link; one that only fetches it gets the opening page, while one that runs the page in a real browser uses the one opening and is reported with its IP and user agent.
Can a link preview or scanner use up my one-time link?
A plain link preview cannot: the secret part of the link comes after the #, and browsers and HTTP clients never send that part to a server, so a preview bot that fetches the link gets only the opening page. A scanner that opens the link in a real browser and runs its scripts can use the one opening, and the reviewer then sees “Access link invalid”. Send the link in a direct message to the reviewer, never open it yourself, and if it was used up, run qurl share again: the app does not need to be published again.
Do I need a LayerV account?
Yes, for this notification walkthrough. Link the publisher before publishing. Basic private sharing alone works without an account. The webhook API and GET /v1/resources/<CRID>/qurls need an account API key from the same account as the resource: qurl:write to manage the webhook and qurl:read to list links. A free account also raises the limits to 10 resources and 30-day links.
Can I be notified without running my own server?
A qURL webhook needs an HTTPS endpoint you control. Without one, read GET /v1/resources/<CRID>/qurls with your API key: each link shows status active, consumed, expired or revoked and a use_count, and you page with meta.next_cursor until has_more is false.
Will I get an event when the link expires?
Not yet. The API reference lists qurl.expired and resource.closed as not yet delivered, and subscribing to them does not enable delivery. Read the link’s status after its --ttl instead.
Who else can reach my app while the link is open?
Opening the link starts a session for that browser, which lasts 1 hour by default. After a browser opens it, another browser on the same public IP cannot use its access. A script or agent that opens the link without a browser is admitted by its network address instead, which other devices on that public IP share until the session ends. A link admits whoever opens it: the API’s IP and country rules do not apply to the signed links qurl share issues. Keep your app’s own sign-in for anything sensitive.
Create the webhook
With the app published and an API key in QURL_API_KEY, subscribe your endpoint to the three access events. Save the secret from the reply; it is shown once.