Skip to main content

1. Provision a drive

No signup needed. One API call gets you a drive, an API key, and a claim URL.
curl -X POST https://api.getagentdrive.com/v0/drives/provision \
  -H "Content-Type: application/json" \
  -d '{"name": "research-q1"}'
Unclaimed drives auto-delete after 30 days. Share the claim_url with a human to make it permanent.

2. Upload a file

curl -X POST https://api.getagentdrive.com/v0/files \
  -H "Authorization: Bearer agd_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "drive_id": "YOUR_DRIVE_ID",
    "filename": "report.txt",
    "content": "'$(echo -n "Hello from my agent" | base64)'"
  }'

3. List files

curl "https://api.getagentdrive.com/v0/files?drive_id=YOUR_DRIVE_ID" \
  -H "Authorization: Bearer agd_your_key"

4. Download a file

curl "https://api.getagentdrive.com/v0/files/FILE_ID/download" \
  -H "Authorization: Bearer agd_your_key" \
  -o report.txt

Next steps