---
title: How do I generate an API key for the sandbox?
description: Create an API key under Developer > API Credentials in the OpusDNS sandbox, copy the credentials while shown and test against the sandbox base URL.
---

[Skip to content](https://help.opusdns.com/how-do-i-generate-an-api-key-for-the-sandbox#main-content)

- [English](https://help.opusdns.com/how-do-i-generate-an-api-key-for-the-sandbox)
- [Deutsch](https://help.opusdns.com/de/how-do-i-generate-an-api-key-for-the-sandbox)

English

Show submenu for translations

[![opusdns.com](https://help.opusdns.com/hs-fs/hubfs/v2-Status%20Center.png?width=180&height=51&name=v2-Status%20Center.png)](https://help.opusdns.com/?hsLang=en)

Open main navigation

Close main navigation

- - [English](https://help.opusdns.com/how-do-i-generate-an-api-key-for-the-sandbox)
    - [Deutsch](https://help.opusdns.com/de/how-do-i-generate-an-api-key-for-the-sandbox)

  English
  
  Show submenu for translations
- [Submit Ticket](https://support.opusdns.com/)

[Submit Ticket](https://support.opusdns.com/?hsLang=en)

 How can we help?

- There are no suggestions because the search field is empty.

1. [OpusDNS Knowledgebase](https://help.opusdns.com/?hsLang=en)
2. [OpusDNS API](https://help.opusdns.com/opusdns-api?hsLang=en)
3. [Sandbox Environment](https://help.opusdns.com/opusdns-api?hsLang=en#sandbox-environment)

November 16, 2026

# How do I generate an API key for the sandbox?

## Generate your Sandbox API key in the Developer settings

Sandbox API keys are created in the sandbox dashboard and work only against the sandbox API. You need a sandbox account first, see [How do I use the OpusDNS sandbox to test the API?](https://help.opusdns.com/how-can-i-use-the-opusdns-sandbox-for-api-testing?hsLang=en)

1. Sign in at [app.sandbox.opusdns.com](https://app.sandbox.opusdns.com) with your sandbox credentials.
2. Go to **Developer \> API Credentials** and click **New API Credential**.
3. In the dialog **Create API Credential**, enter a **Name** that clearly marks the key as a sandbox key, for example "Sandbox test", and optionally a **Description**.
4. Choose a **Role** and optionally an **Expiration Date**, then create the credential. The role can't be changed later. See [Roles and Permissions for Users and API Keys](https://help.opusdns.com/roles-permissions?hsLang=en).
5. Click **Copy All Credentials** and store the values securely. They are shown only once.

![Dialog Create API Credential with the fields Name, Description, Role and Expiration Date](https://help.opusdns.com/hs-fs/hubfs/kb-content-review/batch-07/en/en-create-api-credential-dialog.png?width=571&height=544&name=en-create-api-credential-dialog.png)

 

#### **Start testing**

Send your requests to `https://sandbox.opusdns.com` and pass the key in the `X-Api-Key` header:

```
curl https://sandbox.opusdns.com/v1/domains --header "X-Api-Key: YOUR_SANDBOX_API_KEY"
```

Keys from the sandbox don't work in production, and production keys don't work in the sandbox. Changes made through the API appear in your sandbox dashboard right away.

Documentation for the sandbox: [Where can I find the API documentation of the Sandbox?](https://help.opusdns.com/where-can-i-find-the-api-documentation-of-the-sandbox?hsLang=en)

[![Banner Risk-free testing in our Sandbox with the button Try the Sandbox Free](https://help.opusdns.com/hs-fs/hubfs/Knowledge%20Banner_%20Sandbox%20Dark.jpg?width=670&height=174&name=Knowledge%20Banner_%20Sandbox%20Dark.jpg)](https://app.sandbox.opusdns.com/signup?utm_source=knowledgebase&utm_medium=referral&utm_campaign=signup&utm_content=cta_banner)

- [Create your OpusDNS account](https://help.opusdns.com/create-your-opusdns-account?hsLang=en#main-content)

    - [Open Your Account](https://help.opusdns.com/create-your-opusdns-account?hsLang=en#open-your-account)
    - [FAQ](https://help.opusdns.com/create-your-opusdns-account?hsLang=en#faq)
    - [Getting Help with your Registration](https://help.opusdns.com/create-your-opusdns-account?hsLang=en#getting-help-with-your-registration)
- [OpusDNS API](https://help.opusdns.com/opusdns-api?hsLang=en#main-content)

    - [Getting Started with the API](https://help.opusdns.com/opusdns-api?hsLang=en#getting-started-with-the-api)
    - [Sandbox Environment](https://help.opusdns.com/opusdns-api?hsLang=en#sandbox-environment)
    - [OpusDNS MCP Server](https://help.opusdns.com/opusdns-api?hsLang=en#opusdns-mcp-server)
    - [FAQ](https://help.opusdns.com/opusdns-api?hsLang=en#faq)
    - [Getting Help with the OpusDNS API](https://help.opusdns.com/opusdns-api?hsLang=en#getting-help-with-the-opusdns-api)
- [OpusDNS Dashboard](https://help.opusdns.com/opusdns-dashboard?hsLang=en#main-content)

    - [Getting Started](https://help.opusdns.com/opusdns-dashboard?hsLang=en#getting-started)
    - [Plans & Pricing](https://help.opusdns.com/opusdns-dashboard?hsLang=en#plans-pricing)
    - [Billing & Payments](https://help.opusdns.com/opusdns-dashboard?hsLang=en#billing-payments)
    - [User & Organization Management](https://help.opusdns.com/opusdns-dashboard?hsLang=en#user-organization-management)
    - [Whitelabeling](https://help.opusdns.com/opusdns-dashboard?hsLang=en#whitelabeling)
    - [Account & Settings](https://help.opusdns.com/opusdns-dashboard?hsLang=en#account-settings)
    - [Security](https://help.opusdns.com/opusdns-dashboard?hsLang=en#security)
    - [AI Concierge](https://help.opusdns.com/opusdns-dashboard?hsLang=en#ai-concierge)
    - [Managing Contacts](https://help.opusdns.com/opusdns-dashboard?hsLang=en#managing-contacts)
    - [Managing DNS Zones & Nameservers](https://help.opusdns.com/opusdns-dashboard?hsLang=en#managing-dns-zones-nameservers)
    - [Register & Transfer Domains](https://help.opusdns.com/opusdns-dashboard?hsLang=en#register-transfer-domains)
    - [Managing Domains](https://help.opusdns.com/opusdns-dashboard?hsLang=en#managing-domains)
    - [Bulk Jobs](https://help.opusdns.com/opusdns-dashboard?hsLang=en#bulk-jobs)
    - [Developer Area](https://help.opusdns.com/opusdns-dashboard?hsLang=en#developer-area)
    - [Dashboard Functionality](https://help.opusdns.com/opusdns-dashboard?hsLang=en#dashboard-functionality)
    - [Dashboard home page](https://help.opusdns.com/opusdns-dashboard?hsLang=en#dashboard-home-page)
- [Services & Features](https://help.opusdns.com/services-features?hsLang=en#main-content)

    - [Domain forwarding](https://help.opusdns.com/services-features?hsLang=en#domain-forwarding)
    - [Email forwarding](https://help.opusdns.com/services-features?hsLang=en#email-forwarding)
    - [Reports](https://help.opusdns.com/services-features?hsLang=en#reports)
    - [Domain parking](https://help.opusdns.com/services-features?hsLang=en#domain-parking)
    - [WHMCS Integration](https://help.opusdns.com/services-features?hsLang=en#whmcs-integration)
    - [Hostware Integration](https://help.opusdns.com/services-features?hsLang=en#hostware-integration)
    - [Terraform Integration](https://help.opusdns.com/services-features?hsLang=en#terraform-integration)
    - [GO Integration](https://help.opusdns.com/services-features?hsLang=en#go-integration)
    - [Certificate Management with ACME and OpusDNS](https://help.opusdns.com/services-features?hsLang=en#certificate-management-with-acme-and-opusdns)
- [New to the Domain Industry?](https://help.opusdns.com/new-to-the-domain-industry?hsLang=en#main-content)

    - [Everything about Domains](https://help.opusdns.com/new-to-the-domain-industry?hsLang=en#everything-about-domains)
    - [Domain Industry](https://help.opusdns.com/new-to-the-domain-industry?hsLang=en#domain-industry)
    - [Reseller Essentials](https://help.opusdns.com/new-to-the-domain-industry?hsLang=en#reseller-essentials)

- [OpusDNS Homepage](https://www.opusdns.com/)
- [Legal Notice](https://www.opusdns.com/legal/notice-impressum)
- [Privacy Policy](https://www.opusdns.com/legal/privacy-policy)
- [Terms & Conditions](https://www.opusdns.com/legal/terms-conditions)

[![OpusDNS Homepage](https://help.opusdns.com/hubfs/6722ae7333e645c8919a4751_opusDNS-VT-3c-white-tagline.svg "OpusDNS Homepage")](https://www.opusdns.com/)

©2025 OpusDNS GmbH. All rights reserved.

<https://www.linkedin.com/company/opusdns/>

![icann](https://help.opusdns.com/hubfs/icann.svg).