API Reference
Complete API reference for Reqbeam.
Authentication
All API endpoints require authentication except for public endpoints.
Authentication Methods
- Web Interface: NextAuth.js session-based authentication
- CLI: JWT token-based authentication
- API: Bearer token authentication
Web API Endpoints
Collections
GET /api/collections- List collectionsPOST /api/collections- Create collectionGET /api/collections/[id]- Get collectionPUT /api/collections/[id]- Update collectionDELETE /api/collections/[id]- Delete collection
Requests
GET /api/requests- List requestsPOST /api/requests- Create requestGET /api/requests/[id]- Get requestPUT /api/requests/[id]- Update requestDELETE /api/requests/[id]- Delete request
Environments
GET /api/environments- List environmentsPOST /api/environments- Create environmentGET /api/environments/[id]- Get environmentPUT /api/environments/[id]- Update environmentDELETE /api/environments/[id]- Delete environment
Workspaces
GET /api/workspaces- List workspacesPOST /api/workspaces- Create workspaceGET /api/workspaces/[id]- Get workspacePUT /api/workspaces/[id]- Update workspaceDELETE /api/workspaces/[id]- Delete workspace
History
GET /api/history- List request historyGET /api/history/[id]- Get history entryPOST /api/history- Create history entry
Auth Server API
If using a separate authentication server, see the Auth Server Documentation for endpoints.
Endpoints
POST /api/auth/signup- User registrationPOST /api/auth/login- User loginGET /api/auth/verify- Verify tokenGET /health- Health check
CLI API
The CLI communicates with the web application’s API endpoints. All CLI operations use the same API endpoints as the web interface.
Rate Limiting
API rate limiting may be implemented in future versions.
Error Responses
All API endpoints return standard HTTP status codes:
200 OK- Successful request201 Created- Resource created400 Bad Request- Invalid request401 Unauthorized- Authentication required403 Forbidden- Access denied404 Not Found- Resource not found500 Internal Server Error- Server error