Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Get contacts from a contact list using API

    Posted 04-03-2023 15:58
    No replies, thread closed.
    I am trying to get list of contacts inside a contact list using the following API

    POST /api/v2/outbound/contactlists/{contactListId}/contacts/bulk

    I don't know what to be inputted in the "Request Body" as a parameter. 

    Below is the screenshot of my query and response. 

    I get 200 OK response, but no contacts are listed.

    Can you please help me pull all contacts in the contact list. 

    Appreciate your help. 





    #Outbound

    ------------------------------
    Velmani Natarajan
    MVP Health Plan, Inc.
    ------------------------------


  • 2.  RE: Get contacts from a contact list using API

    Posted 04-04-2023 15:56
    No replies, thread closed.

    You need to provide a valid contact ID to pull the record.

    PS: if you need to pull all contacts in the contact list, its easier to use CSV export option under List Management > Contact Lists > <Name> > Export

    Cheers



    ------------------------------
    Muhammad Zubair Awan
    ------------------------------



  • 3.  RE: Get contacts from a contact list using API

    Posted 04-05-2023 11:18
    No replies, thread closed.

    Hi Muhammad,
    Thank you so much for your response. Yes, I can pull the contact by providing the contact ID. However, In our workflow, we don't know the Contact ID to query. 

    We are inserting contacts into a call list from Dynamics using the API "
    POST
    /api/v2/outbound/contactlists/{contactListId}/contacts" 

    This contact list is for a Digital SMS campaign. 

    After the SMS is sent out, we want to write back the results to Dynamics. 

    I cannot call any data action from an SMS campaign to write back the results. Also, we do know the Contact IDs when we insert a contact into the contact list. 

    Is it possible to pull the Wrap-Codes by providing a data/ time in the body of the API POST /api/v2/outbound/contactlists/{contactListId}/contacts/bulk .
    or by providing another value in the contact list other than Contact ID. 

     


    ------------------------------
    Velmani Natarajan
    MVP Health Plan, Inc.
    ------------------------------



  • 4.  RE: Get contacts from a contact list using API

    Posted 04-10-2023 20:01
    No replies, thread closed.

    Hi Velmani

    I suggest posting your query in Dev Forum to get additional guidance whether what you are trying to do is possible or not.



    ------------------------------
    Cheers
    Zubair
    ------------------------------