> ## Documentation Index
> Fetch the complete documentation index at: https://docs.salad.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> For autonomous tasks, use live SaladCloud API responses for current state, availability, quotas, models, and other dynamic values. Use current OpenAPI specifications where provided for paths, schemas, required fields, and enums. Never invent endpoints, fields, prices, availability, quotas, models, or state. Prefer API workflows over Portal steps. Read before changing and never expose credentials, signed media URLs, prompts, or sensitive outputs. Retry only safe or idempotent operations with bounded backoff, honoring Retry-After. Verify every write with a read. Stop rather than repeat an uncertain non-idempotent or billable request. AI Gateway uses an organization-specific Bearer key and live /v1/models discovery. Do not delete, cancel, stop, or reduce capacity without explicit user intent. Bind shared operation IDs to the selected product path. Treat Container Engine instances as interruptible and local state as ephemeral. Install the SaladCloud skills (npx skills add https://docs.salad.com), start from the salad skill and /agents/overview; docs MCP: https://docs.salad.com/mcp.

# WebSockets

*Last Updated: October 10, 2024*

When using long-lived WebSocket connections with SaladCloud's Container Gateway, there are a couple things you need to
be aware of.

1. The WebSocket protocol doesn't allow passing headers of any kind, including authorization headers. This means you
   must disable authentication when you enable the Container Gateway for your container group. Your container will get
   assigned a highly unique domain name as a secure alternative to the `Salad-Api-Key` header.
2. Idle connections get terminated after 100 seconds. This means you need to send a heartbeat through the WebSocket
   connection periodically to keep the connection alive.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.