# Getting started PageDrop hosts single HTML, Markdown and TXT files and creates share links with expiration dates, passwords, visit limits, one-time access, custom slugs and pinned versions. Use the console, REST API, MCP server or official CLI to upload and share files. ## Start in 60 seconds 1. **Create an account:** register at `https://pagedrop.space/signup` or your deployment's address. 2. **Upload a file:** open `/files` and drop a `.html`, `.md` or `.txt` file. 3. **Create a link:** select the file and click **Create share link**. Integrations upload first, then create the share once the file's scan has cleared (`scanStatus` is `CLEAN`). A `share` object sent with the upload is deferred, not created. 4. **Create an API token (optional):** open `/developers/tokens` to automate your workflow. ## Integration options | Interface | Use case | Documentation | |---|---|---| | REST API | Scripts, CI and server integrations | [API reference](/developers/api) | | MCP server | Claude Code, Cursor, Claude Desktop and other MCP clients | [MCP server](/developers/mcp) | | Skill | Instructions that teach an AI assistant to use PageDrop tools | [Skill](/developers/skill) | | CLI | Upload and share directly from your terminal | [CLI reference](/developers/cli) | | Webhooks | Receive visit and report events on your server | [Webhooks](/developers/webhooks) | ## End-to-end curl example ```bash BASE=https://pagedrop.space TOKEN=pd_XXXXXXXX_YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY # Check the token curl -s -H "Authorization: Bearer $TOKEN" $BASE/api/v1/me | jq # Upload the file. No link yet: the file enters the scan, and any share # policy sent here is deferred. curl -s -H "Authorization: Bearer $TOKEN" -F "file=@notes.md;type=text/markdown" $BASE/api/v1/files # Response includes { file: { id: "...", scanStatus: "PENDING" }, shareDeferred: true } # Wait until scanStatus is CLEAN curl -s -H "Authorization: Bearer $TOKEN" $BASE/api/v1/files/ # Only now create the seven-day share and get the full share URL curl -s -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"fileId":"","expiresInDays":7}' $BASE/api/v1/shares ``` Set the expiry with either `expiresInDays` (relative, counted from now) or `expiresAt` (an absolute ISO 8601 instant that must be in the future; it wins if both are sent). File names are limited to 255 characters. ## Interactive playground Open the [Playground](/developers/playground) to try requests in your browser. Paste your API token or use your current signed-in session. ## Plain-text documentation for AI clients Every `/developers/*` article has a `.txt` version containing its Markdown source. Copy it into ChatGPT, Claude or Cursor: - Documentation index: `/llms.txt` - Single article: `/developers/api.txt` (replace the slug as needed) - English article: `/developers/api.txt?lang=en` The language switch changes navigation, articles and controls together. User content and API field names are preserved.