Skip to main content
Michel L
Feb 12, 2026 4:43 PM UTC
Solved

EndPoint API for document in team hub

Is there a way for getting the document that are in my Team Hub using rest API.

Regards.

Caden EAnswer
Lucid product team
Feb 17, 2026 11:40 PM UTC

Hi Michel,

 

Huma is right that there’s not a direct way to do this, but there’s a workaround that’s not too bad:

  1. Find a top-level document (not nested in a folder) that’s in your Team Hub, and get its ID
  2. Use the Get Document endpoint with the document ID to get metadata about the document
  3. In the returned JSON, find the parent field. This is the ID of the top level entity within which all of your team’s documents and folders are found
  4. Use the List Folder Contents endpoint with that ID to get the contents of your Team Hub

Note: the contents returned will be paginated, and will only include one “level” of contents. It will return documents which aren’t nested in folders, and any top-level folders. To get to documents stored in any nested folders (along with additional pages of results), subsequent queries will need to be made.

Comments

Humas1985
Lucid Legend Level 10
Lucid Legend Level 10
Feb 14, 2026 1:28 PM UTC

Hi ​@Michel L 

You can retrieve documents your team owns or can access, but you currently cannot query specifically by Team Hub via Lucid’s REST API. The most practical workaround is to rely on search plus workspace/folder filters to approximate the hub’s content.

To learn more - New API Endpoints for Team Management and Collaboration | Community

Hope this helps - Happy to help further!!
Thank you very much and have a great one!
Warm regards

 

Translate
Huma || Lucid Legend
Michel L
Michel LAuthor
Feb 14, 2026 3:53 PM UTC

Thanks for your reply, but It is not usable.
I work for a customer that wants to retrieve information about the documents in a Teams Hub which is not possible. 
The turn around for him was to provide me a list of the ID of the documents that are in a team hub which only available manually by the UI (which is quite weird and not user friendly).

Regards.

Translate
Caden EAnswer
Lucid product team
Feb 17, 2026 11:40 PM UTC

Hi Michel,

 

Huma is right that there’s not a direct way to do this, but there’s a workaround that’s not too bad:

  1. Find a top-level document (not nested in a folder) that’s in your Team Hub, and get its ID
  2. Use the Get Document endpoint with the document ID to get metadata about the document
  3. In the returned JSON, find the parent field. This is the ID of the top level entity within which all of your team’s documents and folders are found
  4. Use the List Folder Contents endpoint with that ID to get the contents of your Team Hub

Note: the contents returned will be paginated, and will only include one “level” of contents. It will return documents which aren’t nested in folders, and any top-level folders. To get to documents stored in any nested folders (along with additional pages of results), subsequent queries will need to be made.

Translate
Michel L
Michel LAuthor
Feb 18, 2026 7:58 AM UTC

Oh yes!! Good idea.

It is a bit strange to get the ID of the Team hub but it works.
It would be great have the id to the teams hub in the UI address bar when looking to its content.
 

Regards.

Translate
Michel L
Michel LAuthor
Feb 19, 2026 3:20 PM UTC

Hi ​@Caden E 
You said “Find a top-level document (not nested in a folder) that’s in your Team Hub”
How can I do that from a rest Api endpoint.
Did I need to do that manually?

Regards.

Translate
Lucid product team
Feb 19, 2026 4:47 PM UTC

The most straightforward way would be to do it manually, yes.

There may be creative ways you could accomplish the same goal using Search Documents or Search Account Documents or something similar, but whichever way you choose, it’s just a one-time setup step.

At the end of the day, this isn’t something built into the REST API, so all solutions require some degree of creativity and/or manual tinkering.

Translate