Skip to main content
POST
Error
Sendet eine Nachricht an einen Agent. Der Endpunkt streamt die Modellantwort. API-Keys mussen Streaming explizit erlauben, wenn der Client Streaming anfordert.
Erforderlicher API-Key-Scope: agents:run.

Path-Parameter

string
erforderlich
UUID des Agents.

Body-Parameter

string
erforderlich
Nachricht an den Agent. Maximale Lange: 32000 Zeichen.
string
UUID einer bestehenden Unterhaltung. Ohne Wert startet Pharen eine neue Unterhaltung.
string
Optionales Modell. Ohne Wert nutzt Pharen das Standardmodell des Agents.
boolean
Aktiviert Reasoning, wenn das Modell es unterstutzt.
object
Optionaler JSON-Kontext der aufrufenden Seite.

Beispiel-Body

Autorisierungen

Authorization
string
header
Standard:phk_your_api_key
erforderlich

Paste your Pharen API key without the Bearer prefix.

Pfadparameter

agent_uuid
string<uuid>
erforderlich

Agent UUID.

Body

application/json
message
string
erforderlich
Beispiel:

"Summarize the latest onboarding blockers."

conversation_id
string

Optional conversation identifier for continuing a thread.

context
object

Optional structured context for the agent.

Antwort

Agent response returned.

message
string
conversation_id
string
run_id
string