> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://support.cthings.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How do I create an API user and API key?

You can create an API user in cThings Cloud to programmatically access your devices and data via the cThings Cloud API. You can create API keys once the API user is created.

### Creating an API user in cThings Cloud

1. Navigate to Users
2. Click *New User*
3. Select *API User*
4. Enter a *Name* and *Organisation* for your API user
5. Select a *Role* for your API user; this will determine what API endpoints the API user can access
6. Select an *Asset* that your API user can access (more assets can be added later)
7. Click *Create User*

![Creating an API User](https://storage.crisp.chat/users/helpdesk/website/66a70a6ed8fbb400/image_1jeihm7.png)

### Generating an API key

1. Navigate to the API user
2. Under  the *API Keys *tile, click *Add API Key*
3. Name you API key to identify it's purpose
4. Click *Add API Key*

||| Take note of the Secret as this will no longer be available after leaving the page **