Skip to main content
The Hexel Studio API is organized around REST.

Base URL

https://api.hexelstudio.com/runtime/v1

Authentication

All requests require a Bearer token:
Authorization: Bearer $HX_API_KEY
Your API key contains your org, workspace, and environment context.

Request Format

  • Use Content-Type: application/json
  • All timestamps are ISO 8601 format

Response Format

{
  "results": [...],
  "count": 10,
  "latency_ms": 45
}

Error Responses

{
  "detail": [
    {
      "loc": ["body", "query"],
      "msg": "field required",
      "type": "value_error.missing"
    }
  ]
}

HTTP Status Codes

CodeDescription
200Success
201Created
204No Content
400Bad Request
401Unauthorized
404Not Found
422Validation Error
429Rate Limited
500Server Error

Rate Limits

Rate limits vary by plan. Headers are included in responses:
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 95
X-RateLimit-Reset: 1704412800

SDK vs REST

We recommend using the Python SDK for easier integration:
from hx import Client

client = Client()
results = client.knowledge.search("ks-...", "query")
The SDK handles authentication, retries, and error handling automatically.