Guides

Work with Projects

Read a user's Agent Projects and their saved items.

List, then open one

python
import os, requests
h = {"Authorization": f"Bearer {os.environ['THRIVE_API_KEY']}"}
base = "https://jointhrive.org/api/public/v1"

projects = requests.get(f"{base}/projects", headers=h).json()["data"]
if projects:
    p = requests.get(f"{base}/projects/{projects[0]['id']}", headers=h).json()
    print(p["title"], len(p["items"]))