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

# API Keys

All API endpoints on TrueState can be used with an API key. An API key is tied to an Organisation, and a user with the API key will be able to perform actions within its Organisation. For a complete list of API endpoints, see the [API Reference](https://api.truestate.io/docs).

## Creating API Keys

To create an API key, navigate to settings then click the API Keys tab. Click create API key, and provide a name for the key. Make sure this name is detailed and explains what this key will be used for and why it exists.

Once created, the API key will be displayed on screen. Save this into a secure location as it will not be accessible again.

<img alt="Show all API keys" src="https://mintcdn.com/truestate/GF4r73UOGeRL5z6C/images/guides/api_keys/api_key_list.png?fit=max&auto=format&n=GF4r73UOGeRL5z6C&q=85&s=5dd310335ff0012ff7646aa93a282a3b" width="3840" height="2160" data-path="images/guides/api_keys/api_key_list.png" />

## Using API Keys

An API key can be used by providing it in the field within the OpenAPI documentation for the endpoint. This provides it as a request header curl -H parameter. It can also be provided manually to a curl request with the header structure: 'Api-key: test'.

## Deleting API Keys

If an API key is no longer needed or has been lost, click the 3 dots next to the key and select Delete to remove this API key.
