share

v0.10.0
com.htmlradar/share Checked 17 hours ago Published 14 days ago

Send a web page to specific people, control who opens it, see how it was read, and update it.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

share_html Share HTML as a tracked link

Publishes an HTML document (a deck, report, dashboard, proposal or one-pager) as a tracked HTMLRadar link, and returns two addresses: the link for the recipient, and a dashboard address for the sender. The recipient sees the document as written and never the tracking. The markup goes in `html`; there is no file-path argument, so a file on disk is published by passing its markup. By default the recipient is asked for their email address before the document opens. The new HTML is screened for phishing signals as every upload is; the link is live the moment it is returned unless the screen holds…

ParameterTypeDescription
html *stringThe HTML markup to publish, in full. There is no file-path argument: a document on disk reaches this tool only as markup the caller has already read.
allowed_email_domainsarrayOnly these email domains may open the link, e.g. ["acme.com"]. Up to 500. Needs the email gate, which is on by default; with it off the call is refused.
allowed_emailsarrayOnly these exact addresses may open the link. A separate list from the domains, and a visitor passes on either. Up to 500 addresses; an allowed domain covers all addresses in that domain. Needs the em…
commentsstringWhether readers can comment. Off by default. Turning comments on needs the email gate and a one-time code; who sees comments follows the link.
expires_in_hoursintegerLink stops working after this many hours.
lock_deckbooleanBlocks save and print; default true. False allows a recipient to keep a copy.
passwordstringExtra password gate on top of the email gate.
recipient_labelstringWho this link is for. A separate link for each recipient separates their reading reports.
request_idstringOptional on a first attempt. When a previous call may have been applied, the request_id named by its error makes a retry return the first result instead of doing it twice.
require_emailbooleanWhether the recipient must give an email address before the document opens. Defaults to true.
show_watermarkbooleanShow a faint watermark when lock_deck is true. Defaults to true on creation; omitted on edit keeps the saved choice.
slugstringCustom link name, so the URL reads /r/acme-proposal. Paid plans only.
titlestringThe document's name on your dashboard. Readers can see it too: it names the page in the one-time code email they receive.
verify_emailbooleanWhether the reader must prove their email address with a six-digit code before the document opens. Off by default. A verified address identifies the reader rather than an address merely typed into the…

create_share Make another tracked link for an existing document

Creates an additional tracked link for a document already on HTMLRadar, with its own recipient label, gate, password, expiry and address. One link per recipient is what separates their reading reports. It uploads nothing and creates no second copy of the document, and it cannot publish new markup. The document id comes from list_documents or list_shares. The link is live the moment it is returned, but a held or blocked document does not open for readers through any link. The answer includes the saved rules and whether comments are on.

ParameterTypeDescription
document_id *stringThe document to make another link for: the document id from list_documents or list_shares.
allowed_email_domainsarrayOnly these email domains may open the link, e.g. ["acme.com"]. Up to 500. Needs the email gate, which is on by default; with it off the call is refused.
allowed_emailsarrayOnly these exact addresses may open the link. A separate list from the domains, and a visitor passes on either. Up to 500 addresses; an allowed domain covers all addresses in that domain. Needs the em…
commentsstringWhether readers can comment. Off by default. Turning comments on needs the email gate and a one-time code; who sees comments follows the link.
expires_in_hoursintegerLink stops working after this many hours.
lock_deckbooleanBlocks save and print; default true. False allows a recipient to keep a copy.
passwordstringExtra password gate on top of the email gate.
recipient_labelstringWho this link is for. A separate link for each recipient separates their reading reports.
request_idstringOptional on a first attempt. When a previous call may have been applied, the request_id named by its error makes a retry return the first result instead of doing it twice.
require_emailbooleanWhether the recipient must give an email address before the document opens. Defaults to true.
show_watermarkbooleanShow a faint watermark when lock_deck is true. Defaults to true on creation; omitted on edit keeps the saved choice.
slugstringCustom link name, so the URL reads /r/acme-proposal. Paid plans only.
verify_emailbooleanWhether the reader must prove their email address with a six-digit code before the document opens. Off by default. A verified address identifies the reader rather than an address merely typed into the…

list_shares List tracked links on this account

Lists the account's tracked links, newest first: the slug, the recipient label, the document title, whether it has been opened and when, and the share and document ids for each link. A link made in an earlier conversation is found here. The `opened` and `last_open` fields show which links nobody has opened. Returns at most 50 per call; the `before` cursor pages back through older links.

ParameterTypeDescription
beforestringCursor for the next page: the `next_before` value printed at the end of a previous list_shares result, of the form <created_at>|<share id>. Its exact value selects the next page; omission selects the…

list_documents List documents on this account

Lists the account's documents, newest first: the title, when it was created, how many tracked links point at it, and its document id. A document with no links appears here and not in list_shares, which lists only documents that have been sent. It returns no document contents. Returns at most 50 per call; the `before` cursor pages back through older documents.

ParameterTypeDescription
beforestringCursor for the next page: the `next_before` value printed at the end of a previous list_documents result, of the form <created_at>|<document id>. Its exact value selects the next page; omission select…

get_share_activity Check who read a tracked link

Reports whether a tracked HTMLRadar link has been opened and how many read it. For each reader shown in full, it reports who they are, how long they read, how far they scrolled, and all recorded sections ordered by reading time. On Free, the first five readers of a link are shown in full; later readers appear as a "more read it" count. Reading times are rounded down; scroll percentages are rounded to the nearest whole percent. It accepts the link's share id, slug or full address. With `include_detail`, each reader shown in full has their country, city, device and referring page added.

ParameterTypeDescription
share_id *stringThe share id returned by share_html, or the share's slug (the part after /r/ in its link), or the link itself.
include_detailbooleanAlso return each reader's country, city, device and referrer. Off by default; whether the document was read, and which parts, is answered without it.

revoke_share Switch a tracked link off, or back on

Switches off a tracked link that has already been sent. It is only for a user who asks to switch a link off, and never a stand-in for a request to delete a page or a link, which is possible only on the website. Anyone who opens it afterwards sees that it is no longer available, and the sender is emailed that somebody tried, at most once every six hours for a link. This changes what a recipient can see. It is reversible: `revoked: false` switches a link back on, however long ago it was switched off, but a link past its end date stays closed until update_share sets a new end date or clears it. I…

ParameterTypeDescription
share_id *stringThe link's share id, slug (the part after /r/), or full address.
revokedbooleanTrue (the default) switches the link off. False switches it back on.

get_share Read a tracked link's settings

Returns a tracked link's current settings, in the form update_share changes them: who can open it (the full allowed-domain and allowed-address lists), the email gate and its one-time code, whether a password is set (never the password), the end date, the copy lock, comments, the label, who the gate names, whether the sender is emailed on the first open, and the settings version. It reads one of this account's links and changes nothing. The answer includes the saved rules and the settings version that update_share takes as expected_settings_version.

ParameterTypeDescription
share_id *stringThe link's share id, slug (the part after /r/), or full address.

update_share Change a tracked link's settings

Changes the settings of a tracked link that has already been sent, on the same link: who can open it (allowed domains and addresses), the email gate and its one-time code, the password, the end date, the copy lock, the label, who the gate names and whether the sender is emailed on the first open. Comments can be on or off; enabling needs a code-confirmed email gate. The answer includes the saved rules. The link, its address and its whole reading history stay the same. Only the settings named in the call change; every other setting is left as it is, and a setting is removed when it is named in…

ParameterTypeDescription
share_id *stringThe link's share id, slug (the part after /r/), or full address.
add_allowed_email_domainsarrayDomains to ADD to the stored list of allowed domains, merged on the server.
add_allowed_emailsarrayAddresses to ADD to the stored list of allowed addresses. The server merges them over the list as it is now, so nothing has to be copied back. Needs the email gate on.
allowed_email_domainsarrayOnly these email domains may open the link, e.g. ["acme.com"]. This REPLACES the whole stored list, so entries absent from this value are removed. `clear` removes the list. Needs the email gate on.
allowed_emailsarrayOnly these exact addresses may open the link. A separate list from the domains; a visitor passes on either. This REPLACES the whole stored list, so entries absent from this value are removed. `clear`…
cleararraySettings to remove: the label, the password, the end date, the domain list, the address list. Removing a list lets anyone who passes the email gate in. A setting that is not named here or above is lef…
commentsstringWhether readers can comment. Omitted keeps the current choice. Turning comments on needs the email gate and a one-time code; who sees comments follows the link.
expected_settings_versionintegerThe settings version get_share showed. The change is made only if the link is still at that version; if the settings changed since they were read, nothing is changed and the call returns the current s…
expires_atstringWhen the link stops working, as a date and time such as 2026-12-31T17:00:00Z. Mutually exclusive with `expires_in_hours`. `clear` removes the end date.
expires_in_hoursnumberThe link stops working this many hours from now. Mutually exclusive with `expires_at`.
lock_deckbooleanThe copy lock: true blocks save and print; false allows them.
notify_first_openbooleanWhether the sender is e-mailed when someone reads this link.
passwordstringA password of at least 8 characters on top of the email gate. `clear` removes it.
recipient_labelstringA new label for who this link is for, e.g. "Acme".
remove_allowed_email_domainsarrayDomains to REMOVE from the stored list of allowed domains, merged on the server.
remove_allowed_emailsarrayAddresses to REMOVE from the stored list of allowed addresses. The answer says which were not on the list. Removing the last entry of every list is refused; `clear` removes a whole list.
require_emailbooleanWhether the email gate is on. Turning it off removes the check that the list of allowed domains and addresses relies on; those lists must be cleared in the same call.
show_senderstringWho the gate names to the reader: nobody, the sender's company, or the sender's name. The company needs a work sign-up address; the name needs one set in Settings.
show_watermarkbooleanShow a faint watermark when lock_deck is true. Defaults to true on creation; omitted on edit keeps the saved choice.
verify_emailbooleanWhether the one-time-code check is on: the reader receives a six-digit code and opens the document only when they type it back. Needs the email gate on.

list_attachments List a document's attached files

Lists the files attached to a document on HTMLRadar (supporting materials a reader can download beside the page): the file name, its size and the attachment id. It returns no file contents and changes nothing. After an add_attachment call that gave no answer, this list shows whether the file was attached.

ParameterTypeDescription
document_id *stringThe document: the document id from list_documents or list_shares.

add_attachment Attach a file to a document

Attaches one file to a document already on HTMLRadar, for readers of its links to download. The file types are the website's (PDF, Office documents, images, CSV, text, Markdown, ZIP) and a document holds up to 20 files. The file travels as base64 in `content_base64`, because a tool argument is JSON, so it can be at most 5.0 MB, the same limit as publishing a page this way; a larger file (the website takes 25 MB) is added on the website. Readers see the file from the next time they load the page. There is no file-path argument.

ParameterTypeDescription
content_base64 *stringThe file's contents, base64-encoded.
document_id *stringThe document: the document id from list_documents or list_shares.
filename *stringThe file name with its extension, e.g. "pricing.pdf". The extension decides the type.

remove_attachment Remove a file from a document

Removes one attached file from a document. Downloads stop at once, even from a page a reader already has open; the file leaves the page's list the next time the page loads. Copies a reader already downloaded stay with them. It removes the file only: the page, its links and its reading history are untouched, and there is no tool that deletes a page or a link. The file cannot be recovered from HTMLRadar; attaching it again needs the original file. list_attachments returns the attachment id.

ParameterTypeDescription
attachment_id *stringThe attachment id from list_attachments.
document_id *stringThe document the file is attached to: from list_documents or list_shares.

get_reading_records Get a document's reading records

Returns the reading records the HTMLRadar website exports as a spreadsheet, as CSV text: for readers shown in full, one row per section per read (a read with no section recorded has one row with the section columns blank; section_status says "not measured" when the page changed while it was being read, so no section time was taken), with the link's label and slug, the reader, whether their address was verified, when they opened it, how long they read, how far they scrolled, and their country and device where recorded; proved_by says how each read got in (code, microsoft, google, password, addr…

ParameterTypeDescription
document_id *stringThe document: the document id from list_documents or list_shares.
continue_fromstringThe `continue_from` value a previous answer gave selects the rows after it. Omission starts from the first row.
share_idstringLimit the records to one link: the share id, the share's slug, or the link itself.

replace_document Replace a document, keeping every link

Replaces the contents of a document already on HTMLRadar, which is how a page that has been sent is updated. Every existing link stays exactly as it is (same address, same settings, same reading history) and serves the new contents from the next time it is opened, so nobody is sent a second link; a link that is switched off or past its end date stays closed. The new HTML is screened for phishing signals as every upload is, and readers of a page the screen holds see that it is not available yet. The previous version stays listed in the document's version history on the website. There is no rest…

ParameterTypeDescription
document_id *stringThe document whose contents are being replaced. Every link to it keeps working.
expected_version *integerThe document's current version as you last saw it: get_document and list_documents show it, and each replace_document result gives the new one. When the document has been replaced since, nothing is re…
announcebooleanWhether readers see what changed and subscribers receive an alert. Omitted means an announcement only when every live link is company-only; otherwise the replacement is quiet.
editsarrayChanges to the page get_document returned, applied in order. Each `find` must appear exactly once in the page at that point. Between 1 and 200. Mutually exclusive with `html`.
htmlstringThe new HTML markup, in full. It may keep the htmlradar-image references get_document returned. Mutually exclusive with `edits`.
notestringOptional note for an announced update, at most 140 characters.
request_idstringOptional on a first attempt. When a previous call may have been applied, the request_id named by its error makes a retry return the first result instead of doing it twice.

get_document Read a document to change it

Returns the current contents of a document on HTMLRadar so they can be changed and put back with replace_document. A change to a page already on HTMLRadar is made this way, for pages up to 30 MB, the same limit as the website: read the page here, then send the edited short form, or only the changes, to replace_document; a whole new file is needed only to replace the page itself. Each embedded PNG, JPEG, GIF and WebP image appears as a short htmlradar-image reference instead of its data; unchanged references restore the original images, and other embedded images, such as SVG, stay in the markup…

ParameterTypeDescription
document_id *stringThe document to read: the document id from list_documents or list_shares.
querystringText to find, 1 to 200 characters, matched literally with letter case ignored, such as a product name or a price. Returns up to 20 passages around the matches, and how many there are, instead of the w…

whoami Show the HTMLRadar plan and free links used

Reports which HTMLRadar account the API key belongs to (its email address), the plan it is on and how many of its free tracked links it has used out of the free allowance, or that tracked links are unlimited. It also reports what this connection may do (read only, or read and publish), any notice about the plan, and any notice about a newer version of the HTMLRadar package.

get_page_guidelines Get page guidelines

Returns HTMLRadar's guidelines for pages that read well on phones and give accurate section reading times. It reads no account data and changes nothing.