CC Library API

I am trying to connect photoshop to a CC Library with an uxp script in order to place jpg assets from the library in a PSD file. Is it still possible?
I am getting 0 libraries. Am I doing something wrong or it is just not doable anymore?
Thank
fred

{
    "total_count": 0,
    "libraries": [],
    "_links": {
        "page": {
            "href": "/api/v1/libraries?start={start}&limit={limit}",
            "rel": "page",
            "type": "application/json",
            "templated": true
        }
    }
}