# Leaked Courier API Key? Revoke It and Check Sends

> Courier API key exposed in a repo or front-end code? Revoke it, review the message log and templates, then store the new key securely.

Source: https://leakwatch.net/secrets/courier-api-key

---

[LeakWatch](/)

[Product](/product)[Live feed](/leaks)[Guides](/secrets)[Blog](/blog)[Free scan](/)

1.  [Home](/)
2.  [Secrets](/secrets)
3.  Courier API Key

Messaging · Secret guide

# Leaked Courier API Key: what to do in the first hour

Medium severityDetected onlyLast verified November 5, 2026 · 4 min read

A Courier API key authenticates your application to Courier, the service that sends notifications across email, SMS, chat and push channels. With the key, a caller can send messages through your account, which can be used for spam or phishing under your sender identity. A leaked key also exposes the notification templates and recipient activity your account holds. Sending costs are real, and a message sent under your name damages your sender reputation, so rotate the key quickly.

[Check your GitHub account for leaked secrets — free](/)

Provider

Courier

Severity

Medium

Impact

SaaS account access and billing

Checked live by LeakWatch

No

## What a Courier API Key looks like

Courier keys start with `pk_`, followed by a short block of letters and digits, another underscore and a longer block of letters and digits. The value is a single string:

```text
pk_…_…   Courier API key (masked)
```

The `pk_` prefix is also used by other services, so the rule looks for the word “courier” near the value. Courier keys are usually stored in a notification service or a backend that sends messages, which means the key tends to sit in a server configuration or a deployment variable.

## How Courier API Keys get leaked

-   **Environment files.** A `.env` file with the key next to other provider keys, committed to a repository.
-   **Front-end code.** A key placed in a web page or a mobile app to send messages directly, which exposes it to every user.
-   **Serverless configuration.** A function’s settings file that stores the key as a plain value rather than a secret reference.
-   **Shared examples.** A snippet pasted in a forum or a chat while debugging a failed send.
-   **Logs.** A worker that prints its configuration or the request headers when a send fails.

## What to do in the first hour

1.  **Revoke the key.** Open the account settings for your Courier workspace, find the API key that leaked and revoke it. Do this first, because the key can send messages until it is revoked.
2.  **Create a new key** and store it in your secret manager. Deploy it to the services that send notifications, and send one test message to confirm that delivery works.
3.  **Review the sends.** Look at the message log for the period since the exposure. Check for messages you did not trigger, especially to unusual recipients or with links you do not recognize.
4.  **Check the templates.** Look for templates that were edited or added without your knowledge, since a changed template reaches every recipient.
5.  **Check the channels.** Review the connected providers, such as email and SMS senders, and make sure no new sender or domain was added.
6.  **Look at other keys** in the same file, such as the email or SMS provider keys. Rotate them as well. See [I accidentally pushed an API key to GitHub](/blog/i-accidentally-pushed-an-api-key-to-github) for the order of steps.
7.  **Clean the repository.** Read the key from a secret store, remove the value from current files and make sure front-end code only calls your own server.

Not sure what else leaked? [Run a free scan](/).

[Not sure what else leaked? Run a free scan.](/)

## Revoke it at Courier

API keys are managed in the settings of your Courier workspace. Open account settings, go to the API keys section, find the key and revoke it. Create the replacement at the same place. We have not confirmed the current labels on the page, so follow what you see, and check that you are in the correct workspace, since test and production keys may be listed separately.

## How LeakWatch detects it

The rule is called Courier API Key. It looks for the word “courier” in any case, followed within about 40 characters by a value that begins with `pk_`, a block of letters and digits, an underscore and a block of 28 letters or digits, with word boundaries on both sides. The word “courier” is required, so a `pk_` value on its own is not reported by this rule. The severity is **medium**, with the impact class for SaaS tools. This type is not checked live: LeakWatch does not send a message or a request to Courier with the value it found.

LeakWatch detects this format but does **not** check it live: it can tell you the key is exposed, not whether it still works. Assume it does until you have revoked it.

## FAQ

Is a Courier key the same as a publishable key from another service?

Not necessarily. The `pk_` prefix is used by several services, and some of them publish keys for the browser. Check which service issued the value before you decide it is safe.

Can someone send messages to my users?

Yes, if they hold a valid key, since messages go out under your sender identity. Review the message log and revoke the key quickly.

Will my notifications stop?

Only until the new key is deployed. Send a test message after each change to confirm delivery.

## Related

-   [SendGrid API Key](/secrets/sendgrid-api-key)
-   [Mailgun API Key](/secrets/mailgun-api-key)
-   [Customer.io API Key](/secrets/customer-io-api-key)
-   [I accidentally pushed an API key to GitHub](/blog/i-accidentally-pushed-an-api-key-to-github)
-   [Which vendors leak most this week](/leaks/trends)
-   [All secret guides](/secrets)

[Get alerted next time a secret leaks — create a free account](/)

LeakWatch is not affiliated with Courier.

![Gabriel Diyan, founder of LeakWatch](/brand/Photo-Gabriel-Diyan.webp)

Gabriel Diyan (0xCr0c0)

Cybersecurity student, founder of LeakWatch. I built and run the scanner described here — the detection patterns, the false-positive classifier and the provider validators are mine. [More about who I am](/about).

[GitHub](https://github.com/Leakwatch-Scan) · [X](https://x.com/LeakwatchScan) · [LinkedIn](https://www.linkedin.com/in/gabriel-diyan-80a378375) · [GitHub (personal)](https://github.com/crocogab)

LeakWatch

Secrets leak into public commits every minute. This watches the forges for yours. Built and run by [Gabriel Diyan](/about), a cybersecurity student — [why LeakWatch exists](/about).

Scan

-   [Product](/product)
-   [Live feed](/leaks)
-   [Trends](/leaks/trends)
-   [API docs](/docs)
-   [CI/CD](/docs?tab=ci)

Read

-   [Blog](/blog)
-   [Secret guides](/secrets)
-   [Changelog](/changelog)
-   [About](/about)

Verify

-   [Security](/security)
-   [Privacy](/privacy)
-   [Terms](/terms)
-   [Legal](/legal)
-   [Contact](/contact)
-   [Status](https://status.leakwatch.net)

© 2026 LeakWatch

[GitHub](https://github.com/Leakwatch-Scan)[X](https://x.com/LeakwatchScan)
