Skip to main content
The PromptLayer REST API lets you interact with your workspace directly over HTTP so you can automate updates, run workflows, log activity, and export or organize data from your own systems.

Authentication

Authenticate API requests with a PromptLayer API key using the X-API-Key header. Generate API keys from the API keys page in your PromptLayer dashboard. Each workspace has its own API keys, and requests use the workspace associated with the key by default.

Endpoints

Prompt Templates

Tracking

Datasets

Evaluations

Pass folder_id on Create Evaluation Pipeline (and on the create endpoints under Prompt Templates, Datasets, and Agents) to organize new resources directly into a folder. Use Resolve Folder ID by Path to look up an ID, or Create Folder to make one. See Unified Registry.

Agents

Skill Collections

Unified Registry