Introduction
In addition to the GraphQL API, PentAGI provides REST endpoints for specific operations like authentication, terminal logs, and provider management.Base URL
All REST endpoints are prefixed with:Authentication
REST endpoints use the same session-based authentication as the GraphQL API. Include the session cookie with all requests:Response Format
Successful responses follow this structure:Common HTTP Status Codes
| Code | Description |
|---|---|
| 200 | Success |
| 201 | Created |
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Authentication required |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found |
| 500 | Internal Server Error |
Available Endpoints
Authentication
Auth Endpoints
Login, logout, and session management
Flow Management
Task Management
Terminal Logs
Terminal Log Endpoints
Access command execution logs
Provider Management
Provider Endpoints
Manage LLM provider configurations
Containers
Screenshots
Query Parameters
Many list endpoints support query parameters for filtering, sorting, and pagination:Page number for pagination
Number of items per page
Field to sort by
Sort order:
asc or descFilter expression for search
Example
Swagger Documentation
Interactive API documentation is available via Swagger UI:Next Steps
Terminal Logs
Access command execution logs via REST
Provider Management
Manage LLM providers via REST