> For the complete documentation index, see [llms.txt](https://docs.didomi.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.didomi.io/organization-and-account-settings/api-keys/create-new-private-api-key.md).

# Create new private API key

{% hint style="success" %}
**Access Type:** Organization Settings - Editor
{% endhint %}

Private API keys are generated by your organization and enable your back-end applications to access the Didomi API. In this article, we will cover how to generate a new private API key.

{% hint style="info" %}
[Click here](https://developers.didomi.io/api-and-platform/introduction) to learn more about Didomi APIs.
{% endhint %}

Click **My Organization** and select **Private API key** from the drop-down menu.&#x20;

<figure><img src="https://1825037175-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNDxbAdc00ce6bH5u1urh%2Fuploads%2Fueh9rYIWxIQ9ZlwgTuVb%2FScreenshot%202026-02-12%20at%203.33.31%E2%80%AFPM.png?alt=media&amp;token=d79f3969-2a86-46ac-bfcb-57dcae76e62e" alt="" width="563"><figcaption></figcaption></figure>

Click **Add a new Private API Key**.

<figure><img src="https://1825037175-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNDxbAdc00ce6bH5u1urh%2Fuploads%2F8mudMt4UtjMBo28iTc2K%2FScreenshot_2025-09-10_at_2_53_58%E2%80%AFPM.jpg?alt=media&amp;token=4a4cb905-4dac-4e7c-b724-3a8e9cc74950" alt="" width="563"><figcaption></figcaption></figure>

Confirm the decision to create a new private API key in the modal and click **Generate a new key**.

<figure><img src="https://1825037175-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNDxbAdc00ce6bH5u1urh%2Fuploads%2FmFIemj7J97zldMthySu2%2FScreenshot%202025-09-10%20at%203.12.42%E2%80%AFPM.png?alt=media&amp;token=d13ad111-03bd-4b0b-baa0-fe9782be71c5" alt="" width="358"><figcaption></figcaption></figure>

The subsequent modal will display the API key and API Key Secret.

{% hint style="warning" %}
**Note**: This is the only time the API Key Secret will be revealed.&#x20;
{% endhint %}

<figure><img src="https://1825037175-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNDxbAdc00ce6bH5u1urh%2Fuploads%2FNYxYdqE9DYkMhFkxqGBW%2FScreenshot_2025-09-10_at_3_20_27%E2%80%AFPM.jpg?alt=media&amp;token=b07d5931-70f0-4078-b6f0-f9b1e4a75cbb" alt="" width="375"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.didomi.io/organization-and-account-settings/api-keys/create-new-private-api-key.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
