# Leaked Telnyx API Key? Delete It, Audit Usage

> Telnyx API key exposed on GitHub? Delete it in the portal, check SMS, call and number activity for fraud. Step-by-step guide.

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

---

[LeakWatch](/)

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

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

Messaging · Secret guide

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

High severityDetected onlyLast verified October 30, 2026 · 4 min read

A Telnyx API v2 key lets whoever holds it call the Telnyx API as your account: send SMS, place and control calls, order or release phone numbers, and read usage and configuration. Everything is billed to you, and the typical abuse is toll fraud or SMS pumping to premium-rate destinations. Control over your numbers also lets an attacker redirect calls or intercept one-time codes sent by SMS. Delete the key first, then read the logs.

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

Provider

Telnyx

Severity

High

Impact

SaaS account access and billing

Checked live by LeakWatch

No

## What a Telnyx API key looks like

A Telnyx v2 key starts with `KEY` in capitals, followed by 55 characters from letters, digits, dashes and underscores, 58 in total:

```text
KEYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX   Telnyx API v2 key (masked, KEY + 55 characters)
```

It is sent as a Bearer token in the `Authorization` header of requests to the Telnyx v2 API. The portal does not show the full key again after creation, so a key found in a file was copied at that moment. Typical variable names are `TELNYX_API_KEY` and `TELNYX_API_V2_KEY`. Telnyx also has other secrets that look different, such as AI gateway token keys, which have their own prefix and are not covered by this rule. Webhook signing public keys are separate too and are not credentials.

## How Telnyx API keys get leaked

-   **SDK examples.** A client initialised with the key typed in for a first test, then committed.
-   **Environment files.** `TELNYX_API_KEY` in a `.env` or compose file that lands in a repository.
-   **Voice and messaging backends.** Call-control and SMS services keep the key next to webhook URLs in a config shared with contractors.
-   **Mobile and frontend code.** A key placed in an app or script so it can start a call or send a code directly.
-   **CI logs and tickets.** A `curl` command with the Bearer header pasted into a support thread or printed by a debug step.

## What to do in the first hour

1.  **Open the API keys page** in the Telnyx portal (see the link below), in the authentication section, and find the exposed key by its name or last characters.
2.  **Create a new key** and deploy it to your application or secret store. Make one test request.
3.  **Delete or disable the exposed key** from the same page. Retry a request with the old value to confirm it is rejected.
4.  **Check usage and balance.** Compare spend with what you expected and set a low balance alert. Read the detail records for messages and calls since the exposure: destinations you never serve, premium-rate numbers, long calls, bursts at odd hours.
5.  **Review account objects.** Check phone numbers, messaging profiles, connections, call control applications and webhooks for anything you did not create. A webhook pointing to a URL you do not own would send events to the attacker.
6.  **Check numbers and ports.** Confirm that no number was ordered, released or ported out. Watch for forwarding rules you did not set.
7.  **Clean up the code** and rotate neighbouring secrets. See [I accidentally pushed an API key to GitHub](/blog/i-accidentally-pushed-an-api-key-to-github).

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

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

## Revoke it at Telnyx

Telnyx documentation says keys can be deleted from the API keys page of the Telnyx portal, after you sign in, and also mentions disabling a key from the authentication page. The full key cannot be retrieved after creation. A person has not confirmed the exact menu wording for this guide, and the portal can change. Look for the section where API keys are created and listed, and use the delete or disable option. Telnyx recommends generating new keys regularly and deactivating old ones, which is a good habit.

## How LeakWatch detects it

The rule is called Telnyx API Key. It looks for the word `telnyx` (any case), then up to 40 characters, then the capital letters `KEY` followed by exactly 55 letters, digits, dashes or underscores, with word boundaries on both sides. The `telnyx` context is required, so a key alone in a file with no vendor name close to it is not reported. A string of another length is also ignored. The severity is **high**.

This type is not checked live: LeakWatch has no validator for Telnyx keys, so a finding means the pattern was seen, not that the key still works.

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

Can a leaked key redirect my calls or texts?

If its owner can manage numbers and connections, yes. Review number settings, forwarding and webhooks as soon as the key is deleted.

Should I disable the key or delete it?

For a leak, delete it. Disabling can be undone, and a key that was exposed should not come back into use.

Is a test environment key safe to leave exposed?

Not if it belongs to a real account. Any key tied to a funded account can send traffic, so delete it and create a new one.

## Related

-   [Twilio API Key](/secrets/twilio-api-key)
-   [Plivo Auth Token](/secrets/plivo-auth-token)
-   [MessageBird API Key](/secrets/messagebird-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 Telnyx.

![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)
