Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ghuntley/loom/llms.txt
Use this file to discover all available pages before exploring further.
Introduction
The Loom HTTP API provides programmatic access to the Loom platform, enabling you to build custom integrations, automate workflows, and create alternative clients for the AI-powered coding agent.Base URL
All API requests are made to:Authentication
The Loom API supports multiple authentication methods:Session Cookies
Web clients authenticate using HttpOnly session cookies set after OAuth or magic link login. The cookie name is configurable (default:loom_session).
API Keys
For programmatic access, use API keys with theAuthorization header:
WebSocket Tokens
For WebSocket connections, obtain a short-lived token from/auth/ws-token (expires in 30 seconds, single-use):
Request Format
All POST/PUT requests accept JSON payloads withContent-Type: application/json:
Response Format
All responses return JSON with appropriate HTTP status codes:Success Response (200 OK)
Error Response (4xx/5xx)
Pagination
List endpoints support offset-based pagination:Maximum number of results to return
Number of results to skip
Optimistic Concurrency
Thread operations support optimistic locking via theIf-Match header:
409 Conflict:
Rate Limiting
LLM proxy endpoints may return503 Service Unavailable with retry information:
Server-Sent Events (SSE)
Streaming endpoints use SSE withevent: llm headers:
WebSocket Connections
Real-time communication uses WebSocket endpoints:- Terminal attach:
wss://loom.ghuntley.com/api/weaver/{id}/attach - Session streaming:
wss://loom.ghuntley.com/api/ws/sessions/{id}
/auth/ws-token.
Status Codes
| Code | Meaning | Description |
|---|---|---|
| 200 | OK | Request succeeded |
| 201 | Created | Resource created successfully |
| 204 | No Content | Resource deleted successfully |
| 400 | Bad Request | Invalid request parameters |
| 401 | Unauthorized | Authentication required |
| 403 | Forbidden | Insufficient permissions |
| 404 | Not Found | Resource does not exist |
| 409 | Conflict | Version mismatch (optimistic locking) |
| 500 | Internal Server Error | Server-side error |
| 503 | Service Unavailable | Upstream service unavailable |
SDKs and Libraries
Official SDKs:- Rust:
loom-common-core(built-in) - TypeScript:
@loom/client(web/Node.js) - VS Code Extension: Uses TypeScript client
Next Steps
- Authentication Endpoints - OAuth, magic links, and device code flow
- Thread Endpoints - Manage conversation threads
- Weaver Endpoints - Provision ephemeral compute environments
- LLM Proxy Endpoints - Server-side LLM completions