Steps
A qURL link from qurl share with no flags opens once and expires within 24 hours on its own. To end access sooner, run qurl stop <CRID> to stop serving the app (qurl start <CRID> resumes it) or qurl delete <CRID> to retire it for good. With an account, revoke one link through the API while the others keep working.
Find the CRID
Every command that ends access takes the app’s CRID, which
qurl publishprinted.qurl list --status activelists the resources this device published.qurl list --status activeLet unused links run out
A link from
qurl sharewith no flags opens once and expires within 24 hours, so an unopened link ends on its own. A session that is already open runs until it ends, 1 hour by default: an expired link does not end it. For the next link, keep both short.qurl share <CRID> --ttl 1h --session-duration 30mStop serving the app
qurl stoppauses serving the app and keeps the resource and its CRID;qurl startresumes it. A stopped app still counts toward your resource limit.qurl stop <CRID>Delete the resource for good
qurl deleteasks you to confirm, then retires the CRID: existing links stop working, people you let in lose their way in, and the CRID can never be shared again. Publishing the same app again gives it a new CRID. To confirm the delete, runqurl share<CRID>: it fails with “Resource Revoked (HTTP 400)” and exit code 5.qurl delete <CRID>Revoke one person’s invitation
Where private access policies are available, if you invited people by email (qurl 3.6.0 or later), list the invitations to find that person’s ID and the current version, then revoke it. That removes the invitation and the access it granted, and everyone else keeps theirs. The invitation flow and cleanup have not been tested end to end against the hosted service. If cleanup is pending, list invitations again to get the current version before retrying. Or ask your coding agent: “Revoke contractor@example.com's qURL invitation to the app.”
qurl access list_invitations <CRID> -o json qurl access revoke_invitation <CRID> <invitation-id> --version <version> -o jsonRevoke one link through the API
With an account, revoke a single link while the resource and its other links keep working. Use GET /v1/resources/{id}/qurls to find the qurl_id, or store it when you create the link. Revoking a link can also end the live sessions it opened; if the API returns a retryable failure, follow its retry guidance.
curl -X DELETE https://api.layerv.ai/v1/resources/<id>/qurls/<qurl_id> \ -H "Authorization: Bearer $QURL_API_KEY"
What the recipient sees
A used or expired link shows “Access link invalid”.
More
An unused link to a deleted resource lands on “Resource not found”. An invited person whose invitation you revoked loses the access it granted.
What each one is, and what ends it
An ngrok endpoint stays up while its agent runs, and a tunnel URL stays public until you shut it down. With qURL every way in has its own end: the published app, each link, each invitation and each visit, with different ways to end each. From the qurl 4.1.0 command help, the CLI README and the API reference.
| What | What it is | How long it lasts | What ends it | Account needed? |
|---|---|---|---|---|
| Published app | The app you published, named by its CRID. Its address opens only for you and the people you allow, so the address alone lets no one in. | Until you delete it; reachable while your computer and the app run. | qurl stop <CRID> stops serving it until qurl start <CRID>. qurl delete <CRID> retires it and every way in, for good. | No |
| One-time link | A bearer link from qurl share, for one person. It opens once; for access that names the person, use an invitation. | One opening, within --ttl: 24 hours at most without an account, 30 days with one. | Expiry or its one opening. qurl stop stops serving the app for every link at once, and qurl delete retires every link. Revoking one link while the others keep working is an API call. | Only to revoke one link |
| Email invitation | Names one email address, on an app published with --access invite_only. The person verifies that mailbox and saves a passkey; strangers cannot ask for access. | Until you revoke it or delete the app; their passkey brings them back. | qurl access revoke_invitation removes the invitation and the access it granted. Deleting the app ends every invitation. | Where private access policies are available (qurl 3.6.0+) |
| Visit | The session a one-time link starts: this one app, for the browser that opened it. | --session-duration: 1 hour by default, 24 at most. The link expiring does not end it. | Its configured duration. The effect of stop, delete or revocation on an already-open session has not been verified. | No |
Sources: Every way in, compared, CLI README, API reference, Agent skill.
Troubleshooting
| If you see | Do this |
|---|---|
| Someone still reaches the app after their link expired | Their session is still open: an expired link does not end a session already in progress. Run qurl stop <CRID> to stop serving the app, and give the next link a shorter --session-duration. |
| The app still answers on another address | Publishing does not close a separate public route the app already has. Bind the app to 127.0.0.1 and stop any tunnel or port forward that points at it. |
Show 8 more fixes
| If you see | Do this |
|---|---|
| qurl share says “Resource Revoked (HTTP 400)” with exit code 5 | The resource was deleted. That is final: a deleted CRID can never be shared again. Publish the app again to get a new CRID, and send the new address. Running qurl delete <CRID> --yes a second time succeeds again and prints deleted: true, so a script that has to confirm the delete checks qurl share instead. |
| DELETE /v1/qurls/{id} rejects a q_ link ID | That route retires a resource and all its links and does not accept a link ID. To revoke one link, use DELETE /v1/resources/{id}/qurls/{qurl_id}. |
| 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
Can I revoke one link without an account?
No. Revoking a single link is an API call and needs an account. Without one, links end on their own, after one opening or within 24 hours, and qurl stop <CRID> stops serving the app for every link at once.
What is the difference between link expiry and session duration?
Link expiry stops new openings after a deadline; session duration is how long an opened session lasts. Set them with --ttl and --session-duration on qurl share. The session defaults to 1 hour and can run up to 24 hours.
How do I stop sharing?
Run qurl stop <CRID> to pause serving the app, and qurl start <CRID> to resume it; a stopped app still counts toward your resource limit. qurl delete <CRID> removes the resource for good after asking you to confirm; its CRID can never be shared again.
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.