Skip to main content
This guide will help you get started with the Promptwatch API, from authentication to making your first request.

Prerequisites

  • A Promptwatch account (Sign up here)
  • An active project
  • Basic familiarity with RESTful APIs

Step 1: Get Your API Key

API Key Types

Promptwatch offers two types of API keys: Project-Level Keys
  • Scoped to a specific project
  • Automatically associated with the project
  • Recommended for most use cases
Organization-Level Keys
  • Access to all projects in your organization
  • Require X-Project-Id header to specify which project to query
  • Useful for cross-project analytics

Creating an API Key

  1. Go to Settings -> API Keys
  2. Click “Create API Key”
  3. Choose your key type and project (for project-level keys)
  4. Copy and securely store your API key
Store your API key securely. Never commit it to version control or share it publicly.

Step 2: Authenticate Your Requests

All API requests require authentication via the X-API-Key header.

Using Project-Level Keys

Using Organization-Level Keys

Postman: Download our Postman Collection for pre-configured requests with all endpoints.

Step 3: Validate Your API Key

Test your API key by calling the validate endpoint:
Success Response:

Step 4: Make Your First API Request

Now that your API key is validated, try fetching your monitors:

Error Handling

The API uses standard HTTP status codes: Error Response Format:

Next Steps

API Reference

Explore all available endpoints

Rate Limits

Learn about rate limits

Need Help?