Legacy Dev Forum Posts

 View Only

Sign Up

Is there a rate limit on api requests?

  • 1.  Is there a rate limit on api requests?

    Posted 06-05-2025 18:15

    56ab4b69d61f71cffd74 | 2019-05-07 21:33:24 UTC | #1

    Hello,

    For an outbound campaign, there is a contactList. For each contactListId in the List my code executes conversationsApi.postAnalyticsConversationsDetailsQuery(conversationQuery) The ConversationQuery has a SegmentFilter of type AND, which contains 2 predicates of dimension type:

    • outboundContactId
    • outboundCampaignId

    When running the code, at a certain moment, an ApiException is thrown:

    conversationsApi.postAnalyticsConversationsDetailsQuery(conversationQuery) throws an ApiException com.mypurecloud.sdk.v2.ApiException: error at com.mypurecloud.sdk.v2.ApiClient.interpretConnectorResponse(ApiClient.java:512) at com.mypurecloud.sdk.v2.ApiClient.getAPIResponse(ApiClient.java:521) at com.mypurecloud.sdk.v2.ApiClient.invoke(ApiClient.java:600) at com.mypurecloud.sdk.v2.api.ConversationsApi.postAnalyticsConversationsDetailsQuery(ConversationsApi.java:6121) at com.mypurecloud.sdk.v2.api.ConversationsApi.postAnalyticsConversationsDetailsQuery(ConversationsApi.java:6090)

    I then tried the same method in a for loop of 500 iterations, but for just one contactId. Just to make sure that my query was ok. The result is the same, first responses, after a while ApiExceptions, and then again responses.

    I'm wondering: how can we Iterate through a contactList (which is allowed to contain up to 1000 contacts) and get the conversation details for a contatList, without the ApiExceptions ?

    Thx in advance,

    Steven


    tim.smith | 2019-05-07 21:38:54 UTC | #2

    Yes. Your application must catch 429 responses and delay accordingly. https://developer.mypurecloud.com/api/rest/rate_limits.html


    56ab4b69d61f71cffd74 | 2019-05-07 21:45:14 UTC | #3

    Ok, thanks for the answer !

    Steven


    system | 2019-06-07 21:45:15 UTC | #4

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 5096