REST API

One-time links from your own systems

Send credentials from your onboarding flow, hand deploy secrets to an on-call engineer, or deliver documents from your HR system, all as one-time encrypted links. Our SDKs encrypt on your side, so the API never receives plaintext.

Included on Premium (100 API shares per month) and Enterprise (1,000). API add-ons for integrations start at $29 per month.

Built for production use

Scoped test and live keys

Limit each key to files:create, texts:create or shares:list. Separate test and live keys, with an optional expiry.

Per-key rate limits

Set each key’s limit up to a generous 240 requests per minute. Usage is tracked per key and visible in your dashboard.

Zero-knowledge by design

The SDKs encrypt with AES-256-GCM locally and add the key to the link themselves. The API stores ciphertext only.

Endpoints

  1. 01

    POST /v1/texts

    Share client-encrypted text and get a one-time link back.

  2. 02

    POST /v1/files

    Get an upload URL for an encrypted file, upload it, then call /v1/files/{key}/complete for the link.

  3. 03

    GET /v1/shares

    List your organization’s shares and their status.

cURL
# No SDK required — encrypt with KNF1

curl -X POST https://www.konfidant.app/api/v1/texts \
  -H "Authorization: Bearer $KONFIDANT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ciphertext": "<base64 KNF1 ciphertext>", "ttl_hours": 24}'
Node.jsSource
$ npm install @konfidant/sdk

import { KonfidantClient } from '@konfidant/sdk';

const client = new KonfidantClient({
  apiKey: process.env.KONFIDANT_API_KEY,
});

// Encrypted locally; the key only goes into the link
const { shareUrl } = await client.shareText('DB_PASSWORD=s3cr3t', {
  ttlHours: 24,
});

Where teams use the API

Anywhere a secret or document is currently pasted into an email, a ticket or a log:

  • Onboarding: send first-day credentials to a new hire as a link that burns after one view.
  • CI/CD and operations: hand deploy credentials to an engineer instead of printing them in build logs.
  • Customer delivery: send API keys or license files to customers from your own backend.
  • Internal tools: add a "share securely" button to your admin panel or ticket system.

Keys, members and limits

Premium includes up to 5 API keys and Enterprise unlimited. Admins can let members create and revoke their own keys. If your organization ever has more keys than its plan allows, the keys are blocked until an admin revokes the extras; none are deleted automatically.

FAQ

Frequently asked questions

Do I need an SDK?

No, but it is the easiest way. Without one, you encrypt the content in the KNF1 format yourself (documented in the docs) and call the API over HTTPS with JSON.

Which languages have SDKs?

JavaScript and TypeScript, Python, Go and Ruby. All four encrypt on your side before anything is sent.

How many API shares are included?

Premium includes 100 API shares per month and Enterprise 1,000. API add-ons for integrations start at $29 per month.

Is the API available on the Free plan?

No. The REST API, SDKs, Slack app and Discord app are included on Premium and Enterprise.

Not ready to decide yet?

Get product updates and new articles on sharing secrets safely. No spam, unsubscribe anytime.

We'll email you a link to confirm. Protected by Cloudflare Turnstile. See our Privacy Policy.

Add one-time links to the tools you already run.

Free plan. No credit card. First encrypted link in under a minute.