Developers
Build powerful AI applications with the promptha API.
Getting Started
Authentication
All API requests require authentication using an API key. Include your key in the Authorization header:
Authorization: Bearer YOUR_API_KEYGenerate your API key from Settings > API Keys in your dashboard.
API Endpoints
Outputs
Access public output and creation metadata
GET
/api/galleryList public community outputs
GET
/api/ask-templatesBrowse Ask starters and creation modes
GET
/api/askgl-queryBrowse published AskGL queries
Skills
Execute AI skills
POST
/api/v1/skills/:id/runRun a skill with parameters
POST
/api/v1/skills/:id/executeExecute a skill (alternative endpoint)
Knowledge Bases
Manage and query knowledge bases
GET
/api/v1/knowledge-basesList your knowledge bases
POST
/api/v1/knowledge-bases/:id/queryQuery a knowledge base with RAG
POST
/api/v1/knowledge-bases/:id/documentsAdd documents to a knowledge base
Prompts
Execute saved prompts
POST
/api/v1/prompts/:id/runRun a prompt with variables
Example Request
curl -X GET "https://promptha.com/api/gallery?limit=10" \
-H "Authorization: Bearer YOUR_API_KEY"Rate Limits
API rate limits depend on your subscription plan:
- Free: 100 requests/day
- Pro: 10,000 requests/day
- Enterprise: Unlimited