Skip to content

Realtime

realtime_tokens_create

Mint a short-lived capability token (JWT) carrying the capabilities the identity has via namespace policy and grants (optionally filtered to the given channels), plus the gateway WebSocket URL to connect to

Tool

realtime_tokens_create

Mint a short-lived capability token (JWT) carrying the capabilities the identity has via namespace policy and grants (optionally filtered to the given channels), plus the gateway WebSocket URL to connect to

Mint a short-lived capability token (JWT) carrying the capabilities the identity has via namespace policy and grants (optionally filtered to the given channels), plus the gateway WebSocket URL to connect to

Behavior

HTTP
POST /realtime/tokens

Arguments

NameTypeRequiredDescription
channelsarrayConcrete channels to filter the resolved capabilities to; omit to receive all capabilities the identity has

Response

FieldTypeAlwaysDescription
tokenstringSigned EdDSA capability JWT (60s TTL)
gatewayUrlstringWebSocket URL of the realtime gateway to connect to

Try it

Mint a short-lived capability token (JWT) carrying the capabilities the identity has via namespace policy and grants (optionally filtered to the given channels), plus the gateway WebSocket URL to connect to.

When to use

Mint a short-lived capability token (JWT) carrying the capabilities the identity has via namespace policy and grants (optionally filtered to the given channels), plus the gateway WebSocket URL to connect to

Example

Ask your agent something like this:

Mint a short-lived capability token (JWT) carrying the capabilities the identity has via namespace policy and grants (optionally filtered to the given channels), plus the gateway WebSocket URL to connect to.

The agent will invoke realtime_tokens_create with these arguments:

{}

Esc

Start typing to search the docs.

navigateselect