docshare

v0.1.0
io.github.CloudCorpRecords/docshare Checked 1 day ago Published 28 days ago

EveryPage tracked PDF links: upload, update and delete PDFs, variant links and webhooks.

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

everypage_share_pdf

Create a tracked link by uploading a PDF to your EveryPage account (from a local path, or by fetching any user-supplied https URL) and get the tracked link, embed code and QR URL — applying share settings to the new file in the same call

ParameterTypeDescription
source *stringA local file path, or any https URL: for a URL, the server fetches the user-supplied address itself (without sending your EveryPage key) and uploads the bytes it returns. The bytes must start with the…
settingsobjectFileSettings fields to apply in the same call: viewerMode (standard|scroll|flipbook|swipe|magazine), password (empty string clears), allowDownload, requireEmail, notifyOnView, deleteAt (date-time), ne…

everypage_list_files

List documents, optionally filtered by name

ParameterTypeDescription
namestringName filter.

everypage_get_file

One document's links, protection and status

ParameterTypeDescription
file *stringA file UUID, a short link id, or a share URL (including /embed/ links and ones carrying ?via=).

everypage_update_file_settings

Change passcode, expiry, downloads, viewer mode, email gate, view limit, page range, slug

ParameterTypeDescription
file *stringA file UUID, a short link id, or a share URL.
settings *objectThe API's FileSettings object, passed through: viewerMode (standard|scroll|flipbook|swipe|magazine), password (empty string clears), allowDownload, requireEmail, notifyOnView, deleteAt (date-time), ne…

everypage_delete_file

Trash a document, or purge it permanently

ParameterTypeDescription
file *stringA file UUID, a short link id, or a share URL.
purgebooleanDefault trashes; purge: true is the irreversible delete.

everypage_replace_content

Replace the PDF stored behind a live link with new content (from a local path, or by fetching any user-supplied https URL), keeping the link and its history · Pro

ParameterTypeDescription
file *stringA file UUID, a short link id, or a share URL.
source *stringA local file path, or any https URL the server fetches itself (without sending your EveryPage key); same lanes and %PDF- magic check as everypage_share_pdf.

everypage_get_readership

Who read it, how far they got, where they dropped off

ParameterTypeDescription
file *stringA file UUID, a short link id, or a share URL.

everypage_list_events

Recent reads, downloads or captured leads, with a polling cursor

ParameterTypeDescription
filestringOnly events for this file.
limitintegerMaximum events to return.
sincestring | numberThe per-stream cursor from a previous call; cursors are valid only for the same type.
typestringEvent stream. Defaults to view.

everypage_create_variants

Create one tracked link per recipient on your EveryPage account, so reads are attributed by name · Pro

ParameterTypeDescription
file *stringA file UUID, a short link id, or a share URL.
labels *arrayOne variant is created per label, in order.

everypage_list_variants

Those links and their status

ParameterTypeDescription
file *stringA file UUID, a short link id, or a share URL.

everypage_update_variant

Rename, revoke or restore one recipient's link · Pro

ParameterTypeDescription
file *stringA file UUID, a short link id, or a share URL.
variant *stringThe variant UUID.
labelstringNew label; empty string clears.
overridesobjectREPLACES the stored override set as a whole.
revokedbooleanRevoke or restore the link.

everypage_delete_variant

Delete it, or GDPR-redact the recipient's name · Pro

ParameterTypeDescription
file *stringA file UUID, a short link id, or a share URL.
variant *stringThe variant UUID.
redactbooleanGDPR-redact the recipient's name instead of a plain delete.

everypage_list_webhooks

Webhook endpoints and their delivery health

everypage_manage_webhook

Create, test or delete a webhook endpoint

ParameterTypeDescription
action *stringcreate, test or delete.
eventsarrayRequired for create, e.g. file.opened, file.viewed, gate.completed.
urlstringRequired for create; a plain HTTPS URL.
webhookstringThe webhook UUID; required for test and delete.

everypage_account

The connected account, its plan, and what that plan allows