Legacy Dev Forum Posts

 View Only

Sign Up

Get IVR output 25 record when with pageSize > 100

  • 1.  Get IVR output 25 record when with pageSize > 100

    Posted 06-05-2025 18:13

    jcp | 2018-06-22 11:02:10 UTC | #1

    Hi, I have encountered a strange behaviour, when running a Get ivrs and the pageSize > 100 only 25 records are returned.

    pageSize=100: $ curl -s -X GET -H "Authorization: bearer ${token}" -H "Content-Type: application/json" "https://api.mypurecloud.ie/api/v2/architect/ivrs?pageSize=100" | jq -s '.[] | {pageSize,pageNumber,total,lastUri,selfUri,firstUri,pageCount}, (.entities | length) ' { "pageSize": 100, "pageNumber": 1, "total": 77, "lastUri": "/api/v2/architect/ivrs?pageSize=100&pageNumber=1", "selfUri": "/api/v2/architect/ivrs?pageSize=100&pageNumber=1", "firstUri": "/api/v2/architect/ivrs?pageSize=100&pageNumber=1", "pageCount": 1 } 77

    pageSize=200: $ curl -s -X GET -H "Authorization: bearer ${token}" -H "Content-Type: application/json" "https://api.mypurecloud.ie/api/v2/architect/ivrs?pageSize=200" | jq -s '.[] | {pageSize,pageNumber,total,lastUri,selfUri,firstUri,pageCount}, (.entities | length) ' { "pageSize": 200, "pageNumber": 1, "total": 77, "lastUri": "/api/v2/architect/ivrs?pageSize=200&pageNumber=1", "selfUri": "/api/v2/architect/ivrs?pageSize=200&pageNumber=1", "firstUri": "/api/v2/architect/ivrs?pageSize=200&pageNumber=1", "pageCount": 1 } 25

    Ihaven't tried when the number of ivr routes are over 100.

    Anybody have got an idea ?

    Cheers,

    Jean-Christophe


    anon28066628 | 2018-06-22 12:55:11 UTC | #2

    Hi Jean-Christophe, the maximum page size is 100. Any value over 100 is ignored and the default value, 25, is used.


    jcp | 2018-06-22 13:31:54 UTC | #3

    Thanks Smith, I know the max page can be bigger for other APIs. Didn't know the threshold is 100 here. Thanks,


    system | 2018-07-23 13:31:56 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: 3058