Legacy Dev Forum Posts

 View Only

Sign Up

Unable to Retrieve All Secondary Statuses from API

  • 1.  Unable to Retrieve All Secondary Statuses from API

    Posted 06-05-2025 18:28

    Darren_Sawyer | 2023-11-15 14:23:25 UTC | #1

    Hi,

    My goal is to return a full list of all primary and secondary presence statuses on Genesys Cloud via the API.

    I have tried using the following API but it only appears to return the primary statuses.

    /api/v2/presencedefinitions?pageNumber=1&pageSize=100&deleted=ALL&localeCode=ALL

    I've tried to see how Genesys does this internally to display the statuses it in the Web UI. I've inspected the Network traffic and can see that it actually uses this API.

    /api/v2/presence/definitions?deactivated=false&localeCode=en-us

    I've tried running this API externally via Postman but again I only see the primary statuses. I've checked my OAuth permissions and have access to see all. The same is from the Developer Centre API Explorer.

    In fact I can get the details about a single secondary status by manually grabbing one of the IDs from the Web UI payload by calling the API:

    /api/v2/presencedefinitions/{presenceId}

    If I take the bearer token from the browser and plug it into Postman then it works too. Maybe some sort or permission issue but not sure what as my user has " presence:presenceDefinition:view".

    Am I missing something here or is this a bug?

    Thanks, Darren


    Eos_Rios | 2023-11-15 13:17:22 UTC | #2

    Darren_Sawyer, post:1, topic:23142
    /api/v2/presencedefinitions

    This API returns both primary and secondary by default.


    Darren_Sawyer | 2023-11-15 13:33:24 UTC | #3

    I think I found the problem. If you assign your status to a divisions they do not appear in that API.

    Even though I have permission to the division.

    Thanks, Darren


    Eos_Rios | 2023-11-15 15:34:14 UTC | #4

    That sounds like something to report to customer care, if it's behaving in an undocumented and illogical manner.


    Darren_Sawyer | 2023-11-15 20:33:11 UTC | #5

    Support confirmed the API is incorrect. Should be using /api/v2/presence/definitions they are working on updating the API explorer.


    Erin_Wilson | 2023-11-23 00:11:50 UTC | #6

    Since that API is still in "preview", did you hear if they have an ETA for it being publicly available?


    system | 2023-12-23 00:12:04 UTC | #7

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


    This post was migrated from the old Developer Forum.

    ref: 23142