VeriPrompt Logo
Β© 2026
VeriPrompt
VeriPrompt

v0.3.0

API Documentation

Complete reference for the Veriprompt AI Gateway & Agentic Platform API

Categories

Quick Info

Base URL:https://your-domain.com
Authentication:
Bearer token required for most endpoints
Content-Type:application/json

Prompt ID System

Template Variables:{{variable_name}}
Usage:
Reference stored prompts by ID and inject variables at runtime
Benefits:
  • Centralized prompt management
  • Version control for prompts
  • Dynamic variable injection
  • Team collaboration

Getting Started

1. Authentication

Get your API key from the dashboard and include it in all requests:

Authorization: Bearer YOUR_API_KEY

2. Quick Test

Test the gateway with a simple prompt execution:

curl -X POST https://your-domain.com/api/gateway/execute   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"prompt": "Hello AI!", "quality": "fast"}'

πŸ’‘ Pro Tips

  • Use prompt_id instead of raw prompts for better management
  • Set quality parameter to balance cost vs performance
  • Monitor usage via /api/v1/analytics/overview
  • Use streaming for real-time chat applications

All Endpoints

39 endpoints found

POST/api/gateway/execute
Gateway

Execute Prompt

Execute a prompt through the AI Gateway with intelligent provider routing

GET/api/gateway/health
Gateway

Gateway Health

Check the health status of all AI providers and models

POST/api/gateway/injection-detection
Security

Injection Detection

Detect potential prompt injection attacks

GET/api/v1/analytics/overview
Analytics

Analytics Overview

Get comprehensive analytics data for the organization

GET/api/v1/analytics/metrics
Analytics

Analytics Metrics & Time Series

Retrieve success rate, cost, latency, and token time-series metrics for dashboards

GET/api/v1/analytics/export
Analytics

Analytics Export

Download execution, provider, or routing analytics as CSV or JSON

GET/api/v1/providers/credentials/analytics
Analytics

BYOK Credentials Analytics

Get per-credential usage analytics, cost tracking, and performance metrics for Bring Your Own Key credentials

GET/api/v1/usage
Analytics

Usage Statistics

Get detailed usage statistics and costs

GET/api/v1/monitoring/dashboard
Monitoring

Monitoring Dashboard

Real-time monitoring data for system health

GET/api/v1/monitoring/alerts
Monitoring

Monitoring Alerts

Retrieve cost, performance, and usage alerts for the organization

POST/api/v1/monitoring/alerts
Monitoring

Acknowledge or Dismiss Alert

Acknowledge or dismiss an alert from the monitoring system

POST/api/chat/stream
Chat

Stream Chat

Start a streaming chat conversation with AI models

GET/api/v1/chat/conversations
Chat

List Conversations

Get all chat conversations for the user

GET/api/v1/chat/conversations/[conversationId]
Chat

Get Conversation

Get a specific conversation and its messages

GET/api/v1/prompts
Prompts

List Prompts

Get all prompts in the repository with filtering and pagination

GET/api/v1/prompts/fetch
Prompts

Fetch Prompt Version

Retrieve the authorized prompt content for external execution without routing through the gateway.

POST/api/v1/prompts/export
Prompts

Export Prompts (Offline Bundle)

Generate an encrypted offline bundle containing approved prompt content, attachments, and metadata for disaster recovery.

POST/api/v1/prompts/[promptId]/promote
Prompts

Promote Prompt Version to PROD

Promote a stored prompt version to the PROD channel.

GET/api/admin/offline-export-keys
Admin

List Offline Export Keys

View active/previous offline export keys, download history, and recent offline export jobs.

POST/api/admin/offline-export-keys
Admin

Generate Offline Export Key

Rotate or create a new offline export key. Returns the plaintext key and one-time download token.

POST/api/admin/offline-export-keys/download
Admin

Download Offline Export Key

Redeem a one-time download token to fetch the encrypted offline export key.

POST/api/v1/prompts
Prompts

Create Prompt Template

Create a new prompt template in the repository with variable placeholders

POST/api/v1/prompts/[promptId]/execute
Prompts

Execute Prompt by ID

Execute a specific prompt from the repository with variable injection

GET/api/v1/synthetic/providers
Synthetic

Synthetic Providers

Get synthetic testing results for all providers

GET/api/v1/synthetic/analytics
Synthetic

Synthetic Analytics

Get analytics from synthetic prompt testing

GET/api/v1/workflows/status
Synthetic

Integrated Workflow Status

Aggregate status across Git repositories, synthetic prompts, and analytics

GET/api/admin/provider-configs
Admin

List AI Providers

Get all configured AI providers and their models

POST/api/admin/provider-configs/import
Admin

Import Providers

Import AI providers from Excel/CSV file

GET/api/admin/users
Admin

List Users

Get all users in the system

GET/api/admin/analytics
Admin

Admin Analytics

Get system-wide analytics and usage statistics

GET/api/user/profile
User

User Profile

Get current user profile information

PUT/api/user/profile
User

Update Profile

Update user profile information

GET/api/company/info
Company

Company Info

Get current company information and settings

PUT/api/company/update
Company

Update Company

Update company information and settings

GET/api/teams
Teams

List Teams

List teams the authenticated user belongs to with project counts

POST/api/teams
Teams

Create Team

Create a new collaboration team for the organization

GET/api/teams/{teamId}
Teams

Team Detail

Retrieve detailed information about a specific team including linked projects and members

GET/api/v1/routing-advisory
Routing

Routing Advisory

Get intelligent routing recommendations

POST/api/prompt-optimization/optimize
Optimization

Optimize Prompt

Rewrite a prompt for clarity and structure via the Guru prompt-optimizer service pool. This is the single endpoint behind the Guru optimizer page, the chat terminal composer's optimize wand, and the Studio prompt editor's "Optimize with Guru" toolbar action β€” all three call it with identical behavior (same system prompt, sanitization policy, and usage/oversight logging). Anonymous callers get a rate-limited guest quota; authenticated calls are unlimited and logged against the company.