Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  JSON Output of different APIs

    Posted 10-17-2025 02:38

    Hello,

    Working on a solution to pull data using Genesys APIs for reporting. How to get the complete JSON output of an API.

    Using the 200 - successful operation under API Responses, we can get the JSON Output, but it is not complete. Refer to the screenshot below, the left-hand side shows system JSON output like it is showing "systemToOrganizationMapping" and under "results" it is showing "group". Whereas when the query is executed, result shows under "systemToOrganizationMapping" "AVAILABLE" and "OFFLINE" and under "group" "userId" is shown.

    Is there a way to get the Complete JSON output, which can be shown as a result once the query is executed?

    Regards,

    Manish Suryavanshi 


    #PlatformAPI

    ------------------------------
    Manish Suryavanshi
    ------------------------------


  • 2.  RE: JSON Output of different APIs

    Posted 10-17-2025 20:38

    Hi Manish, 

    The official documentation shows the response schema, not the full JSON output. The complete response is available only when the API call is executed, as the returned fields depend on the data in the query.

    For example, the schema defines systemToOrganizationMapping as a map, where each system presence (such as AVAILABLE or OFFLINE) is linked to one or more organization presence IDs. These mappings can also be retrieved using /api/v2/presencedefinitions.

    Hope this helps.



    ------------------------------
    Luiz Rosa
    Full stack developer
    ------------------------------