Skip to main content
Two Different API Servers: This page documents the Agent.launch() HTTP server. For the auto-generated API server created by praisonai deploy run --type api, see API Server Authentication.
HTTP REST API endpoints for agents deployed via Agent.launch() or Agents.launch().

Base URL

Default port is 8000.

Endpoints

POST /

Send a query to the agent(s). Request:
Request Body: Response:
Response Fields:

POST //

Call a specific agent in multi-agent setup. Request:
Response:

GET //list

List available agents. Request:
Response:

GET /health

Health check endpoint. Request:
Response:

GET /

Root endpoint with welcome message. Request:
Response:

GET /docs

Swagger UI documentation. Request: Open in browser: http://localhost:8000/docs

Error Responses

Error Format:

Authentication

The Agent.launch() API server uses X-API-Key authentication when configured. When api_key is set in launch():

Python Client