> ## Documentation Index > Fetch the complete documentation index at: https://help.commbox.io/llms.txt > Use this file to discover all available pages before exploring further. # Get Stream Availability > This API checks the availability status of a stream (channel) and returns its current state. ### Availability States The API returns one of the following states: - **0** - Channel is not active - **1** - Available (during business hours with agents ready) - **2** - Busy (agent overload during business hours) - **3** - Unavailable (outside business hours or on special days) ### Query Parameters **ignoreAutomationExsistance** Controls whether automation (bot) availability is considered in the status check. - **true** - Ignores automation presence (returns status based only on human agents) - **false** (default) - Includes automation in availability check *Note: Since bots are always available, including automation may mask Busy/Unavailable states.* **autoAssign** Filters agents based on their auto-assignment permissions. - **true** - Returns Available (state 1) only if agents with auto-assignment enabled are available - **false** (default) - Returns status regardless of auto-assignment settings **includeDetails** Controls the response format and level of detail. - **true** - Returns detailed response with availability state, agent list, statuses, and permissions - **false** (default) - Returns only the availability state number (0, 1, 2, or 3) ### Path Parameters **SUBSTREAM_ID** Required when subchannels are configured for the brand. Omit this parameter if subchannels are not in use. **Usage Examples** Without Subchannel (Single Query Parameter) ``` GET /streams/11345/streamavailability?includeDetails=true ``` With Subchannel (Multiple Query Parameters) ``` GET /streams/TbxH9RJIQrWI0hzA%3d%3d/substreams/12/streamavailability?ignoreAutomationExsistance=false&autoAssign=true ``` ### Voice Call Specific Behavior For voice call streams, availability states have specific conditions: #### State 1 (Available) All of the following conditions must be met: - Agents are active and online - Agents are not currently on calls - Agents have auto-assignment permission enabled for this stream/substream #### State 2 (Busy) - All agents with proper stream/substream permissions are currently on active calls #### State 3 (Unavailable) Any one of the following conditions triggers this state: - Current time is outside business hours - Special day is configured (holiday, maintenance, etc.) - All agents are in AWAY status or inactive - No active voice agents have the required auto-assignment permissions for this stream/substream ## OpenAPI ````json GET /streams/{STREAM_ID}/substreams/{SUBSTREAM_ID}/streamavailability { "openapi": "3.0.3", "info": { "title": "CommBox API", "x-logo": { "url": "https://www.commbox.io/logo/commbox_logo_large.png" }, "version": "2.07", "termsOfService": "https://www.commbox.io/end-user-license-agreement-eula/", "contact": { "name": "commbox", "url": "https://www.commbox.io", "email": "contactus@commbox.io" } }, "servers": [ { "url": "https://api.commbox.io/", "description": "Production server" } ], "security": [ { "BearerAuth": [] } ], "tags": [ { "name": "Core", "description": "

Systemwide verification" }, { "name": "Objects", "description": "

Objects are conversations between the AI Agent or the human agent and the customers, where each segment of the conversation is referred to as a Child. Every conversation must have a designated Stream – a communication channel such as Chat, Email, Text/SMS, etc., through which the conversation takes place.
The Object APIs category concentrates on a specific conversation, where the Stream is part of the identifying parameters. In contrast, the Streams APIs category, the Channel is the focal point of the request, and the objects and users are the filtering aspects." }, { "name": "Media", "description": "Converting media files to Base64" }, { "name": "AI Services", "description": "APIs that provide AI capabilities by the platform. " }, { "name": "Streams", "description": "

Streams are communication channels used in CommBox, such as Chat, WhatsApp, SMS/Text, etc. In the Streams category of APIs, the channel is the focal point of the request, and the objects and users are the filtering aspects. See the Enums Section for available channels and their CommBox code." }, { "name": "Tags", "description": "

Tags are a classification tool for summarizing aspects of the conversation or the user. It can mark the conversation to indicate a new sale or identify a customer as not interested in the product. To help manage the Tags assets, Tags can be grouped with a common identifier." }, { "name": "SMS", "description": "

Sending customers **SMS messages** (Texting) requires an initial opt-in step, which is not offered by CommBox and is the sole responsibility of the sending entity (Business)." }, { "name": "WhatsApp", "description": "

CommBox facilitates activities in **WABA** for the clients. Our platform helps clients create new templates and manage existing ones.

**Opt-in for WhatsApp**
Before sending WhatsApp messages to someone, you must first receive opt-in permission confirming that they wish to receive future messages from you on WhatsApp. This can be done using any channel your business uses to communicate with people — your website, app, email, retail location, etc.