PromptLayer home pagelight logodark logo
  • Contact Us
Get Started
  • Welcome to PromptLayer
  • Quickstart
  • Getting Started Tutorial
  • Recipe Example Project
Languages & Environments
  • Python
  • JavaScript
  • LangChain
  • REST API
  • Integrations
Usage Documentation
  • Tagging Requests
  • Sharing Prompts
  • Prompt Registry
  • Advanced Logging
  • FAQ
Why PromptLayer?
  • Advanced Search
  • Evaluations
  • Fine-Tuning
  • Analytics
  • Scoring & Ranking Prompts
  • Playground
  • Shared Workspaces
  • How PromptLayer Works
Reference
  • REST API Reference
  • POST
    Track Request
  • POST
    Get Prompt Template
  • GET
    Get Prompt Template (Deprecated)
  • POST
    Publish Prompt Template
  • POST
    Publish Prompt Template (Deprecated)
  • POST
    Track Score
  • POST
    Track Prompt
  • POST
    Track Group
  • POST
    Track Metadata
  • GET
    Get All Prompt Templates
  • POST
    Create Dataset from History
  • POST
    Create Evaluation Pipeline
Reference

REST API Reference

Right now, the primary way to access PromptLayer is through our Python wrapper library that can be installed with pip install promptlayer.

The Python library is a wrapper over our REST API. If you use another language, like Javascript, just interact directly with the API.

Here are the calls you can make via our REST API (https://api.promptlayer.com/rest):

  1. Track Request
  2. Get Prompt Template
  3. Get Prompt Template (Deprecated)
  4. Publish Prompt Template
  5. Publish Prompt Template (Deprecated)
  6. Track Score
  7. Track Prompt
  8. Track Group
  9. Track Metadata
  10. Get All Prompt Templates
  11. Create Dataset from History
  12. Create Evaluation Pipeline

Was this page helpful?

How PromptLayer WorksTrack Request
twitterlinkedindiscord
Powered by Mintlify
Assistant
Responses are generated using AI and may contain mistakes.