Quick Start
Base URL
https://promptpilot.app/apiAuthentication
Include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEYAPI Endpoints
PPrompts
GET
/api/promptsGet all prompts with optional filtering and pagination.
Query Parameters:
- category - Filter by category ID
- search - Search in title and content
- limit - Number of results (default: 20)
- offset - Pagination offset
GET
/api/prompts/[id]Get a specific prompt by ID.
POST
/api/promptsCreate a new prompt (requires authentication).
CCategories
GET
/api/categoriesGet all available categories.
SSearch
GET
/api/searchSearch prompts with advanced filtering.
Query Parameters:
- q - Search query
- category - Filter by category
- ai_tool - Filter by AI tool
- sort - Sort by: newest, popular, votes
Response Format
Success Response
{
"success": true,
"data": {
"id": "123",
"title": "Creative Writing Prompt",
"content": "Write a story about...",
"description": "A prompt for creative writing",
"category_id": 1,
"ai_tool_id": 2,
"author_id": "user123",
"vote_count": 42,
"created_at": "2024-01-01T00:00:00Z"
}
}Error Response
{
"success": false,
"error": "Resource not found",
"code": 404
}Rate Limits
Free Tier
- • 1,000 requests per hour
- • 10,000 requests per day
- • Read-only access
Pro Tier
- • 10,000 requests per hour
- • 100,000 requests per day
- • Full CRUD access
Need Help?
Have questions about our API? We're here to help you build amazing applications.