# Leaked Devin Personal API Key? Revoke It Fast

> Devin personal API key in a repo or script? Delete it in Devin settings, review sessions it started and move to a service key. Step-by-step guide.

Source: https://leakwatch.net/secrets/devin-personal-api-key

---

[LeakWatch](/)

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

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

AI · Secret guide

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

High severityDetected onlyLast verified November 5, 2026 · 5 min read

A Devin personal API key lets a script or tool act as your user account on Devin, the AI software engineering agent made by Cognition. Whoever holds it can start sessions, read the output of existing sessions and act with the permissions of the account that created it. Devin sessions can touch code, run commands and reach the repositories and services that the account is connected to, so a leaked key is not just a billing risk. Revoke it first, then review the sessions that were started with it.

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

Provider

Cognition

Severity

High

Impact

Source code and build access

Checked live by LeakWatch

No

## What a Devin Personal API Key looks like

Devin personal keys begin with `apk_user_`, followed by a long string of letters, digits and a few symbols:

```text
apk_user_…XXXX   Devin personal API key (masked)
```

The `apk_user_` prefix is specific to this kind of key, and a match in a file should be treated as a live secret until you have checked it. The key is usually stored in a variable such as `DEVIN_API_KEY`, or in a script that calls the Devin API on your behalf. Cognition’s documentation describes personal keys as tied to a single user and scoped to an organization, so the account that created the key is the one whose access it carries.

There is an important caveat. Cognition’s documentation in several languages describes this key type as legacy and points new integrations to the current API version, which uses service-user authentication and a different prefix. If your integration still uses a personal key, plan a move to a service-user key as part of the cleanup, and do not create a new personal key to replace the old one.

## How Devin Personal API Keys get leaked

-   **Automation scripts.** A deployment or testing script that calls the Devin API and has the key typed in directly, then committed with the rest of the project.
-   **Terminal history.** A command typed with the key as a header or environment value, saved in a shared shell history or a session recording.
-   **Team tooling.** A shared configuration file or a wiki page that lists the key so that colleagues can reuse the same integration.
-   **Build logs.** A CI job that prints its environment, or a debug option that echoes the request headers sent to the API.
-   **Copied examples.** A snippet pasted into a support question, a blog post or a chat message to show how the API call is built.

## What to do in the first hour

1.  **Delete the key.** Open the Devin settings, go to the API keys section, find the personal key and delete it. Do this before you clean up the script, so the leaked value stops working at once.
2.  **Review sessions.** Look at the sessions started in the period since the key may have been exposed. Check the prompts they were given, the repositories they touched and any pull requests or commits they created.
3.  **Check the connected repositories and integrations.** Confirm that the account’s connections still match what your team expects, and remove any integration you do not recognize.
4.  **Create a replacement** using the method your Devin workspace currently recommends for automation, such as a service-user key with its own permissions, instead of a new personal key. Store it in your secret manager or CI variables.
5.  **Rotate the other secrets** the same integration used, such as repository tokens or cloud credentials that Devin was given during setup.
6.  **Clean the code** after the revocation. Remove the value from the files and point the script at an environment variable. 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 project? [Run a free scan](/).

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

## Revoke it at Cognition

Personal API keys for Devin are managed in the Devin web app, under Settings and then the API keys section. Cognition’s documentation for the authentication flow is published at [docs.devin.ai](https://docs.devin.ai), with the key creation steps described in several languages. This guide could not confirm the English menu wording or the exact deletion control, so follow the labels that the settings page shows. Because the key carries your user’s permissions, deleting it also ends access for any script that depends on it, so tell the owner of that script before you delete it.

## How LeakWatch detects it

The rule is called “Devin Personal API Key”. It looks for the prefix `apk_user_`, followed by a run of letters, digits, plus signs and slashes of between 120 and 180 characters, with up to two equals signs at the end. A short or truncated value is not reported. The severity is **high**, with the impact class for identity and code access. **This type is not checked live**: LeakWatch does not call Devin with the value it finds.

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

Does a Devin personal key give access to my repositories?

It can, indirectly. The key acts as your user, and Devin sessions use the repositories and integrations connected to your account. Review those connections after you revoke the key, and remove any that you did not set up.

Should I create a new personal key to replace the old one?

Cognition’s documentation describes personal keys as legacy and recommends service-user authentication for new integrations. Use the method the current documentation recommends, so that the replacement does not depend on a deprecated key type.

Will revoking the key stop running sessions?

Revoking the key stops new API calls that use it. Check the list of running sessions in the Devin interface, stop any you did not start, and review what they changed before you accept the results.

## Related

-   [OpenAI API key](/secrets/openai-api-key)
-   [Anthropic (Claude) API Key](/secrets/anthropic-api-key)
-   [Gemini Specific Key](/secrets/gemini-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 Cognition.

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