Function Index
API Key Management
Section titled “API Key Management”validateApiKey- Validates the provided API key.
Prompt Management
Section titled “Prompt Management”generatePrompt- Generates a new prompt with AI based on the provided template and settings.
fetchAllPrompts- Retrieves all prompts associated with the user’s account.
fetchPromptById- Retrieves a specific prompt by its ID.
updatePrompt- Updates the output text of an existing prompt.
deletePrompt- Permanently deletes a prompt and all its versions.
Version Management
Section titled “Version Management”createPromptVersion- Creates a new version of a prompt with AI generation.
listPromptVersions- Retrieves all versions of a specific prompt.
activatePromptVersion- Sets a specific version as the active version of a prompt.
updatePromptVersion- Updates the metadata (output or label) of a specific version.
deletePromptVersion- Permanently deletes a specific version of a prompt.
Usage & Analytics
Section titled “Usage & Analytics”getUsageSummary- Retrieves total token usage for a specified date range.
Project Management
Section titled “Project Management”getAllProjects- Retrieves all projects for the user.
getProjectsWithLimit- Retrieves projects with a specified limit.
getRecentProjects- Retrieves the most recently created projects.
createProject- Creates a new project.
getProjectById- Retrieves a specific project by its ID.
updateProject- Updates project name and/or description.
deleteProject- Deletes a project (optionally transferring prompts to another project).