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

# DigitalOcean API Credentials

> Store a DigitalOcean personal access token in Ankra to provision and manage DigitalOcean clusters and DOKS.

DigitalOcean API credentials store a DigitalOcean personal access token, used to provision and manage self-managed [DigitalOcean droplet clusters](/guides/digitalocean-clusters) and [DigitalOcean Kubernetes (DOKS)](/guides/doks-clusters). The token is validated against the DigitalOcean API on creation.

## Creating a DigitalOcean API Credential

<Steps>
  <Step title="Get a DigitalOcean token">
    1. Log in to the [DigitalOcean Control Panel](https://cloud.digitalocean.com/account/api/tokens)
    2. Go to **API** → **Tokens** → **Generate New Token**
    3. Give it **Read & Write** scopes and copy the token (prefixed with `dop_v1_`; shown once)
  </Step>

  <Step title="Add to Ankra (UI)">
    Go to **Credentials** → **Add** → **DigitalOcean**, enter a name, and paste the token.
  </Step>

  <Step title="Or via CLI">
    ```bash theme={null}
    ankra credentials digitalocean create --name my-do-token
    # You will be securely prompted for the API token
    ```
  </Step>
</Steps>

For self-managed droplet clusters you also need an [SSH key credential](/platform/credentials/ssh-key) - create one with `ankra credentials digitalocean ssh-key create --name my-key --generate`.

## Listing DigitalOcean Credentials

<CodeGroup>
  ```bash CLI theme={null}
  ankra credentials digitalocean list
  ```

  ```bash cURL theme={null}
  curl https://platform.ankra.app/api/v1/credentials/digitalocean \
    -H "Authorization: Bearer $ANKRA_API_TOKEN"
  ```
</CodeGroup>
