Error
Chat with agent
Send a user message to a Pharen Hub AI agent by UUID and stream the model response back over HTTP using a scoped agents:run API key.
POST
Error
Sends a message to an agent. The endpoint streams the model response. API keys must explicitly allow streaming when a streaming response is requested by the client.
Required API key scope:
agents:run.Path parameters
UUID of the agent.
Body parameters
User message for the agent. Maximum length is
32000 characters.Existing conversation UUID. If omitted, Pharen starts a new conversation.
Optional model override. If omitted, the agent default model is used.
Whether to enable model reasoning when supported by the selected model.
Whether the agent should produce an artifact-oriented response.
Optional artifact category hint.
Optional JSON context from the caller’s current page.
Example body
Authorizations
Paste your Pharen API key without the Bearer prefix.
Path Parameters
Agent UUID.
Body
application/json