Skip to main content
POST
Issue MQTT Operator Token
Use this endpoint to issue a short-lived MQTT operator token for Transparency Mode. The token lets your backend or operator agent subscribe to user messages and publish replies through the NavTalk hosted MQTT broker. The endpoint does not require a request body. Pass your project API key in the license header.

Python agent usage

The sample operator agent fetches this token automatically when you pass --api-key:
Internally, the agent calls:
It then uses the returned brokerUrl, projectId, prefix, and token to connect to MQTT.

Topic usage

The response includes ready-to-use topic templates:
  • topics.subscribe: subscribe to user messages, for example navtalk/transparent/{projectId}/+/user
  • topics.reply: publish operator replies, for example navtalk/transparent/{projectId}/{sessionId}/reply
  • topics.presence: publish operator online/offline status, for example navtalk/transparent/{projectId}/agent/presence
When replying, replace {sessionId} with the session ID from the user message topic.

Reply payload

For a final text reply, publish this JSON to the reply topic:
For streaming replies, publish transparent.reply.text.delta messages first, then finish with transparent.reply.text.done.
Do not expose the returned MQTT token in browser code. Fetch it from your backend or run the Python operator agent in a trusted server environment.

Authorizations

license
string
header
required

NavTalk API license key (e.g. sk_navtalk_...)

Response

MQTT operator token issued successfully

code
integer
Example:

200

message
string
Example:

"SUCCESS"

data
object