Share links
A share link gives people a read-only view of one file or folder in a space, at an address of its own:
https://<your Ivy host>/s/<token>
People create links from the file or folder in the Ivy app. Integrations create them through the API with an API key that has the share_links:write scope. Share links are available on every plan.
Audience and access
Every link has an audience and an access level.
| Audience | Who can open it |
|---|---|
organisation (default) |
People in the organisation. They sign in first and see the item even if they aren’t members of its space. |
anyone (anyone with the link, external) |
Anyone who has the link, without an Ivy account. Only when the organisation allows external links (organisation rules). |
| Access | What recipients can do |
|---|---|
view (default) |
Open the file in the browser, and browse a folder. |
download |
Everything view allows, and download the file or its files. |
A link never accepts uploads or changes. Recipients of a folder link browse its subfolders read-only, and see the files as they are now.
Which version
A file link shows the latest version by default: when someone saves a new version, the link shows it as soon as malware scanning has found it clean. Pin a link to a specific version with pin_version to share exactly that version, whatever is saved later.
Create a link
Space editors and admins can create links. With an API key, the link’s creator is the key’s service identity, which needs the editor or admin role in the space.
curl -X POST "https://app.ivy.work/api/v1/organisations/$ORG_ID/spaces/$SPACE_ID/share-links" \
-H "Authorization: Bearer $IVY_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "entry_id": "'"$FILE_ID"'", "access": "download", "expires_at": "2026-12-31T23:00:00Z" }'
| Field | Default | Meaning |
|---|---|---|
entry_id |
required | The file or folder to share. |
audience |
"organisation" |
"organisation" or "anyone". |
access |
"view" |
"view" or "download". |
expires_at |
see below | When the link stops working, as an RFC 3339 time. External links expire after 7 days when you leave it out; null means no expiry, where the organisation allows it. |
password |
none | 8 to 128 characters. Recipients enter it before they see anything, even the item’s name. |
pin_version |
latest | A version number of the file to pin the link to. Not for folders. |
notify |
none | People in the app can email the link: up to 10 emails and an optional message of up to 500 characters. An organisation link can only be emailed to people in the organisation. Not available with an API key. |
The response holds the link and its address:
{
"share_link": {
"id": "0193a3d4-…",
"entry_kind": "file",
"entry_name": "Q3 board report.xlsx",
"audience": "organisation",
"access": "download",
"version": null,
"expires_at": "2026-12-31T23:00:00Z",
"password_protected": false,
"state": "active",
"open_count": 0,
"download_count": 0
},
"url": "https://app.ivy.work/s/…",
"emailed": 0
}
The url is shown once. Its token holds 190 random bits, and Ivy keeps only a SHA-256 hash of it, so a lost link can’t be shown again: create a new one and revoke the old one. The password is stored only as an argon2id hash and is never sent by email; pass it on another way.
With an API key
A key with share_links:write creates links for the organisation audience only (external_links_people_only, 403, otherwise), and without notify. External links and emails stay with people in the app, so a leaked key can’t publish files outside your organisation. A key with share_links:read lists and reads links; one with share_links:write can revoke the links its own service identity created.
Organisation rules
Organisation owners and admins set the rules for every link in the organisation settings:
- External links (
anyone) are off by default. While they’re off, creating one is refused with403andexternal_links_disabled. - Maximum expiry: from 1 to 365 days. External links must then have an expiry within it (
expiry_requiredorexpiry_too_long, both422). - Require a password for external links (
password_required,422).
Changing these rules needs an owner or admin who signed in within the last 10 minutes; Ivy asks them to confirm it’s them otherwise. Turning external links off pauses every external link at once; turning them back on revives the links that haven’t expired.
What recipients see
- Organisation links ask for sign-in first, at the organisation’s own login page, and then open the item. People from another organisation get
not_in_organisation. - External links open without an account. The page shows the item, the organisation’s name and, for downloads, a download button. External pages are marked
noindex, and every response carriesX-Robots-Tag: noindex, nofollow, so search engines don’t list them. - Password-protected links show a password form first. A correct password unlocks the link in that browser for an hour. Wrong passwords are limited per link and IP address, and too many answer
429withtoo_many_attemptsand aRetry-Afterheader. - A file that malware scanning hasn’t checked yet is shown as being checked (
file_scanning), and an infected file is never served (file_quarantined). - HTML files are previewed on Ivy’s separate preview domain (
run.<your Ivy host>), in a sandbox, never on the app’s own domain. - Downloads stream from Ivy’s API, never from a storage URL, and are rate-limited per link and per IP address (
rate_limited,429).
When a link stops working
A link stops working when:
- it expires (
share_link_expired,410) or is revoked; - its creator loses edit access to the space, for example because they left it or their service identity was removed from it;
- the file or folder is moved to the trash or deleted;
- it is external and the organisation turns external links off.
All of these except expiry answer 404 with share_link_not_found, so a recipient learns nothing about the item. The link’s state is paused and paused_reason says why. A paused link works again when the reason goes away: restoring the file from the trash, giving its creator edit access back or turning external links on again revives it. Revoked links never come back.
Manage and revoke links
The Shared links list on each file and folder, and the one for the whole space, show every link with its audience, access, expiry, creator, when it was last opened and how often it was opened and downloaded. Space members see these lists.
curl "https://app.ivy.work/api/v1/organisations/$ORG_ID/spaces/$SPACE_ID/share-links?entry_id=$FILE_ID" \
-H "Authorization: Bearer $IVY_API_KEY"
curl -X DELETE "https://app.ivy.work/api/v1/organisations/$ORG_ID/spaces/$SPACE_ID/share-links/$LINK_ID" \
-H "Authorization: Bearer $IVY_API_KEY"
A link’s creator and the space’s admins can revoke it; can_revoke in each link says whether you can. Revoking takes effect on the next request.
Activity log
Creating and revoking a link, every opening and every download are recorded in the organisation’s activity log with the link’s ID, never with the recipient’s IP address. The link lists show when each link was last opened and how often it was opened and downloaded.
Errors
| Status | Code | When |
|---|---|---|
| 401 | sign_in_required |
An organisation link was opened without signing in. |
| 401 | invalid_password |
The password is wrong. |
| 403 | not_in_organisation |
The person signed in to another organisation. |
| 403 | share_link_locked |
The link needs its password first. |
| 403 | download_not_allowed |
A download from a view link. |
| 403 | external_links_disabled |
Creating an external link while the organisation doesn’t allow them. |
| 403 | external_links_people_only |
Creating an external link with an API key. |
| 404 | share_link_not_found |
The link doesn’t exist, was revoked or is paused. |
| 409 | file_scanning |
Malware scanning hasn’t finished; retry after Retry-After seconds. |
| 409 | file_quarantined |
The file is infected and is never served. |
| 409 | share_link_limit_reached |
The space already has 1,000 links that aren’t revoked. |
| 410 | share_link_expired |
The link has expired. |
| 422 | password_required |
The organisation requires a password for external links. |
| 422 | expiry_required |
The organisation requires an expiry for external links. |
| 422 | expiry_too_long |
The expiry is beyond the organisation’s maximum. |
| 422 | recipient_not_in_organisation |
Emailing an organisation link to someone outside the organisation. |
| 422 | unsupported |
Share links aren’t available in the Local organisation of the apps. |
| 429 | too_many_attempts |
Too many wrong passwords; wait for Retry-After seconds. |
| 429 | rate_limited |
Too many requests for this link from this IP address, or too many links emailed today (50 a day per person). |
See Errors for the error format.