Legacy Dev Forum Posts

 View Only

Sign Up

How to access Conversation participant attributes search

  • 1.  How to access Conversation participant attributes search

    Posted 06-05-2025 19:07

    Manoj_Jaiswal | 2022-04-07 21:48:51 UTC | #1

    We are not able to access below API.

    POST /api/v2/conversations/participants/attributes/search

    Any suggestion or sample code will be appreciated


    Eos_Rios | 2022-04-07 21:53:01 UTC | #2

    That's because it's a Preview API, not a public one -

    POST /api/v2/conversations/participants/attributes/search

    Refer to the header at the top of the page for more information.


    asharma | 2022-04-20 21:34:18 UTC | #3

    The API is tracked here Provide customers real-time access to all | Genesys Cloud Ideas Portal (aha.io).


    Manoj_Jaiswal | 2022-04-20 23:40:35 UTC | #5

    @asharma I can't login on this link


    asharma | 2022-04-21 00:23:47 UTC | #6

    I think access to that portal requires the partner to give you access. Maybe reach out to your Genesys partner and check with them.


    Manoj_Jaiswal | 2022-04-26 17:51:25 UTC | #7

    Here is the code that i used. All Credentials are fake here. We are able to get data in postman Genesys has allowed my account for review. Any quick help will be appriciated

    pip install PureCloudPlatformClientV2

    import time

    import base64, sys, requests, os from datetime import datetime, timedelta import PureCloudPlatformClientV2 from pprint import pprint from PureCloudPlatformClientV2.rest import ApiException from pyspark.sql.types import * import json

    Set script variables here

    AppName = 'Reporting'

    Credentials

    CLIENTID = dbutils.secrets.get(scope="scope key",key="api--clientid") CLIENTSECRET = dbutils.secrets.get(scope="scope key",key="api-clientsecret") # ORGREGION = os.environ['GENESYSCLOUDREGION'] # eg. useast_1

    Set environment

    region = PureCloudPlatformClientV2.PureCloudRegionHosts[ORGREGION] PureCloudPlatformClientV2.configuration.host = region.getapi_host()

    tBase = "https://login.usw2.pure.cloud"

    aBase = "https://developer.genesys.cloud/platform/preview-apis"

    stTm = time.time()

    apiclient = PureCloudPlatformClientV2.apiclient.ApiClient().getclientcredentialstoken(CLIENTID,CLIENTSECRET) authApi = PureCloudPlatformClientV2.AuthorizationApi(apiclient)

    accesstoken = apiclient.accesstoken

    def getattributesList():

    userCount = 0

    url_participants = '/api/v2/conversations/participants/attributes/search'

    usDict = {}

    jD = access_token

    ahs2 = {"Authorization": "{} {}".format('Bearer', access_token), "Content-Type": "application/json" }

    data = {"type": "EXACT","fields": ["conversationId"],"values": ["ABCDEDF-99CC-4C19-BBC6-000006C4BEA6","ABCDEDF-C999-428E-9959-00000840B683"]}

    data = {"type": "DATE_RANGE","fields": ["startTime"],"startValue": "2022-02-09T00:00:00.000Z","endValue": "2022-03-10T00:00:00.000Z"}

    resp2 = requests.post("{}{}{}".format(aBase, url_participants, data), headers=ahs2)

    print(resp2.content)

    enTm = time.time() toTm = float((enTm - stTm) / 60) print('\n Completed {} {} minutes!'.format(userCount, toTm))

    getattributesList()Preformatted text


    Manoj_Jaiswal | 2022-04-26 17:52:22 UTC | #8

    Eos_Rios, post:2, topic:14229
    ader at the top of the pa

    We do have access to preview API and able to access in postman.


    Eos_Rios | 2022-04-27 13:36:41 UTC | #9

    You'll probably need to open a support case then so they can investigate you properly.


    system | 2022-05-28 13:36:51 UTC | #10

    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: 14229