---
title: "Create Realtime Client Secret"
method: POST
path: "/v1/realtime/client_secrets"
---

# Create Realtime Client Secret

`POST /v1/realtime/client_secrets`

## Request

- Base URL: `https://api.empiriolabs.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.empiriolabs.ai/v1/realtime/client_secrets`
- Auth: none declared
- TypeScript: <https://skmtc.dev/empiriolabs/apis/empiriolabs-gateway/docs/v1/realtime/client_secrets/post.ts> (a function with typed inputs; its response is checked against the schema)

Mint a short-lived realtime credential for the caller's own web page.

Authenticated with the caller's API key like every other endpoint. The model
resolves only AFTER the meter authenticated the caller, so an anonymous
caller gets the same 401 for an unknown id as for a routed one. The secret is
bound to the admitted key and this model; the dashboard chose its expiry.

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.dev/empiriolabs/apis/empiriolabs-gateway.md) - [All operations](https://skmtc.dev/empiriolabs/apis/empiriolabs-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/empiriolabs/apis/empiriolabs-gateway/revisions/94bb966b0560?raw)
