---
title: "API keys · WitCloud Docs"
description: "Create API keys that let your own scripts and systems call the WitCloud API for a project - choose what each key may do and when it expires, and revoke it…"
canonical_url: "https://witcloud.ai/docs/admin/api-keys"
meta:
  "og:description": "Create API keys that let your own scripts and systems call the WitCloud API for a project - choose what each key may do and when it expires, and revoke it…"
  "og:image": "https://witcloud.ai/og-default.png"
  "og:title": "API keys · WitCloud Docs"
---

> Index of every page on this site: [llms.txt](https://witcloud.ai/llms.txt)

# API keys

Create API keys that let your own scripts and systems call the WitCloud API for a project - choose what each key may do and when it expires, and revoke it when it is no longer needed.

Updated 1 Nov 2026

An API key lets your own scripts and systems call the WitCloud API without signing in - for example, to start a [workflow](https://witcloud.ai/docs/workflow) from your own scheduler and check when it has finished. A key belongs to the project, not to the person who created it: it acts on this project only, with the scopes you give it, and it keeps working when its creator leaves the project. Revoke it when it is no longer needed.

## Where to find it

Go to **Admin settings > API keys**. The card is in the **Product Settings** section and is shown when a project is selected. The page shows the keys of the selected project; switch projects to see another project's keys.

![Admin settings page with the API keys card in the Product Settings section](https://api.witcloud.ai/api/docs/assets/4980de5e65d79b394ae2b0a94a2aa45c.png)

Only the project's Owner, Admins and Editors can see and manage its API keys ([roles](https://witcloud.ai/docs/admin/team#roles)).

## The API keys page

At the top, **Using a key** shows how to send a key, an example request and **What you can do with the API**. **API documentation** opens the description of every request a key can make. Below it is the list of the project's keys, the newest first.

![API keys page with the Using a key box, the example request, what you can do with the API, and an example list of keys with their scopes, status, expiry and last use](https://api.witcloud.ai/api/docs/assets/7afacc70b6fad4e73cc7b5b816a5754b.png)

The list shows for each key:

- **Name** - with the description below it, if the key has one.
- **Key** - the first characters of the key, to tell keys apart. The full key is never shown again after it is created.
- **Scopes** - what the key may do (see [Scopes](#scopes)).
- **Status** - **Active**, **Expired** or **Revoked**.
- **Expires** - the date the key stops working, or **Never**.
- **Last used** - when the key last made a request, or **Not used yet**. It is updated at most once a minute.
- **Created by** - who created the key.

## Create an API key

1. Click **Create API key**.
2. Enter a **Name** (up to 100 characters), for example the system that will use the key. A **Description** is optional (up to 500 characters).
3. Under **Access**, choose:
   - **Limited** - the key gets only the scopes you tick below. Tick at least one.
   - **Full access** - the key may use every request open to API keys in this project, including ones added in the future.
4. Choose the **Expiration**: **7 days**, **30 days**, **90 days** (the default), **365 days**, **Custom date** or **Never**. With **Custom date**, pick a day from tomorrow on: the key works until the end of that day in your time zone.
5. Click **Create API key**.

![Create API key dialog with the Name filled in, Limited access with Run workflows and Check workflow runs ticked, and Expiration set to 90 days](https://api.witcloud.ai/api/docs/assets/61f3a56da92fa2c33dd3b463171fc3a2.png)

Give a key only the access it needs, and prefer a key that expires: a key set to **Never** keeps working until you revoke it.

A project can have up to 25 active keys. Expired and revoked keys do not count.

## Copy the key

**API key created** shows the new key. Click the copy icon next to it and keep the key somewhere safe - for security, it is shown only this once. Then click **I have copied the key**.

![API key created dialog with an example key, the Copy button and I have copied the key](https://api.witcloud.ai/api/docs/assets/17e1ebce7c135687d509f0baef5d31d0.png)

If you lose the key, it cannot be shown again: create a new one and revoke the old one.

Done! The key is in the list as **Active** and works straight away.

## Use the key

Send the key in the `X-Api-Key` header of every request, or as `Authorization: Bearer <key>`. The key acts on its own project, so you never name the project. Every key starts with `wck_`.

```bash
curl -X POST https://<WitCloud API>/api/workflow/run \
  -H "X-Api-Key: wck_…" \
  -H "Content-Type: application/json" \
  -d '{"workflowId": "<workflowId>"}'
```

Copy the address from the example on the API keys page, and see **API documentation** there for every request, its fields and its answers.

A key can only make the requests open to API keys - it cannot sign in to the panel, and it cannot create, list or revoke keys.

## Scopes

| Scope | In the panel | What the key may do | Requests per minute |
| --- | --- | --- | --- |
| `workflows:run` | **Run workflows** | Start a workflow now, whatever its schedule. The schedule is not changed. | 10 |
| `workflows:read` | **Check workflow runs** | Check how a run is going and when it finished. | 60 |
| `custom-queries:read` | **View Custom Queries** | Get the settings of a [Custom Queries](https://witcloud.ai/docs/integrations/custom-queries) integration. | 60 |
| `custom-queries:write` | **Manage Custom Queries** | Create and edit Custom Queries integrations. | 30 |

**Full access** (`*`) includes every scope above.

The limits are per project: all of a project's keys share them, so more keys do not mean more requests. Every answer says how many requests are left in the `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` headers. Over a limit, the API answers `429` and the `Retry-After` header says how many seconds to wait.

## Revoke or delete a key

- **Revoke** (the crossed-circle icon, on active keys) - the key stops working straight away and anything that uses it is turned away. It stays in the list as **Revoked**.
- **Delete** (the trash icon) - the key is revoked and removed from the list. This cannot be undone.

Both ask you to confirm first.

![Revoke API key dialog asking to confirm that the example key Nightly pipeline stops working](https://api.witcloud.ai/api/docs/assets/0160098af3358f17305fabdda9cf4f2e.png)

A revoked or expired key cannot be turned on again or extended - create a new key instead.

## Troubleshooting

### Give the key a name. / Pick at least one scope, or give the key full access. / Pick the expiration date.

A field in **Create API key** is missing: enter a **Name**, tick at least one scope (or choose **Full access**), or pick the day for **Custom date**.

### A project can have at most 25 active API keys

Revoke or delete a key that is no longer used, then create the new one.

### Invalid API key / API key has been revoked / API key has expired

The API answers `401`: the key is wrong (check that it was copied whole), was revoked or deleted, or has passed its **Expires** date. Check its **Status** in the list, and create a new key if needed.

### API key does not have the "…" scope

The API answers `403`: the key has no scope for this request. Keys cannot be changed - create a key with the scope it needs and revoke the old one.

### This endpoint does not accept API keys

The request is not open to API keys. See **API documentation** on the API keys page for the requests that are.

### Rate limit exceeded

The API answers `429`: the project's keys have made too many requests of this kind in the last minute. Wait the number of seconds in `Retry-After`, then try again.

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://witcloud.ai/#website","@type":"WebSite","description":"WitCloud is a marketing and e-commerce analytics platform: connect your data, ask AI and track KPIs in one place.","inLanguage":"en-US","name":"WitCloud","url":"https://witcloud.ai/","publisher":{"@id":"https://witcloud.ai/#identity"}},{"@id":"https://witcloud.ai/docs/admin/api-keys#webpage","@type":"WebPage","dateModified":"2026-11-01T08:00:22.220Z","description":"Create API keys that let your own scripts and systems call the WitCloud API for a project - choose what each key may do and when it expires, and revoke it…","name":"API keys · WitCloud Docs","url":"https://witcloud.ai/docs/admin/api-keys","breadcrumb":{"@id":"https://witcloud.ai/docs/admin/api-keys#breadcrumb"},"isPartOf":{"@id":"https://witcloud.ai/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://witcloud.ai/docs/admin/api-keys"]}],"primaryImageOfPage":{"@id":"https://witcloud.ai/#logo"}},{"@id":"https://witcloud.ai/#identity","@type":"Organization","name":"WitCloud","url":"https://witcloud.ai","logo":{"@id":"https://witcloud.ai/#logo"},"sameAs":[]},{"@id":"https://witcloud.ai/docs/admin/api-keys#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Admin settings","item":"https://witcloud.ai/docs/admin","position":1},{"@type":"ListItem","name":"API keys","item":"https://witcloud.ai/docs/admin/api-keys","position":2}]},{"@id":"https://witcloud.ai/docs/admin/api-keys#article","dateModified":"2026-11-01T08:00:22.220Z","description":"Create API keys that let your own scripts and systems call the WitCloud API for a project - choose what each key may do and when it expires, and revoke it when it is no longer needed.","headline":"API keys","inLanguage":"en-US","thumbnailUrl":"https://witcloud.ai/og-default.png","@type":["Article","TechArticle"],"author":{"@id":"https://witcloud.ai/docs/admin/api-keys#/schema/person/1"},"image":{"@id":"https://witcloud.ai/docs/admin/api-keys#/schema/image/1"},"isPartOf":{"@id":"https://witcloud.ai/docs/admin/api-keys#webpage"},"mainEntityOfPage":{"@id":"https://witcloud.ai/docs/admin/api-keys#webpage"},"publisher":{"@id":"https://witcloud.ai/#identity"}},{"@id":"https://witcloud.ai/docs/admin/api-keys#/schema/person/1","@type":"Person","name":"WitCloud"},{"@id":"https://witcloud.ai/#logo","@type":"ImageObject","caption":"WitCloud","contentUrl":"https://witcloud.ai/logo.svg","inLanguage":"en-US","url":"https://witcloud.ai/logo.svg"},{"@id":"https://witcloud.ai/docs/admin/api-keys#/schema/image/1","@type":"ImageObject","contentUrl":"https://witcloud.ai/og-default.png","inLanguage":"en-US","url":"https://witcloud.ai/og-default.png"}]}
```

## Sitemap

See the full [sitemap](https://witcloud.ai/sitemap.md) for all pages.
