Skip to main content
A saved general agent can serve callers outside Studio. Use the managed agent text API to maintain a conversation from your backend, or select a compatible endpoint for an existing protocol client. Website visitors and Feishu users use separate channels and do not need the agent’s API key.

Identity and storage boundaries

Send a message from a backend

In the agent’s integration settings, open API access, choose the managed agent API, and copy its invocation URL and API key. The URL ends in /api/v1/harness_agent/{agent_id}/invoke. Use the full address shown in Studio, not the shared runtime’s address.
The API key grants the issuer’s invocation access to this agent. Inject it through a backend secret manager. Never embed it in browser JavaScript, chat messages, or a source repository.
In a backend terminal with curl, set STUDIO_INVOKE_URL to the copied HTTPS URL and supply STUDIO_AGENT_KEY securely. Send a text request:
On success, data.text contains the reply and data.session_id identifies the conversation. Reuse the UUID for subsequent turns under the same caller identity. Generate a different UUID for each new conversation; do not share the example value across users. If the request is denied, verify that the URL and key belong to the same agent and that the issuer still has permission to invoke it. A browser login cookie cannot replace the API key on this endpoint.

Choose another protocol or channel

Feishu direct messages

In the preview, sign in to Studio with an account linked to your Feishu identity. Your direct conversations with a bound bot appear under Conversations alongside regular sessions, ordered by their last update. Open a conversation and refresh to see new messages. The Studio view is read-only and does not list other people’s direct messages. In a Feishu direct chat, send /new to start a new conversation, or /rename Weekly report to rename the current one. Send /studio in Feishu to open that part of the conversation in Studio. To reply, return to Feishu.
Last modified on November 19, 2026