Access your structured prompts via HTTP requests to our REST API. All sections are combined and ready to send to any AI provider.
All API requests should be made to:
https://superprompts.app/api/v1All requests require authentication using your project's API key in the request headers:
x-api-key: <YOUR_API_KEY>Getting Your API Key: Navigate to your project settings in the dashboard to view your API key.
Retrieve a specific prompt with all sections combined.
curl https://superprompts.app/api/v1/prompts/<PROMPT_ID> \
  -H "x-api-key: <API_KEY>"{
  "id": "my-prompt",
  "content": "[All 7 sections combined in optimal order]",
  "sections": [
    {
      "id": "task-context",
      "title": "1. Task context",
      "content": "..."
    },
    {
      "id": "tone-context",
      "title": "2. Tone context",
      "content": "..."
    },
    // ... all 7 sections
  ],
  "version": "1.0.0",
  "created_at": "2024-01-01T00:00:00Z",
  "updated_at": "2024-01-01T00:00:00Z"
}idstringThe unique identifier for the prompt
contentstringAll 7 sections combined in optimal order, ready to use with AI providers
sectionsarrayIndividual sections with their IDs, titles, and content
versionstringThe current version number
created_atstringISO 8601 timestamp of creation
updated_atstringISO 8601 timestamp of last update
401 UnauthorizedInvalid or missing API key
{
  "error": "Invalid API key"
}404 Not FoundPrompt not found
{
  "error": "Prompt not found"
}500 Internal Server ErrorServer error
{
  "error": "Internal server error"
}