API Reference

Programmatic access to the Telbase platform. Manage projects, deployments, environment variables, and more.

Base URL

All API requests are made to:

https://api.telbase.ai

Authentication

Authenticate requests using a Bearer token in the Authorization header. API keys start with sk_live_.

Example request
curl https://api.telbase.ai/projects \
  -H "Authorization: Bearer sk_live_your_api_key"

Creating API keys

Generate API keys in the Dashboard under Settings → API Keys, or programmatically via POST /orgs/:orgId/api-keys.

Scoped permissions

API keys can be scoped to specific permissions. Common scopes:

Wildcard scopes are supported: deploy.* matches all deploy permissions. Keys with no explicit scopes inherit permissions from the user's role (owner, admin, developer, or viewer).

Response Format

All responses use a consistent JSON envelope.

Success

Success response
{
  "success": true,
  "data": {
    "id": "proj_abc123",
    "name": "my-app",
    "url": "https://my-app.telbase.ai"
  }
}

Paginated list

Paginated response
{
  "success": true,
  "data": [...],
  "pagination": {
    "total": 42,
    "limit": 50,
    "offset": 0,
    "hasMore": false
  }
}

Error

Error response
{
  "success": false,
  "error": {
    "code": "NOT_FOUND",
    "message": "Project not found",
    "suggestion": "Run 'telbase projects' to list available projects"
  }
}

Error Codes

CodeHTTP StatusDescription
VALIDATION_ERROR400Invalid request body or query parameters
AUTH_REQUIRED401Missing or invalid authentication token
PERMISSION_DENIED403API key lacks required permission scope
NOT_FOUND404Resource does not exist or is not accessible
CONFLICT409Resource already exists (e.g. duplicate slug)
LIMIT_EXCEEDED402Plan quota exceeded — upgrade required
PROVIDER_CHANGE_REQUIRES_FORCE400Changing provider on a deployed project requires force: true
DEPLOY_FAILED500Deploy encountered a provider-level failure

Pagination

List endpoints accept limit and offset query parameters:

The response includes a pagination object with total, limit, offset, and hasMore. Continue fetching while hasMore is true.

Rate Limiting

Rate limiting is currently applied to authentication endpoints only. General rate limiting with standard headers is coming soon:

Available APIs

APIEndpointsDescription
Projects8Create, list, update, delete projects and services
Deployments12Deploy code, stream logs, rollback, cancel
Environment Variables6Set, list, compare, and generate secrets
More APIs coming soon
Additional API sections for databases, domains, storage, and teams are in development.

AI Integration

Telbase is built for AI agents. Deploy responses include structured feedback that enables self-healing deploys:

For native AI tooling, see the MCP server documentation. For context injection, use llms-full.txt.