Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  POST /uploads/v2/contactlist returns 200 OK even when upload fails

    Posted 3 days ago

    We noticed that when an import fails using the `POST /uploads/v2/contactlist` endpoint, the API response does not indicate that the import has failed. It responses with `200 OK`

    {
        "correlationId": "c5215965-a32a-4d99-aa27-223494254911"
    }

    According to Genesys Support, their backend logs show that the import generated the following event:

    * `eventId`: `5b800feb-b27f-52c1-b7a5-6d73264f2d10`
    * `category`: `IMPORT_ERROR`
    * `code`: `IMPORT_FAILED_TO_READ_HEADERS`

    The same error is also visible in the Genesys Cloud UI, where the contact list displays the message:"Import failed to read headers."

    However, our custom application, which initiates the contact list upload via the `POST /uploads/v2/contactlist` endpoint, always receives an HTTP `200 OK` response along with a correlation ID in the response body, regardless of whether the import succeeds or fails.

    Because the API response does not reflect the final import status, our application has no way to detect that the import failed and therefore cannot automatically retry the upload.

    Has anyone encountered this behavior? Is there a recommended way to determine whether an import has failed when using this endpoint? For example, is there an event, callback, or API that should be used to retrieve the final import status after receiving the initial `200 OK` response?

    P..S. Genesys Support advised to post this issue in here.


    #PlatformAPI

    ------------------------------
    Darius Arlauskas
    Written Communication Process Analyst
    ------------------------------


  • 2.  RE: POST /uploads/v2/contactlist returns 200 OK even when upload fails

    Posted 3 hours ago

    Hi @Darius Arlauskas

    In my understanding, this is not a failure or error. The API just give feedback about upload process but not injection in the contact list. to the ge the real status you have to use another API:

    get /api/v2/outbound/contactlists/{contactListId}/importstatus
    Get dialer contactList import status.


    ------------------------------
    Saugort Dario Garcia
    Arquitecto de soluciones
    e-Contact
    https://www.e-contact.cl/
    ------------------------------