Skip to main content

Platform API Reference (v1)

Overview

The Unstract Platform API provides programmatic access to all platform resources. All tenant-scoped endpoints share a common base URL and authentication scheme.

Base URL: {host}/api/v1/unstract/{org_id}

Authentication: Authorization: Bearer <platform-api-key>

Permission Model

Platform API keys carry a permission level that restricts which HTTP methods are allowed:

PermissionAllowed Methods
readGET, HEAD, OPTIONS
read_writeAll methods except DELETE

DELETE operations are blocked for all platform API keys (enforced at middleware). Service accounts created for API keys can read/write all resources within the organization.

API Sections

SectionDescription
Platform API KeysManage API keys (admin only, session auth)
Prompt StudioManage Prompt Studio projects, prompts, profiles, and documents
WorkflowsCreate and manage workflows, executions, and file history
API DeploymentsDeploy workflows as APIs, manage deployment keys, execute
ETL PipelinesCreate and manage ETL/Task pipelines
AdaptersManage LLM, embedding, vector DB, and text extractor adapters
ConnectorsManage filesystem and database connectors
Cascading WorkflowsPromote projects and deployments across environments

Authentication Examples

curl

curl -H "Authorization: Bearer <platform-api-key>" \
https://your-domain.com/api/v1/unstract/{org_id}/prompt-studio/

Python

import requests

headers = {"Authorization": "Bearer <platform-api-key>"}
resp = requests.get(
"https://your-domain.com/api/v1/unstract/{org_id}/prompt-studio/",
headers=headers,
)
print(resp.json())