Appearance
API Reference
The Converra REST API allows you to programmatically manage prompts, run optimizations, and log conversations.
Base URL
https://converra.ai/api/v1Authentication
All API requests require a Bearer token:
bash
curl https://converra.ai/api/v1/prompts \
-H "Authorization: Bearer YOUR_API_KEY"Get your API key from Settings → API Keys.
Endpoints
Prompts
| Method | Endpoint | Description |
|---|---|---|
GET | /prompts | List all prompts |
POST | /prompts | Create a prompt |
GET | /prompts/:id | Get a prompt |
PATCH | /prompts/:id | Update a prompt |
GET | /prompts/:id/insights | Get prompt insights |
Optimizations
| Method | Endpoint | Description |
|---|---|---|
GET | /optimizations | List optimizations |
POST | /optimizations | Trigger optimization |
GET | /optimizations/:id | Get optimization details |
GET | /optimizations/:id/variants | Get variant details |
POST | /optimizations/:id/apply | Apply winning variant |
POST | /optimizations/:id/stop | Stop running optimization |
Conversations
| Method | Endpoint | Description |
|---|---|---|
GET | /conversations | List conversations |
POST | /conversations | Log a conversation |
GET | /conversations/:id | Get conversation details |
GET | /conversations/:id/insights | Get conversation insights |
Account & Settings
| Method | Endpoint | Description |
|---|---|---|
GET | /settings | Get settings |
PATCH | /settings | Update settings |
GET | /account | Get account info |
GET | /usage | Get usage stats |
GET | /webhooks | List webhooks |
POST | /webhooks | Create webhook |
DELETE | /webhooks/:id | Delete webhook |
Rate Limits
Rate limits vary by plan:
| Plan | Requests/minute |
|---|---|
| Free | 60 |
| Pro | 300 |
| Enterprise | Custom |
Additional limits:
- Concurrent optimizations: 10 per account
See Authentication for rate limit headers and handling.
Error Responses
json
{
"error": {
"code": "INVALID_API_KEY",
"message": "The provided API key is invalid"
}
}Next Steps
- Authentication - Auth guide with rate limits
- Prompts API - Manage prompts and get insights
- Optimizations API - Run and manage optimizations
- Conversations API - Log and retrieve conversations
- Settings API - Configure account settings
