Share API Keys and Credentials Without Leaking Them

Stop pasting keys into chat, tickets and email.

Send API keys, access tokens, .env values and database passwords as encrypted links that open once and then stop working. Nothing usable stays behind in your message history.

  • Encrypted in your browser
  • Expiry from 1 hour
  • Opens once by default
  • No sign-up needed

Before You Share a Key, Check Whether You Need To

The safest key is one that never changes hands. A one-time link is for the moments when there's no better option.

Give each person their own key

Most platforms let you create a key per person or service, with only the permissions it needs, so you can revoke it on its own.

Keep app secrets out of code

Applications should read keys from environment variables or your platform's secrets manager, never from the repository.

Share only public SSH keys

Ask for the person's public key and add it to the server. A private key should never leave its owner.

When a key must move, use a one-time link

A new teammate's staging password, a contractor's token, recovery codes: send them encrypted, once, with a short expiry.

Want the full checklist? Read our guide on how to share API keys and credentials securely.

How a One-Time Link Protects a Key

  1. Paste the key

    On the home page, paste the key, token or snippet. Pick 1 hour if your colleague is waiting for it.

  2. It's encrypted locally

    Your browser encrypts it with AES-256-GCM. The decryption key goes after the # in the link, which browsers never send to servers.

  3. Paste the link, not the key

    Drop the link into chat, a ticket or a pull request comment. Send any passphrase another way.

  4. Opened once, then gone

    After it's opened, the encrypted key is deleted from our database and the link in your chat is useless.

What Developers Send with OneTimePass

API keys and tokens

Payment, cloud and SaaS API keys, personal access tokens and webhook signing secrets.

.env values and config

Several lines at once: the variables a new teammate needs to run the project locally.

Database credentials

Connection strings and passwords for staging and read-only reporting users.

Recovery codes

Backup codes for a shared admin or service account, handed to whoever takes it over.

Certificates and key files

With Premium, attach a file of up to 25 MB, encrypted in your browser like the text. See sending files securely.

Locked to one recipient

With Premium, only the person with the right email address can open the link, after entering a one-time code.

Four Everyday Workflows

Onboarding a teammate

Send the staging credentials they need on day one as a 1-day link, so it's waiting when they start and gone after.

Contractor handover

Give a contractor a scoped token with a passphrase you tell them on the kickoff call, and revoke it when the work is done.

Rotating after an incident

A key leaked? Rotate it, then send the new one to the people who need it as 1-hour links, never in the incident channel.

Delivering customer keys

With Business, your onboarding script creates a link for each new customer's key through the API, locked to their email.

Automate It with the REST API and Slack

OneTimePass Business ($6 per user per month) lets scripts, CI jobs and internal tools create one-time links, with the same options as the website.

curl -X POST https://onetimepass.org/api/v1/secrets \
  -H "Authorization: Bearer $OTP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"secret": "example-token-123", "expires_in": 3600,
       "views": 1, "recipient_email": "dev@example.com"}'

The response contains the link to send. Read the API documentation.

  • Same controls as the websiteExpiry, number of opens, a passphrase, locking to a recipient's email, and an email when it's opened.
  • Slack /otp commandType /otp and the secret; only you see the link it replies with.
  • Team policiesSet a maximum expiry or require a passphrase, for links made on the website, the API and Slack.
  • Activity logSee which links were created and opened, with a CSV export.
  • Honest about encryptionAPI and Slack text is encrypted when it reaches our server. For end-to-end encryption, encrypt it before calling the API, as the docs show.

After You Share: A Quick Rotation Checklist

  • Confirm it arrivedAsk your colleague to confirm they opened the link. If they find it already used, assume the key was exposed.
  • Rotate when in doubtRevoke and replace a key that was opened by someone else, pasted anywhere else, or shared with someone who has left.
  • Never paste it elsewhereThe point of the link is that the key isn't in chat, tickets or code. Don't undo that by quoting it later.
  • Clean upWith Premium, My links shows which links are still open, and you can delete one before it's used.

Free, Premium and Business for Developers

Sharing keys as text is free, with no account. Premium adds files and more control; Business adds automation for teams.

Free, Premium and Business plans compared
FeatureFreePremiumBusiness
Sharing secrets
Encrypted secret links (AES-256-GCM in your browser)IncludedIncludedIncluded
Passphrase protectionIncludedIncludedIncluded
Recipients need no accountIncludedIncludedIncluded
Link expiry1 hour, 1 day or 7 daysAlso 30 days or 90 daysAlso 30 days or 90 days
Opens per linkOnceUp to 10Up to 10
Email when a link is opened–IncludedIncluded
Lock a link to the recipient's email–IncludedIncluded
File attachments–Up to 25 MBUp to 25 MB
My links: see status, delete early–IncludedIncluded
Password and UUID generatorsIncludedIncludedIncluded
Password Vault and collecting secrets
Password Vault, end-to-end encrypted–IncludedIncluded
Authenticator (2FA) codes and breach check in the vault–IncludedIncluded
Shared vaults and emergency access–IncludedIncluded
Secure Forms and secret requests–IncludedIncluded
Support tickets–IncludedPriority
For teams
Team admin console and roles––Included
Seat and usage reports––Included
Activity log with CSV export––Included
Security policies (2FA, master password, link limits)––Included
Single sign-on (OpenID Connect)––Included
Your logo and colours on shared links––Included
REST API and Slack /otp command––Included
Price$0$4/month
or $40/year (two months free)
14 days free for new subscribers
$6/user / month
minimum 3 users
14 days free for new subscribers
Start 14-day free trial Compare all plans

Payments by Stripe · Cancel any time

Questions Developers Ask

What is the safest way to share an API key with a colleague?

First check whether they can have their own key: most platforms let you create one per person, with only the permissions they need, so it can be revoked on its own. If a key really has to change hands, send it as a one-time link with a short expiry, such as 1 hour, and a passphrase you tell them on a call. Once it has been opened, the link stops working, so nothing usable is left in your chat or ticket.

Can I share a whole .env file or a config snippet?

Yes. A secret can be any text, so you can paste several lines, such as the variables a new teammate needs. With Premium you can also attach the file itself, up to 25 MB, for example a certificate or a key file. Both are encrypted in your browser before they are sent.

Can OneTimePass read the keys I share?

Not when you create the link on the website: your browser encrypts the secret with AES-256-GCM, and the key needed to decrypt it stays in the part of the link after the #, which browsers never send to our server. With the API and the Slack command, the text reaches our server and is encrypted on arrival, unless you encrypt it yourself first, as the API documentation explains.

What if the link has already been opened when my colleague tries it?

Then someone else opened it first, for example because the message was forwarded or read by someone else. Treat the key as exposed: revoke or rotate it, and send a new one. That warning is one of the main reasons to use a one-time link instead of pasting a key into chat.

Can I share one key with several people?

It is safer to send a separate link to each person, so you can tell if one was intercepted. With Premium, one link can allow up to 10 opens, which is handy for a small group. Better still, give each person their own key.

Can I create links from scripts or CI pipelines?

Yes, with OneTimePass Business. The REST API creates one-time links with the same options as the website: expiry, number of opens, a passphrase, locking the link to a recipient's email address, and an email when it is opened. API keys are created by team admins, and team policies, such as a maximum expiry, apply to API links too.

Should I share SSH keys this way?

Only the public half of an SSH key is meant to be shared, and it is safe to send any way you like. A private key should never leave the person it belongs to. If someone needs access to a server, ask them for their public key and add it to the server, instead of sending them a private key.

Is sharing API keys with OneTimePass free?

Yes. Text secrets, including API keys and tokens, are free with no account, with links lasting 1 hour, 1 day or 7 days and an optional passphrase. Premium ($4/month) adds file attachments, more opens, longer links and an email when a link is opened. Business ($6 per user per month) adds the API, the Slack command and team policies.

How OneTimePass protects your data →

Have a Key to Hand Over Right Now?

Create an encrypted link that opens once. Free, with no sign-up.