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

# API Keys

> Create and manage API keys for programmatic access to the Blink platform.

In the API Keys settings page you can manage your personal API keys of the Blink platform. You can create, delete and edit your API keys.

<Frame>
  <img src="https://mintcdn.com/blinkops-2/yRkQ-wRlnQIXwr-A/img/AccountAdmin/api-key.png?fit=max&auto=format&n=yRkQ-wRlnQIXwr-A&q=85&s=303fbae6d85941affc4e003a99c093cb" width="3584" height="1990" data-path="img/AccountAdmin/api-key.png" />
</Frame>

<Note>**NOTE**: There always has to be one API key available. The maximum number of API keys at any given time is `5`.</Note>

## Create API Key

<Steps>
  <Step>
    Select the **New API Key** button in the top-right corner
  </Step>

  <Step>
    Give your API key a name and optionally add a description for your API key. Then click the create button in the bottom-right corner.

    <Frame>
      <img src="https://mintcdn.com/blinkops-2/yRkQ-wRlnQIXwr-A/img/AccountAdmin/add-api-key.png?fit=max&auto=format&n=yRkQ-wRlnQIXwr-A&q=85&s=711c0c007f1c9628e478e4ab483ddca0" width="3584" height="1880" data-path="img/AccountAdmin/add-api-key.png" />
    </Frame>
  </Step>

  <Step>
    It will be added to the table.

    | Parameter   | Description                        |
    | ----------- | ---------------------------------- |
    | Name        | Name given to the API Key          |
    | Description | Description given to the API Key   |
    | Key         | The API key itself                 |
    | Created At  | The time you created the API key   |
    | Last used   | The last time you used the API key |
  </Step>
</Steps>

## Generate a New API Key

<Note>**Note**: This setting can only be used with the default API key.</Note>

To generate a new API key, click the <Icon icon="square-ellipsis-vertical" iconType="solid" /> icon on the right-hand side of the default API key row, then select **Rotate**.

## Edit API Key

If you want to make any changes to the API information, double click on the cell and make the desired changes. You can change the API key name or description.

<Frame>
  <img src="https://mintcdn.com/blinkops-2/yRkQ-wRlnQIXwr-A/img/AccountAdmin/edit-api-key.gif?s=cb45eefdd4ce2643d564badcb2aeb230" width="1152" height="648" data-path="img/AccountAdmin/edit-api-key.gif" />
</Frame>

## Delete API Key

If you want to delete an API Key, click on the <Icon icon="square-ellipsis-vertical" iconType="solid" /> icon on the right-hand side of the row and select the **delete** option.

<Frame>
  <img src="https://mintcdn.com/blinkops-2/yRkQ-wRlnQIXwr-A/img/AccountAdmin/delete-api-key.png?fit=max&auto=format&n=yRkQ-wRlnQIXwr-A&q=85&s=77795259e057508fc0a64ed33cbad77c" width="3584" height="1990" data-path="img/AccountAdmin/delete-api-key.png" />
</Frame>

## Using your Personal API Key in Workflows

<Steps>
  <Step>
    Click anywhere on the workflow within the Workflow pack.
  </Step>

  <Step>
    You will be redirected to the Workflow Editor.
  </Step>

  <Step>
    Click the <Icon icon="square-ellipsis-vertical" iconType="solid" /> icon in the top right-hand side corner.
  </Step>

  <Step>
    Choose the Settings option to access the Workflow settings.
  </Step>

  <Step>
    Go to the **Run Methods** section and select the **REST API** or **CLI** method.
  </Step>

  <Step>
    Under the command text field, select which **personal API key** from the dynamic dropdown menu.
  </Step>

  <Step>
    Upon selection, your **personal API key** will be added to the command, allowing you to proceed using the chosen run method for your chosen Workflow.

    <Frame>
      <img src="https://mintcdn.com/blinkops-2/yRkQ-wRlnQIXwr-A/img/AccountAdmin/automation-api-key.gif?s=77a075997532b4bf79b4173616788dcf" width="1152" height="648" data-path="img/AccountAdmin/automation-api-key.gif" />
    </Frame>
  </Step>
</Steps>
