Skip to main content

Overview

Entry pages allow you to share documents with external parties via secure, time-limited URLs. The recipient can view the document without needing a Factify account.

Prerequisites

  • An existing document ID
  • A valid API key

Code Example

import { Factify } from "@factify/sdk";

const factify = new Factify({ bearerAuth: process.env.FACTIFY_KEY });

async function shareDocument(documentId: string) {
  const entry = await factify.entryPages.generate({
    documentId
  });

  console.log(`Share URL: ${entry.generateEntryPageResponse?.downloadUrl}`);
  return entry.generateEntryPageResponse?.downloadUrl;
}

shareDocument("doc_01h2xcejqtf2nbrexx3vqjhp41");

Response

{
  "download_url": "https://view.factify.com/ep_01h2xcejqtf2nbrexx3vqjhp43"
}

Options

ParameterTypeDescription
documentIdstringRequired. The document to share

Next Steps