API Reference

The Tenzro Cloud API is a RESTful API that provides access to all platform services. All endpoints are available at https://api.cloud.tenzro.com.

Base URL

https://api.cloud.tenzro.com

Authentication

All requests require an API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Request Format

All requests should include Content-Type: application/json for POST/PUT/PATCH requests. Query parameters are used for filtering and pagination.

Response Format

All responses are JSON. Successful responses include:

{
"success": true,
"data": { ... }
}

Error responses include:

{
"error": "Error Type",
"message": "Human readable error message",
"details": { ... }
}

Available Endpoints

Health

MethodPathDescription
GET/healthAPI health check

Vec (Vector Database)

MethodPathDescription
GET/cloud/vec/databasesList vector databases
POST/cloud/vec/databasesCreate vector database
GET/cloud/vec/databases/:idGet database details
DELETE/cloud/vec/databases/:idDelete database
POST/cloud/vec/databases/:id/vectorsInsert vectors
POST/cloud/vec/databases/:id/searchSearch vectors

Kev (Key-Value Store)

MethodPathDescription
GET/cloud/kev/storesList key-value stores
POST/cloud/kev/storesCreate key-value store
GET/cloud/kev/stores/:idGet store details
DELETE/cloud/kev/stores/:idDelete store
GET/cloud/kev/stores/:id/keysList keys in store
POST/cloud/kev/stores/:id/keysSet a key value
GET/cloud/kev/stores/:id/keys/:keyGet a key value
DELETE/cloud/kev/stores/:id/keys/:keyDelete a key

Data (PostgreSQL)

MethodPathDescription
GET/cloud/data/databasesList databases
POST/cloud/data/databasesCreate database
GET/cloud/data/databases/:idGet database details
DELETE/cloud/data/databases/:idDelete database
POST/cloud/data/databases/:id/queryExecute SQL query

AI Inference

MethodPathDescription
POST/cloud/ai/inferText generation and chat
POST/cloud/ai/embedGenerate embeddings
GET/cloud/inference-endpointsList inference endpoints
POST/cloud/inference-endpointsCreate inference endpoint

Agents

MethodPathDescription
GET/cloud/agentList agents
POST/cloud/agentCreate agent
GET/cloud/agent/:idGet agent details
DELETE/cloud/agent/:idDelete agent
POST/cloud/agent/:id/chatChat with agent
POST/cloud/agent/:id/activateActivate agent

Workflows

MethodPathDescription
GET/cloud/workflowList workflows
POST/cloud/workflowCreate workflow
GET/cloud/workflow/:idGet workflow details
DELETE/cloud/workflow/:idDelete workflow
POST/cloud/workflow/:id/executeExecute workflow

MCP Servers

MethodPathDescription
GET/cloud/serverList servers
POST/cloud/serverCreate server
GET/cloud/server/:idGet server details
DELETE/cloud/server/:idDelete server
POST/cloud/server/:id/chatChat with server

File Storage

MethodPathDescription
GET/cloud/file/bucketsList storage buckets
POST/cloud/file/bucketsCreate bucket
GET/cloud/file/buckets/:idGet bucket details
DELETE/cloud/file/buckets/:idDelete bucket
GET/cloud/file/buckets/:id/filesList files in bucket
POST/cloud/file/buckets/:id/filesUpload file
DELETE/cloud/file/buckets/:id/files/:pathDelete file

Security

MethodPathDescription
GET/cloud/security/keysList encryption keys
POST/cloud/security/keysCreate encryption key
POST/cloud/security/encryptEncrypt data
POST/cloud/security/decryptDecrypt data

Enclaves

MethodPathDescription
GET/cloud/enclave/vmsList confidential VMs
POST/cloud/enclave/vmsCreate confidential VM
GET/cloud/enclave/vms/:idGet VM details
DELETE/cloud/enclave/vms/:idDelete VM

Hub

MethodPathDescription
GET/cloud/hub/modelsList available models
GET/cloud/hub/models/:idGet model details

Entities (Organizations)

MethodPathDescription
GET/cloud/entitiesList entities you belong to
POST/cloud/entitiesCreate entity
GET/cloud/entities/:idGet entity details
PUT/cloud/entities/:idUpdate entity
DELETE/cloud/entities/:idDelete entity
GET/cloud/entities/:id/membersList members
POST/cloud/entities/:id/members/inviteInvite member
PUT/cloud/entities/:id/members/:userIdUpdate member role
DELETE/cloud/entities/:id/members/:userIdRemove member
POST/cloud/entities/:id/transferTransfer ownership
GET/cloud/entities/:id/projectsList entity projects
POST/cloud/entities/:id/projectsCreate entity project

SDK Usage

Use the official SDKs for easy integration:

TypeScript/JavaScript

npm install @tenzro/cloud
import { Tenzro } from '@tenzro/cloud';
const tenzro = new Tenzro({
apiKey: process.env.TENZRO_API_KEY,
});
// Use any service
const databases = await tenzro.vec.list();
const result = await tenzro.ai.infer({
model: 'gemini-2.5-flash',
messages: [{ role: 'user', content: 'Hello!' }],
});

Python

pip install tenzro-cloud
from tenzro_cloud import Tenzro
tenzro = Tenzro(
api_key=os.environ.get("TENZRO_API_KEY")
)
# Use any service
databases = tenzro.vec.list()
result = tenzro.ai.infer(
model="gemini-2.5-flash",
messages=[{"role": "user", "content": "Hello!"}]
)

Rate Limits

API rate limits are per-key and per-service. Default limits are:

  • Starter: 100 requests/min, 1,000 AI tokens/day
  • Professional: 1,000 requests/min, 100,000 AI tokens/day
  • Enterprise: Custom limits

Error Handling

Common HTTP status codes:

CodeMeaning
200Success
201Resource created
400Bad request - invalid parameters
401Unauthorized - invalid or missing API key
403Forbidden - insufficient permissions
404Resource not found
429Rate limit exceeded
500Internal server error