> This page is for Home.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://dev.hume.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://dev.hume.ai/_mcp/server.

# Authentication

> Create an API key on the Hume Platform, and send it in the X-Hume-Api-Key header with every request to a Hume API.

**Every Hume API takes an API key in the `X-Hume-Api-Key` header.** Keys for every product are created on the same page of the Hume Platform.

## API keys

1. Sign in to the [Hume Platform](https://cloud.hume.ai/), or create an account.
2. On the [API keys page](https://cloud.hume.ai/settings/organization/api-keys), select **Create API key**.
3. Name the key for whatever will use it, and choose its permissions and when it expires.
4. Create the key and copy it. The key is shown only once.

> **Warning**
>
> A key's expiry cannot be extended. Before a key expires, create a new one and switch your code to it.

## Sending the key

Set the key as the `HUME_API_KEY` environment variable, and set the `X-Hume-Api-Key` header on every request. The SDKs send the key for you, and read it from `HUME_API_KEY` when you pass none to the client.

#### cURL

```bash
export HUME_API_KEY="<your API key>"

curl https://api.cloud.hume.ai/v0/decisions/run \
  -H "X-Hume-Api-Key: $HUME_API_KEY"
```

A missing, invalid, or expired key is rejected with `401 Unauthorized` before the request reaches the service. A `403 Forbidden` means your organization is not permitted to use the API. For Audio Decisions, a `403` can also mean the credential does not grant access to the API, for example because the key's permissions leave it out. Realtime Expression Measurement sessions send the key once, on the WebSocket handshake. See each product's authentication page for its details.

## Browsers

An API key must never ship in client-side code, so call the API from a server you control. To use the API from a web page, relay through that server: the browser sends media to your server, which forwards it to Hume with the key attached and returns the results.

## Product authentication pages

#### [Audio Decisions](/audio-decisions/docs/authentication)

The `401` body for decisions and run requests.

#### [Expression Measurement](/expression-measurement/docs/authentication)

Upload requests, and the WebSocket handshake for realtime sessions.