# Get started with the Kumkuat REST API and API keys

Create a workspace API key under Workspace → Integrations → API keys, send it in the X-API-Key header on every request, and use the API reference to find the endpoint groups, two of which need a feature that Kumkuat enables for your workspace.

## Create a workspace API key

Every request to the Kumkuat API, and every other integration, authenticates with a workspace API key. A key is bound to one workspace and acts with that workspace's rights.

1. In the Kumkuat app, open Workspace.
2. Go to Integrations.
3. Open API keys and create a new key.
4. Store the key somewhere safe, such as an environment variable named KUMKUAT_API_KEY.

> A key only reaches the workspace it was created in. If you work with more than one workspace, create a separate key in each.

## Authenticate your requests

Send your key in the X-API-Key header on every request. This example lists the personas in your workspace, reading the key from the KUMKUAT_API_KEY environment variable:

```bash
curl -H "X-API-Key: $KUMKUAT_API_KEY" https://api.kumkuat.ai/api/v1/personas
```

To try requests in your browser, the interactive Swagger UI is at https://api.kumkuat.ai/docs. Each endpoint page in the API reference also has a request panel you can run against the API with your own key.

## Find the endpoint groups

The API reference is generated from the live OpenAPI specification and lists the endpoints meant for integrations, organised into these groups:

- Workspace: the current workspace and its extracted tag vocabularies.
- Personas & audiences: personas, grounding, refinements and voice profiles, reactions and interactions, audience groups and summaries.
- Documents & content: upload, ingest, query and tag documents; the content-writing endpoints; executive and theme insights.
- Signals & themes: signal templates, signals and runs.
- Auto tags: tag definitions, aliases and normalisation.
- Reports: custom reports, sections, generation, PDF, email and scheduling.

Each endpoint page shows its parameters, request body and response schemas. The full raw specification, including routes left out of the reference, is at https://api.kumkuat.ai/openapi/openapi.json.

## Endpoints that need a feature enabled

Two areas only respond when Kumkuat has enabled a feature for your workspace. Their reference pages say so.

- Reports endpoints need the Custom reports feature.
- The persona why this matters endpoint needs the Why this matters feature.

> If the feature isn't enabled for your workspace, these endpoints answer with 403 even when your API key is valid.

## Next steps

The REST API page covers conventions, and the API how-to guides have worked examples: your first call, scoring a draft against audiences, integrating a content creation platform, building scorecards and chat, media pitching, message creation, and managing an audience library.
