---
title: "Mint a short-lived chat stream token"
method: POST
path: "/agent/v2/chat/{id}/stream-token"
tags: ["Agents"]
---

# Mint a short-lived chat stream token

`POST /agent/v2/chat/{id}/stream-token`

Returns a short-lived token that allows browser clients to connect directly to the agent chat SSE stream without exposing the underlying org API key.

## Path parameters

- `id` string, required

## Response `200`

Short-lived stream token

- object
  - `token` string, required
  - `expiresAt` string, date-time, required
  - `streamUrl` string, uri, required

## Other responses

- `401` — Invalid API key
- `403` — No agent access or non-API-key auth
- `404` — Chat not found

## Changes

- **2026-04-13** `73fdc101e073` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/casemark/apis/case-dev-api/changes/agent/v2/chat/:id/stream-token/post.md)

---

[API](https://skmtc.dev/casemark/apis/case-dev-api.md) · [All operations](https://skmtc.dev/casemark/apis/case-dev-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/casemark/case-dev-api/revisions/2a016c5bb11e/schema)
