Secretus logo
practicalapi-keyscredential-security

How to share an API key securely with a developer

Hand over a scoped API key with a one-time encrypted link. Choose permissions, confirm delivery, store the key and revoke access when the project ends.

·3 min read·Secretus Editorial

If a developer needs access to your service, first check whether you can invite them with their own account or give the workload an identity. When an integration requires an API key, create a dedicated key and send it through a one-time encrypted link. Someone who obtains the complete link before the recipient may be able to open it.

Choose the key for the job

Suppose a contractor needs to read a staging product catalogue. Issue a staging key with catalogue read access if the provider supports that scope. Keep production and billing permissions out of the handoff. Agree who owns the key, which application will use it and when access should end. Record those details and a non-secret key identifier in the ticket. Google Cloud documents restrictions and rotation for API keys.

Send the key once

  1. Confirm the developer’s address through an existing work channel. Agree on a time when they can collect the key.
  2. In your Secretus account, choose Standard mode, paste the key and set a short expiry. The browser encrypts the payload. Copy the complete link to a direct message for the developer.
  3. The developer opens the link in their browser, reveals the value once and saves it in the deployment’s secret manager. They can confirm receipt using the key identifier. Keep the value out of source code, terminal transcripts and build logs.

If the client owns the API account, ask them to generate the scoped key. You can send them a Secret Requestso they can return it without pasting it into an email.

Recover a failed handoff

If the link expired unopened, verify the intended recipient before creating another link. If the wrong person received it or the link shows an unexpected retrieval, revoke the key at the API provider, review its usage and issue a replacement. Deleting a link cannot invalidate a key that someone has already copied.

Remove access when the work ends

If the integration must keep running, deploy a replacement key, verify that the service works and then disable the old one. For a completed staging project, revoke the key and remove its stored copy. The link expiry controls collection. The provider controls how long an issued API key works.

Create a Secretus account to send a one-time link or check the plans and trial terms.