🔧 Developer Resources

APIDocumentation

Integrate PromptPilot into your applications with our comprehensive REST API. Access prompts, manage users, and build amazing AI-powered experiences.

Quick Start

Base URL

https://promptpilot.app/api

Authentication

Include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

API Endpoints

P
Prompts

GET/api/prompts

Get 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/prompts

Create a new prompt (requires authentication).

C
Categories

GET/api/categories

Get all available categories.

S
Search

GET/api/search

Search 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.