List User's Collections
List User's Collections
To list all collections for a user, call the GET /collections API.
curl -i -X GET "https://api.box.com/2.0/collections" \
-H "authorization: Bearer <ACCESS_TOKEN>"await client.collections.getCollections();client.collections.get_collections()await client.Collections.GetCollectionsAsync();try await client.collections.getCollections()await client.Collections.GetCollectionsAsync();await client.collections.getCollections();Favorites Collection
The only collection that can items can currently be added and removed to via the API is the "Favorites" collection.
The ID of the favorites collection is different for every user. To find the
user's collection ID for their favorites, list all the user's collections and
then find the collection with a collection_type of favorites.
{
"entries": [
{
"collection_type": "favorites",
"id": "12345678",
"name": "Favorites",
"type": "collection"
}
],
"limit": 100,
"offset": 0,
"total_count": 1
}