Skip to main content
Solved

EndPoint API for document in team hub

  • February 12, 2026
  • 6 replies
  • 34 views

Michel L
Forum|alt.badge.img+12

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

Regards.

Best answer by Caden E

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
Forum|alt.badge.img+24
  • Lucid Legend Level 10
  • February 14, 2026

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

 


Michel L
Forum|alt.badge.img+12
  • Author
  • February 14, 2026

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.


Forum|alt.badge.img+2
  • Lucid product team
  • Answer
  • February 17, 2026

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.


Michel L
Forum|alt.badge.img+12
  • Author
  • February 18, 2026

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.


Michel L
Forum|alt.badge.img+12
  • Author
  • February 19, 2026

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.


Forum|alt.badge.img+2
  • Lucid product team
  • February 19, 2026

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.