# Managing Fabricate API keys

To use the Fabricate API, 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, API keys do not expire. To set an expiration, from the **Expires** dropdown list, select when the API key expires. You can select one of the default options (30 days, 90 days, one year), or provide a custom expiration date.
4. By default, new API keys are granted Editor access to all of the current account workspaces. For information about workspace roles, go to [Configuring access to a workspace](/fabricate/workspaces/configuring-access-to-a-workspace.md#about-workspace-roles).\
   \
   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.
5. Click **Create API Key**.
6. On the **API key created** panel, Fabricate displays the key.\
   \
   To be able to use the key, you must copy it from this panel. The key is not displayed again. On the API Keys page, the keys are masked.\
   \
   To copy the key to the clipboard, click **Copy**.

## Deleting an API key

To delete an API key, click its delete icon.


---

# 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/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.
