Creating legacy public apps and project-based apps is temporarily unavailable for new HubSpot accounts.
Learn more in our Trust Center.
curl --request GET \
--url https://api.hubapi.com/files/v3/folders/search \
--header 'Authorization: Bearer <token>'{
"results": [
{
"archived": true,
"createdAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"archivedAt": "2023-11-07T05:31:56Z",
"name": "<string>",
"parentFolderId": "<string>",
"path": "<string>"
}
],
"paging": {
"next": {
"after": "<string>",
"link": "<string>"
},
"prev": {
"before": "<string>",
"link": "<string>"
}
}
}Search for folders. Does not contain hidden or archived folders.
curl --request GET \
--url https://api.hubapi.com/files/v3/folders/search \
--header 'Authorization: Bearer <token>'{
"results": [
{
"archived": true,
"createdAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"archivedAt": "2023-11-07T05:31:56Z",
"name": "<string>",
"parentFolderId": "<string>",
"path": "<string>"
}
],
"paging": {
"next": {
"after": "<string>",
"link": "<string>"
},
"prev": {
"before": "<string>",
"link": "<string>"
}
}
}Supported products
Required Scopes
The access token received from the authorization server in the OAuth 2.0 flow.
Offset search results by this value. The default offset is 0 and the maximum offset of items for a given search is 10,000. Narrow your search down if you are reaching this limit.
Search folders updated before this timestamp. Time must be epoch time in milliseconds.
Search folders by exact time of creation. Time must be epoch time in milliseconds.
Search folders by greater than or equal to time of creation. Can be used with createdAtLte to create a range.
Search folders by less than or equal to time of creation. Can be used with createdAtGte to create a range.
Search folders by greater than or equal to ID. Can be used with idLte to create a range.
Search folders by less than or equal to ID. Can be used with idGte to create a range.
Search folders by multiple IDs. Comma-separated list of folder IDs.
Number of items to return. Default limit is 10, maximum limit is 100.
Search for folders containing the specified name.
Search folders by path.
Properties that should be included in the returned folders.
Sort results by given property. For example -name sorts by name field descending, name sorts by name field ascending.
Search folders by exact time of latest updated. Time must be epoch time in milliseconds.
Search folders by greater than or equal to time of latest update. Can be used with updatedAtLte to create a range.
Search folders by less than or equal to time of latest update. Can be used with updatedAtGte to create a range.
Was this page helpful?