Legacy Dev Forum Posts

 View Only

Sign Up

Get the User Agent-Name from API

  • 1.  Get the User Agent-Name from API

    Posted 06-05-2025 18:23

    agilio | 2022-08-04 19:40:30 UTC | #1

    The /api/v2/profiles/users is deprecated. It recommends that I use the /api/V2/users

    In the original API I could get the Agent - Alias "agent": { "name": [ { "labelKey": "name", "value": "Anthony", "_id": "1VZkwYUYC5u8mffkVfpeED" } ]

    I'm not seeing that exposed in the /api/v2/users I've tried expanding all the documented values: routingStatus, presence, conversationSummary, outOfOffice, geolocation, station, authorization, lasttokenissued, dateLastLogin, authorization.unusedRoles, team, profileSkills, certifications, locations, groups, skills, languages, languagePreference, employerInfo, biography

    I'm not seeing that exposed?


    Eos_Rios | 2022-08-04 20:53:34 UTC | #2

    Agent is a Custom Profile Field The only way I am aware of to retrieve that is through an undocumented query parameter -

    https://developer.genesys.cloud/forum/t/custom-profile-fields/11825

    https://api.{region}/api/v2/users/{userid}/profile?fl=agent


    agilio | 2022-08-04 21:38:55 UTC | #3

    Thank you that worked!!! Are there any other undocumented query parameters that you can share?


    Becky_Powell | 2022-08-04 22:11:58 UTC | #4

    I'd be very careful about using anything undocumented, as undocumented APIs, query parameters, fields, etc. are neither supported by Care nor subject to our change management policies.

    That said, rest assured that we plan to augment the Users API over the course of the next twelve months, so most (if not all) undocumented resources will be officially published for customer consumption.


    agilio | 2022-08-04 22:34:32 UTC | #5

    Thanks I need the Agent Alias so I'll move forward with that one since there is no alternative.


    John_Carnell | 2022-08-08 12:57:17 UTC | #6


    This post was migrated from the old Developer Forum.

    ref: 15801