> ## Documentation Index
> Fetch the complete documentation index at: https://dialnexa.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# DialNexa API Keys

> Create and manage DialNexa API keys, including key names, one-time raw key display, expiry status, edit, delete, and regenerate behavior for existing keys.

DialNexa API keys are organization-level credentials used by external systems to access DialNexa APIs. The Keys page lets users create the first key, see the raw key once, copy it immediately, edit key names, see whether each key is active or expiring, delete keys, and regenerate access with controlled expiration for the previous key.

<img src="https://mintcdn.com/dialnexa/j4YElRgYrHSfuXTP/images/documentation/screenshots/api-keys-page.png?fit=max&auto=format&n=j4YElRgYrHSfuXTP&q=85&s=b7d3bce209e5cbb529ace8f9bcbc08fd" alt="DialNexa API Keys page showing Regenerate Key, Created at, Expires, Active status, and the maximum two-key warning." style={{ width: '100%', maxWidth: '1100px', margin: '8px 0 24px', border: '1px solid #e5e7eb', borderRadius: '6px' }} width="2200" height="1504" data-path="images/documentation/screenshots/api-keys-page.png" />

<Warning>
  The raw API key is shown once. Copy it into a secret manager before closing the dialog, because the dashboard will not show the same raw value again.
</Warning>

## Before You Begin

Know which service will use the key, the minimum permissions it needs, the environment where it will be stored, and who owns rotation and incident response.

## API Key Actions

These actions are available from the Keys page.

| Action           | Behavior                                                                                                                      |
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| Create first key | Creates a named API key and shows the raw key once.                                                                           |
| Regenerate key   | Appears when a key already exists. It asks whether to expire the previous key now or in 24 hours before creating the new key. |
| Copy raw key     | Copies the newly created key while the one-time dialog is open.                                                               |
| Edit key name    | Changes the label used in the table.                                                                                          |
| Delete key       | Removes the selected key.                                                                                                     |
| Expires          | Shows `Active` for keys without an expiry date, or the exact expiry timestamp for a key in its rotation window.               |

DialNexa allows up to `2` API keys in the current dashboard flow. If the workspace already has two keys, delete an unused key or wait for an expiring key to clear before creating another one.

## Create A Key Safely

<Steps>
  <Step title="Open Keys">
    Use the workspace where the external system should connect.
  </Step>

  <Step title="Choose Add Key or Regenerate Key">
    Enter a name that identifies the system or environment.
  </Step>

  <Step title="Copy the raw key immediately">
    Store it in your secret manager.
  </Step>

  <Step title="Close the dialog only after storing">
    The raw key will not be shown again.
  </Step>

  <Step title="Rotate old keys intentionally">
    Use now or 24 hour expiration based on migration risk.
  </Step>
</Steps>

## API Key Mistakes

<AccordionGroup>
  <Accordion title="Using a key from another workspace">
    Keys are organization-scoped.
  </Accordion>

  <Accordion title="Naming every key production">
    Use system and environment names.
  </Accordion>

  <Accordion title="Closing before copying">
    Create a new key and rotate if the raw value was lost.
  </Accordion>

  <Accordion title="Sharing in chat">
    Use a secret manager, not messages or docs.
  </Accordion>
</AccordionGroup>

## Verify The API Key

Store the key in a secret manager, make one low-risk authenticated request, and confirm the expected response. Never paste the key into client-side code, screenshots, tickets, or documentation.

## Related Reading

<CardGroup cols={2}>
  <Card title="Key Rotation" icon="refresh-cw" href="/docs/api-access/key-rotation">
    Rotate keys safely.
  </Card>

  <Card title="Webhook Secrets" icon="key-round" href="/docs/api-access/webhook-secrets">
    Manage event verification secrets.
  </Card>

  <Card title="External Webhooks" icon="webhook" href="/docs/api-access/external-webhooks">
    Configure event receivers.
  </Card>
</CardGroup>
