Salambo
Browse documentation
API fundamentalsAPI overview

API overview

Salambo API v1 authentication, primary resources, control-plane endpoints, and errors.

View Markdown

API v1 is the programmatic control plane for Salambo workspaces.

Base URL

bash
export SALAMBO_BASE_URL="https://YOUR_SALAMBO_BASE_URL"

Use the base URL for your Salambo environment. For hosted production docs, replace this with the stable Salambo API/app domain provided by your workspace administrator.

Authentication

bash
export SALAMBO_API_KEY="sk_..."

All API requests use bearer-token authentication:

http
Authorization: Bearer $SALAMBO_API_KEY

Keys use:

  • sk_live_ for live mode;
  • sk_test_ for test mode.

Primary resources

ResourcePurpose
ModelsDiscover active agent slugs
RunsStart, continue, stream, inspect and cancel work
AgentsManage stable agent identity and active state
DeploymentsCreate and inspect immutable agent versions
EnvironmentManage agent configuration and secrets
FilesList and download authorized files and artifacts
API keysCreate, rotate and revoke scoped authority

Deployment creation captures runtime region, egress, workspace-upgrade, and telemetry policy. Agents do not expose a separate mutable runtime-settings resource.

Common execution endpoints

EndpointScopeUse
GET /api/v1/modelsmodels:readList active agent slugs
POST /api/v1/runsrun:writeStart or continue a run
GET /api/v1/runsrun:readList workspace runs
GET /api/v1/runs/{runId}run:readInspect a run and turn
GET /api/v1/runs/{runId}/eventsrun:readRead retained events
POST /api/v1/runs/{runId}/cancelrun:writeCancel run work
DELETE /api/v1/runs/{runId}run:writeDelete an idle run
POST /api/v1/filesfiles:writeUpload an input file
GET /api/v1/filesfiles:readList files
GET /api/v1/files/{fileId}/contentfiles:readDownload file content

Deployment endpoints

EndpointScopeUse
GET /api/v1/agents/{agentId}/deploymentsagents:readList immutable versions
POST /api/v1/agents/{agentId}/deploymentsagents:writeCreate a deployment record
POST /api/v1/agents/{agentId}/deployments/{deploymentId}/manifestagents:writeAttach the compiled manifest
POST /api/v1/agents/{agentId}/deployments/{deploymentId}/sourceagents:writeUpload source and queue the build
POST /api/v1/agents/{agentId}/deployments/{deploymentId}/activateagents:writeExplicitly activate any ready version

Environment and key management

EndpointScopeUse
GET /api/v1/agents/{agentId}/env-varsenv_vars:readList environment metadata
PUT /api/v1/agents/{agentId}/env-vars/{name}env_vars:writeStore configuration or a secret
DELETE /api/v1/agents/{agentId}/env-vars/{name}env_vars:writeDelete a value
POST /api/v1/agents/{agentId}/env-vars/{name}/revealenv_vars:revealReveal a secret through an audited path
GET /api/v1/api-keysapi_keys:manageList API keys
POST /api/v1/api-keysapi_keys:manageCreate a key
POST /api/v1/api-keys/{keyId}/rotateapi_keys:manageRotate a key
POST /api/v1/api-keys/{keyId}/revokeapi_keys:manageRevoke a key

Error shape

json
{
  "error": {
    "message": "Missing scope run:write",
    "type": "permission_error",
    "param": null,
    "code": "permission_denied"
  }
}

Use the generated API Reference for exact schemas, parameters and response objects.