API REFERENCE
PromptLabHub API Reference
Access your saved prompts, run search queries, filter by models, and query prompt categories programmatically with low latency.
Authentication
All API requests must be authenticated using a Bearer token in the Authorization header. API keys can be managed from your API Settings.
Authorization Header
Rate Limits & Quotas
Rate limits are applied per API key on a daily and monthly basis based on your plan tier. Active requests return standard rate limiting headers.
Subscription Tier
| Subscription Tier | Daily Limit | Monthly Limit |
|---|---|---|
| Free | 100 | 3,000 |
| Pro | 1,000 | 30,000 |
| Enterprise | 10,000 | 300,000 |
Rate Limit Response Headers
| Header | Description |
|---|---|
| X-RateLimit-Limit | The maximum number of allowed requests per day. |
| X-RateLimit-Remaining | The number of remaining requests for the current day. |
| X-RateLimit-Reset | The UTC time when the current rate limit window resets (in seconds). |
API Endpoints
GET/api/v1/prompts
GET/api/v1/prompts/:slug
POST/api/v1/prompts
GET/api/v1/categories
HTTP Error Codes
| HTTP Status | Code String | Description |
|---|---|---|
| 400 | VALIDATION_FAILED | Request body parameters are invalid or missing. |
| 401 | UNAUTHORIZED | API key header is missing, incorrect, or token has been revoked. |
| 404 | NOT_FOUND | The requested prompt ID or resource was not found. |
| 429 | RATE_LIMIT_EXCEEDED | Your daily API key quota has been reached. Upgrade to Pro/Enterprise for higher limits. |
| 500 | INTERNAL_SERVER_ERROR | An unexpected server error occurred. Try again later. |
Integration Examples
JavaScript Fetch
Python Requests
Official SDKs
SDKs for Node.js, Python, and Go are coming soon. For now, you can connect directly using standard HTTP libraries or curl examples.
Node.js — Coming SoonPython — Coming SoonGo — Coming Soon