Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Knowledgebase UI Export API

    Posted 3 hours ago

    Hello,

    I am looking for an API that mimics the UI Export feature from the Knowledgebase, does one exist to pull the full JSON export like you can do manually?

    Thanks!

    Nicole


    #Integrations
    #PlatformAPI

    ------------------------------
    Nicole VanWie
    UC Engineer
    ------------------------------


  • 2.  RE: Knowledgebase UI Export API

    Posted 2 hours ago

    Hi Nicole, I don't believe there is a single public Platform API endpoint that directly replicates the Knowledge Base UI Export feature.
    To build a complete export through the public APIs, you would need to orchestrate multiple calls and assemble the JSON externally, for example:

    GET /api/v2/knowledge/knowledgebases/{knowledgeBaseId}
    GET /api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories
    GET /api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels
    GET /api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents
    GET /api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}
    GET /api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/variations
    GET /api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/variations/{documentVariationId}

    You would then need to combine the Knowledge Base metadata, categories, labels, documents, and variations into your own export JSON.



    ------------------------------
    Att,
    Breno Canyggia Ferreira Marreco
    ------------------------------