State of M&A Data Rooms — Q3 2026 Read the report →

Peony API: Keys, Operations and Limits

Use the Peony public API on Deal Team and Enterprise to create links, manage access lists, upload files and send agreements. Enabled on request.

Last updated November 1, 2026

Peony is a virtual data room for fundraising, M&A and due diligence, and its public API lets your systems create links, manage access lists, upload files and send agreements. API access and Custom integrations are Deal Team tier features. They're enabled on request — email sean@peony.ink to turn them on for your workspace — and are also included on Enterprise. The Deal Team plan is $64 per admin/mo (minimum 4 admins). API access is not auto-included on the Data Room plan.

Beyond programmatic access, the API lets you tie Peony's features into your existing workflows — connecting data room analytics, e-signatures, and viewer activity to the tools your team already uses.

Example Use Cases

  • CRM integration. Push data room analytics and signed agreements into your CRM so your deal team sees which buyers are actively engaged without leaving Salesforce or HubSpot.
  • Automated counterparty onboarding. When a new buyer or investor is added in your deal management platform, automatically create a personalized data room link with the right permissions.
  • Internal dashboards. Pull viewer activity into your own reporting tools to track deal engagement across your portfolio.
  • Subscriber management. Sync your payment or membership platform with Peony's email allowlist — when a subscriber churns, access is revoked automatically.

API Reference

Requests go to https://app.peony.ink/api/v1 and authenticate with one header: Authorization: Bearer YOUR_API_KEY. Sending X-API-Key fails authentication, even alongside a valid Bearer key.

Operations

The API currently has these 14 operations.

OperationRequestScopeRequired headers
List a folder's linksGET /folders/{folderId}/linkslinks:readNone
Retrieve a linkGET /links/{linkId}links:readNone
List an access rule collectionGET /links/{linkId}/access-ruleslinks:readNone
List granular permission entriesGET /links/{linkId}/granular-permissionslinks:readNone
Create a linkPOST /folders/{folderId}/linkslinks:writeIdempotency-Key
Replace a link's settingsPUT /links/{linkId}links:writeIdempotency-Key, If-Match
Delete a linkDELETE /links/{linkId}links:writeNone
Change an access rule collectionPATCH /links/{linkId}/access-ruleslinks:writeIdempotency-Key
Change granular permission entriesPATCH /links/{linkId}/granular-permissionslinks:writeIdempotency-Key, If-Match
Prepare an invite email logo uploadPOST /link-assets/upload-targetslinks:writeIdempotency-Key
Start a file uploadPOST /folders/{folderId}/uploadsfiles:writeIdempotency-Key
Complete a file uploadPOST /uploads/completefiles:writeNone
Permanently delete a fileDELETE /files/{fileId}files:deleteNone
Send an agreement from a templatePOST /agreements/sendagreements:sendIdempotency-Key

The API can't list or create folders, read files, list templates, resend invitations, or restore deleted links. To get a folder ID, open the folder in Peony and copy the UUID after /folders/ in the URL. For a data room, do the same at its top-level folder.

Create and Manage API Keys

Once API access is on, any admin in the workspace can manage all of its keys.

  1. Open Settings → API key settings.
  2. Enter an API key name of at least 3 characters.
  3. Tick what the key can do under API access for this key. New keys start with nothing selected.
  4. Click Create and store the key. It's displayed once and can't be retrieved later.
LabelScopeWhat it allows
Read linkslinks:readRead folder links, their access rules and their granular permission entries
Manage linkslinks:writeCreate and manage folder links, their access rules, their granular permission entries and invite email logos
Upload filesfiles:writeStart and complete uploads
Delete filesfiles:deletePermanently delete individual files
Send agreementsagreements:sendCreate and send agreements from existing templates

No scope includes another: Manage links doesn't grant Read links, and Upload files doesn't grant Delete files. A key acts as the person who created it, so it can only reach the folders, templates and plan features that person can.

Each key's row shows Created by, Created, Last used (approximate) and Expires. Edit access then Save access changes its scopes, effective on the next request, with no rotation needed. Remove deletes the key.

Each link has three access rule collections, chosen with list: invite_only, email_allow and email_block. Each PATCH changes one collection.

  • Per request: up to 1,000 entries in add and 1,000 in remove, as email or domain entries.
  • Stored: up to 1,000 invite-only entries, and 10,000 each for allow and block.
  • Invitations: new invite-only emails are invited once the change commits. An inactive link stores them and sends nothing.

PUT is a complete replacement, not a partial update: an omitted setting fails validation. Read the link, edit data.settings, and send the whole object back.

Granular Permissions

The two granular permission operations read and change which files, folders, web links and agreements one link exposes, and their download and upload settings. See Granular access control for how the rules resolve.

Each PATCH takes enabled, upsert and remove. upsert and remove each accept up to 500 entries per request, and a link stores up to 10,000. The mode (inherit or hidden_by_default) is readable but can't be changed through the API.

File Upload and Deletion

An upload has three steps: start it, send the exact bytes to the returned upload.url using upload.method and upload.requiredHeaders, then complete it. Don't send your Peony key to the storage URL. Each upload is checked against your workspace's remaining storage and document allowance. Retrying completion with the same grant never registers a file twice.

DELETE /files/{fileId} is permanent and needs Delete files. It removes every version, the processed document data and the file's links, and also works on files other people uploaded if the key's creator can access them. Audit and security records stay. A 204 confirms the deletion committed. It doesn't revoke copies or signed URLs obtained earlier, and stored objects are removed on a best-effort basis. A repeat delete returns 404 file_not_found.

Send Agreements from a Template

POST /agreements/send creates a new agreement from an existing template and sends it for signature, as the key's creator. It needs Send agreements. Every accepted call creates another agreement, so it can't resend an existing one.

  • Template ID: open the template under Agreements → Templates and copy the UUID after /agreements/templates/ in the URL.
  • Recipients: recipients[].role must match a Role set in the template editor, and that role must belong to exactly one template recipient. Give each recipient a distinct role before you target it.
  • Fields: fields[].name matches a field's Label. Signature and initial fields are never prefilled.
  • Optional values: viewers, agreementName and folderId. Anything you leave out keeps what the template saved.
  • Limits: 100 recipients and viewers together, 500 fields, and every recipient needs a different email address.

A 200 with a warning means the agreement was sent but some invitation emails weren't submitted. Share it with those people in Peony, and don't repeat the call.

Idempotency and ETags

Idempotency. Generate a new Idempotency-Key of 1 to 128 visible ASCII characters, such as a random UUID, for each logical operation. Reusing an accepted key within 24 hours returns 409 idempotency_request_seen. That only suppresses the duplicate: it doesn't return the first response or prove the operation finished, so check the app when the outcome is uncertain. A 503 idempotency_unavailable means nothing ran, and you can retry with the same key after Retry-After. For agreement sends, follow the retry guidance in the example scripts' AGREEMENTS.md before changing keys.

ETags. Creating, retrieving or replacing a link returns an ETag, and so does an access rule PATCH. Send it back unchanged as If-Match when you replace the link's settings or change its granular permissions.

  • No If-Match: 428 precondition_required.
  • Stale or weak tag: 412 precondition_failed, and nothing changes. Read the link again, reapply your edit, and retry with a new Idempotency-Key.
  • Malformed header: 400 validation_failed.
  • If-Match: * on a link replacement: overwrites the current settings, including changes someone else just made. Use it only when losing a concurrent edit is acceptable.

Pagination

List operations return items in data and the next position in page.nextCursor. Pass it back as cursor until it's null. Cursors are opaque and aren't snapshots: if the collection changes and a cursor fails validation, restart from page one.

Operationlimit rangeDefault
List a folder's links1 to 10050
List an access rule collection1 to 1,000100
List granular permission entries1 to 100100

Rate Limits

Every limit applies separately to the API key and to its workspace, and a request must pass all of them.

LimitPer secondPer 60 secondsPer 300 seconds
Reads5100400
Writes350200
All requests6125500

Each individual operation is also limited to one request per second. Starting an upload also draws on a rolling budget of declared bytes. A 429 rate_limited includes Retry-After in whole seconds; wait that long before retrying.

Webhooks

To receive events instead of calling the API, use webhooks. Peony can post each link view and NDA acceptance to your own endpoint or to Slack Deal Team+.

API Keys and Rotation

For security, API keys are valid for one year and are regenerate-only — there is no in-place renewal. Before a key expires, create a new key and update your connected apps. You can keep multiple keys active at once, so you can roll out a new key and cut over without any downtime.

If an automation tool (for example, Relay) starts returning an API error, an expired key is the most common cause. Generate a fresh key, swap it into the automation, and the connection resumes. If you need a short extension to complete a rotation, email sean@peony.ink.

No API Key? Let an AI Agent Do the Clicking

On any plan, you can have Claude Code or Codex build rooms, set up groups and read analytics for you by driving a browser you are signed in to. See Automate Peony with an AI agent.

Connect Your Own AI and Audit It

Connecting your own LLM (GPT, Claude, or Gemini), MCP, or CLI tool to a data room is an Enterprise feature, scoped per use case Enterprise. Email sean@peony.ink with what you want to connect and what you want the model to do, and we'll advise on the best approach. On other plans, Peony's native AI Q&A handles day-to-day document questions, answering from the room's own documents without any external connection.

What makes this useful is the audit, not the connection. The moment an AI assistant reaches confidential documents, your access log normally goes silent on what the AI actually read — leaving an unattributed actor in the room — which is exactly the record counsel or a regulator will ask for. With Peony's Enterprise audit, the connected AI gets a row like every other viewer, so you can produce the complete list of documents it touched and the queries it ran during diligence.

Common Questions

Does Peony have an SDK?

There is no packaged SDK. Peony publishes an OpenAPI 3.1 document and dependency-free example scripts for Node.js 20 or newer.

Is API access included on the Data Room plan?

No. API access is a Deal Team tier feature, enabled on request, and included on Enterprise. It's not auto-included on the Data Room plan. If you're on Data Room and need a specific API workflow, email sean@peony.ink and tell us which endpoints you need and how you plan to use them. The published limits are under Rate Limits.

Can I pull the audit trail via API (who signed or viewed which documents)?

This isn't self-serve today and is being scoped. Share the exact workflow you're building, including how often you'd poll, so we can fit it within the API rate limits. For a live feed of link views and NDA acceptances, use webhooks.

Do you support Zapier or CRM integrations?

Custom integrations — including Zapier and CRM connections — are available on the Deal Team and Enterprise tiers. They're scoped per use case and enabled on request.

Why do my API keys stop working after a while?

Keys expire one year after they're created, by design. Create a new key before the old one expires, update your connected apps, and you're set. Because multiple keys can be active at the same time, you can rotate without downtime.

A key also stops working the moment the admin who created it is removed from the workspace, or if API access is turned off for the workspace. The request returns 401 invalid_api_key. Before you remove an admin, check Created by in API key settings, create replacement keys under another admin, and update your connected apps.

Next Steps

  • Plans and pricing — see which features are included on each tier.
  • Webhooks: send link views and NDA acceptances to your own systems.

Contact

Email sean@peony.ink to discuss your integration needs.