Skip to main content

Prompt Studio

Prompt Studio endpoints manage projects (called "Custom Tools" internally), prompts, LLM profiles, documents, and tool exports.

Authentication

These endpoints require a Bearer token or session auth. Permission varies by action — most endpoints use IsOwnerOrSharedUserOrSharedToOrg, while delete operations require IsOwner.


Projects (Custom Tools)

Create, list, retrieve, update, and delete Prompt Studio projects.


Project Transfer (Export/Import)

Export projects as JSON files for backup or transfer, and import them into other environments.


Tool Export (for Deployment)

Export a Prompt Studio project as a tool to the registry for use in workflows and pipelines.


Document Management

Upload, fetch, and delete documents associated with a Prompt Studio project.


Prompts

Create, retrieve, update, delete, and reorder prompts within a Prompt Studio project.


LLM Profiles

Manage LLM profiles that define which models, vector stores, and retrieval strategies are used within a project. Maximum 4 profiles per project.


Execution

Index documents, run individual prompts, and perform single-pass extractions.


Other

Miscellaneous endpoints for shared users, deployment checks, and configuration choices.

GET/api/v1/unstract/{org_id}/prompt-studio/select_choices/
Returns available dropdown field values for Prompt Studio forms (e.g., enforce_type options, prompt_type options).
GET/api/v1/unstract/{org_id}/prompt-studio/adapter-choices/
Returns available adapter choices for use in LLM profiles, including LLMs, embedding models, vector stores, and text extractors.