Skip to main content
The Turen API lets you programmatically access your organization’s data — agents, events, sessions, and policies.

Base URL

https://api.turen.dev/api/v1

Authentication

All API requests (except health check) require authentication via an API key in the X-API-Key header:
curl -H "X-API-Key: sk_live_your_key_here" \
  https://api.turen.dev/api/v1/registered-agents
Create API keys in the dashboard under Settings > API Keys. See Authentication for details.

Response Format

All responses are JSON. Successful responses return a 2xx status code. Errors return 4xx or 5xx with a JSON body:
{
  "error": "Description of what went wrong"
}

Pagination

List endpoints return paginated results wrapped in a pagination object:
{
  "data": [...],
  "pagination": {
    "limit": 50,
    "offset": 0,
    "total": 284,
    "has_more": true
  }
}
Use the limit and offset query parameters to page through results.

Common Status Codes

CodeMeaning
200Success
201Created
204No content (successful update/delete)
400Bad request — check your parameters
401Unauthorized — invalid or missing API key
403Forbidden — valid key but insufficient permissions
404Not found
429Rate limited — slow down
500Internal server error

Rate Limiting

API requests are rate limited per organization. Rate limit headers are included in every response:
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 95
X-RateLimit-Reset: 1708300000
Retry-After: 1

Endpoints

GroupDescription
AuthenticationAPI key management and auth details
AgentsList and manage registered agents
EventsQuery security and LLM events
SessionsList and retrieve session recordings
PoliciesRead and update security policies