Documentation Index
Fetch the complete documentation index at: https://mintlify.com/stephengpope/thepopebot/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Pope Bot framework exposes a REST API at/api/* endpoints for external integrations. These routes are designed for external callers only — GitHub Actions, Telegram webhooks, cURL scripts, and third-party services.
Base URL
All API routes are mounted under/api:
Response Format
All responses are JSON with appropriate HTTP status codes:Success Response
Error Response
Status Codes
| Code | Meaning |
|---|---|
200 | Success |
400 | Bad Request - invalid or missing parameters |
401 | Unauthorized - missing or invalid API key |
404 | Not Found - unknown endpoint |
500 | Internal Server Error |
Error Handling
All endpoints return consistent error objects:"Unauthorized"- Missing or invalidx-api-keyheader"Missing job field"- Required request body field not provided"Failed to create job"- Internal error during job creation"Not found"- Unknown endpoint path
Authentication
See Authentication for details on API key management.Available Endpoints
Job Management
- POST /api/create-job - Create a new agent job
- GET /api/jobs/status - Check job status and results
Webhooks
- POST /api/telegram/register - Register Telegram bot webhook
- POST /api/telegram/webhook - Receive Telegram messages
- POST /api/github/webhook - Receive GitHub events
Health Check
GET /api/ping- Returns{"message": "Pong!"}(public, no auth required)