Skip to main content

API Documentation: Inbox Availability API

The Inbox Availability API checks whether the users in an Aloware inbox can receive calls, with the endpoint, required parameters, an example request and response, each availability check, and the error responses.

Written by Laarni D

The Inbox Availability API checks whether the users in an inbox can receive calls. Send your API token and an inbox ID, and the API returns each agent in the inbox with their routing eligibility and availability status.

Use it to monitor call routing readiness, build custom dashboards, or let an external system check whether agents can take calls.

This article covers the endpoint, the required parameters, the response, and the error responses.

Before you start, copy the API token from Aloware Admin under Integrations > Routing API > Inbox availability. The ring_group_id is the inbox ID, which the List inboxes request returns.


Endpoint

Use this endpoint to check which users in an inbox can receive calls.

GET /api/v1/webhook/ring-group/availability


Checking inbox availability

To check inbox availability, send these required query parameters:

api_token

Your Aloware account API token.

ring_group_id

The ID of the inbox (ring group) that you want to check.

Example GET URL

https://app.aloware.io/api/v1/webhook/ring-group/availability?api_token=[API_TOKEN]&ring_group_id=1

Example GET header

{
"Accept": "application/json",
"Content-Type": "application/json"
}

Response

HTTP 200: a successful response returns a JSON object with the users in the inbox and the result of each availability check.

{
"test_results": [
{
"id": 2,
"failed_to_route": false,
"order": 0,
"name": "John Agent",
"email": "[email protected]",
"reasons": {
"is_active": true,
"takes_task_from_area_code": true,
"takes_task_in_state": true,
"takes_task_in_operating_hours": true,
"takes_call_within_concurrency_limit": true,
"takes_call_within_quota_limit": true,
"takes_call_within_duplication_period_limit": true,
"agent_answers_call": true,
"agent_accepts_call": true
},
"answer_by": "Browser / Apps",
"agent_status": "Accepting Calls"
},
{
"id": 3,
"failed_to_route": true,
"order": 1,
"name": "Jane Agent",
"email": "[email protected]",
"reasons": {
"is_active": true,
"takes_task_from_area_code": true,
"takes_task_in_state": true,
"takes_task_in_operating_hours": false,
"takes_call_within_concurrency_limit": true,
"takes_call_within_quota_limit": true,
"takes_call_within_duplication_period_limit": true,
"agent_answers_call": true,
"agent_accepts_call": true
},
"answer_by": "Phone Number",
"agent_status": "On Break"
}
],
"available_users_count": 1,
"unavailable_users_count": 1,
"total_users_count": 2
}

The response contains these fields:

test_results

An array of user objects containing the availability test results for each user in the inbox.

available_users_count

The number of users currently able to receive calls.

unavailable_users_count

The number of users who cannot receive calls.

total_users_count

The total number of users configured in the inbox.

failed_to_route

Boolean value indicating whether the system can route calls to the user.

  • false – the user can receive calls

  • true – the user cannot receive calls

agent_status

A human-readable description of the agent's current status (for example: Accepting Calls, On Break, Offline, or On Call).

reasons

An object containing the results of the individual availability checks performed for the user.


Detailed availability tests

The API runs these checks on each user in the inbox to decide whether they can receive calls.

No.

Rule

Field

Description

1

Agent active status

is_active

Checks whether the agent's account is active and not paused.

2

Area code coverage

takes_task_from_area_code

Verifies whether the agent is configured to handle calls from the caller's area code.

3

Geographic coverage

takes_task_in_state

Checks whether the agent is configured to handle calls from the caller's country and state.

4

Operating hours

takes_task_in_operating_hours

Validates whether the current time falls within the agent's configured working hours.

5

Device capability

agent_answers_call

Ensures that the agent's configured device or setup can receive calls.

6

Agent availability status

agent_accepts_call

Checks whether the agent's current status allows them to accept incoming calls.

7

Concurrency limits

takes_call_within_concurrency_limit

Verifies that the agent has not exceeded the allowed number of simultaneous calls.


Availability logic

The API counts a user as available only when all applicable tests return true.

If any test fails, the API marks the user as unavailable:

failed_to_route = true

Unavailable users do not receive calls routed from the inbox.


Error responses

The API returns an error response when it cannot complete the request.

HTTP 400: Validation failure

If a required parameter is missing, the API returns this validation error:

{
"message": "The given data was invalid.",
"errors": {
"ring_group_id": [
"The inbox id field is required."
]
}
}

HTTP 404: Inbox not found

If the inbox ID does not exist, the API returns this response:

{
"error": "Inbox not found."
}


cURL example

Use this request to test the endpoint from a terminal.

curl --location --request GET 'https://app.aloware.io/api/v1/webhook/ring-group/availability?api_token=[API_TOKEN]&ring_group_id=1' --header 'Accept: application/json'

Replace [API_TOKEN] with your Aloware API token and the ring_group_id value with the ID of your inbox.

Did this answer your question?