API DOCUMENTATION

Build with the Prompt Gallery API

Authentication

Include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Endpoints

GET/api/prompts

List all prompts with optional filters

GET/api/prompts/:id

Get a single prompt by ID or slug

POST/api/prompts

Create a new prompt (auth required)

POST/api/prompts/:id/copy

Track a copy action

GET/api/categories

List all categories

GET/api/prompts/trending

Get trending prompts

Rate Limits

API requests are limited to 100 requests per minute. Contact us if you need higher limits.