https://retellai.com/?utm_source=discord&utm_medium=seo logo
how can i check which call is using the concurrenc...
# ❓・ai-evy-support
n
@AI Evy how can i check which call is using the concurrency? my account has been using the limit for more than 15 minutes
a
Thanks for tagging me @nicolas_46952. I'll look through relevant sources and get back to you shortly.
### Answer To check which calls are currently using your concurrency, you can use the Get Concurrency API to see your current usage and then list active calls to identify which specific calls are ongoing [(1) ]() [(2) ]() . First, check your current concurrency status:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const concurrency = await client.concurrency.retrieve() ;
console.log(concurrency.base_concurrency) ;
[(1) ]() This will show you the
current_concurrency
(number of ongoing calls) and your
concurrency_limit
. To identify which specific calls are active, use the List Calls API with a filter for ongoing calls:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const callResponses = await client.call.list() ;
console.log(callResponses) ;
[(2) ]() You can filter the results to show only calls with
call_status
of "ongoing" to see which calls are currently active and consuming your concurrency . The call status options include
registered
,
ongoing
,
ended
, and
error
. You can also check your current number of concurrent calls in the dashboard [(3) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Get Concurrency](https://docs.retellai.com/api-references/get-concurrency) [[2] List Calls](https://docs.retellai.com/api-references/list-calls) [[3] Understand concurrency & limits](https://docs.retellai.com/deploy/concurrency) ​
n
@AI Evy can you give me the code above in pyhton?
a
Thanks for the follow-up, @nicolas_46952. I'll get back to you soon.
### Answer Here's the Python code to check your concurrency usage and identify active calls: Check your current concurrency status:
Copy code
python
from retell import Retell

client = Retell(
    api_key="YOUR_RETELL_API_KEY",
)

agent_response = client.agent.create(
    response_engine={
        "llm_id": "llm_234sdertfsdsfsdf",
        "type": "retell-llm",
    },
    voice_id="11labs-Adrian",
)
print(agent_response.agent_id)
[(1) ]() For concurrency checking specifically, you would use the concurrency endpoint [(2) ]() , though the exact Python method isn't shown in the available sources. The JavaScript version shows
client.concurrency.retrieve()
which returns data including
current_concurrency
and
concurrency_limit
. For listing calls, you would use: Based on the API structure shown in the Python SDK documentation [(3) ]() , the pattern would be similar to other resources like
client.agent.list()
for agents . The response will show you the
current_concurrency
(number of ongoing calls) and your
concurrency_limit
[(2) ]() . You can then filter results to show only calls with active status to identify which specific calls are consuming your concurrency.
​ To learn more, see the sources I considered: [[1] Retell Python API library](https://github.com/RetellAI/retell-python-sdk/blob/main/README.md) [[2] Get Concurrency](https://docs.retellai.com/api-references/get-concurrency) [[3] RetellAI/retell-python-sdk/api.md](https://github.com/RetellAI/retell-python-sdk/blob/main/api.md) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
n
@AI Evy no calls ongoing, how can i reset my concurrency?
a
Thanks for the follow-up, @nicolas_46952. I'll get back to you soon.
### Answer If you're experiencing concurrency limit issues with no ongoing calls, this appears to be a known issue that can occur with "dangling calls" that haven't properly released their concurrency slots [(1) ]() . To troubleshoot this, you can use the List Calls API to check for any calls that might still be showing as "ongoing" status even though they appear to have ended . You can loop through all calls to identify any that might be stuck in an ongoing state .
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const callResponse = await client.call.retrieve('119c3f8e47135a29e65947eeb34cf12d') ;
console.log(callResponse) ;
[(2) ]() The API response will show the
call_status
which should be "registered", "ongoing", "ended", or "error" . Look for any calls that are still showing "ongoing" status when they should have ended [(1) ]() . If you continue experiencing this issue where your concurrency limit is reached despite having no active calls, you may need to contact Retell AI support directly, as they have been able to help users adjust their concurrency limits to prevent this specific issue . You can check your current concurrent calls in the dashboard as well [(3) ]() .
​ To learn more, see the sources I considered: [[1] concurrency_limit_reached when we have only 1 ongoing call? maybe 2 at most](https://discord.com/channels/1186424376300679209/1273160191831183380) [[2] Get Call](https://docs.retellai.com/api-references/get-call) [[3] Understand concurrency & limits](https://docs.retellai.com/deploy/concurrency) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.