# Managing Fabricate API keys

To use the Fabricate API and CLI, you must have a Fabricate API key.

## Displaying the list of API keys

To display the list of API keys, click the user icon at the bottom left of Fabricate, then select **Account Settings**.

The **API Keys** page contains your list of API keys.

## Creating an API key

To create an API key:

1. Click **Create New API Key**.
2. On the **Create New API Key** panel, in the **Name** field, provide a name for the API key.
3. By default, new API keys are granted Editor access to all of the current account workspaces. For information about workspace roles, go to [#about-workspace-roles](https://docs.tonic.ai/fabricate/workspaces/configuring-access-to-a-workspace#about-workspace-roles "mention").\
   \
   To grant a different workspace role, select the role from the dropdown list.\
   \
   To not grant any access to the account workspaces, uncheck the **Grant access to all workspaces** checkbox. You can then add the API key as needed to specific workspaces.\
   \
   Note that this only applies to workspaces that exist when you create the API key. The API key is not automatically granted access to any future workspaces.
4. Click **Create API Key**.

## Copying an API key

To copy an API key to the clipboard, click the copy icon next to the key.

## Deleting an API key

To delete an API key, click **Delete**.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tonic.ai/fabricate/fabricate-api-and-cli/managing-fabricate-api-keys.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
