Skip to main content
POST
Deploy API: AGUI Server

AGUI API

AG-UI protocol endpoints for agents deployed via AGUI(agent).get_router(). Compatible with CopilotKit.

Base URL + Playground

Base URL: http://localhost:8000

Endpoints

POST /agui

Run agent with Server-Sent Events streaming.
threadId
string
required
Thread identifier
runId
string
required
Run identifier
state.messages
array
required
Conversation messages array
Response (SSE Stream):

GET /status

Check agent availability.
none
none
No parameters required.
Response:

Event Types

EventDescription
run_startedAgent run has started
run_finishedAgent run completed
run_errorError occurred during run
text_message_startNew text message started
text_message_contentText content delta
text_message_endText message completed
tool_call_startTool call started
tool_call_argsTool call arguments
tool_call_endTool call completed

Message Format

Input Message:
FieldTypeDescription
idstringMessage ID
rolestring”user” or “assistant”
contentstringMessage content

Error Events

CopilotKit Integration