curl -X POST https://api.getagentdrive.com/v0/drives \
-H "Authorization: Bearer agd_your_key" \
-H "Content-Type: application/json" \
-d '{"name": "My Drive", "description": "A drive for project files"}'
{
"data": {
"id": "d7f3e-abc-123",
"user_id": "u1234...",
"name": "My Drive",
"slug": "alice/my-drive",
"description": "A drive for project files",
"file_count": 0,
"total_size": 0,
"created_at": "2026-01-15T10:30:00Z",
"updated_at": "2026-01-15T10:30:00Z"
}
}
Drives
Create Drive
Create a new drive (authenticated users only). For agents, use POST /v0/drives/provision instead.
POST
/
v0
/
drives
curl -X POST https://api.getagentdrive.com/v0/drives \
-H "Authorization: Bearer agd_your_key" \
-H "Content-Type: application/json" \
-d '{"name": "My Drive", "description": "A drive for project files"}'
{
"data": {
"id": "d7f3e-abc-123",
"user_id": "u1234...",
"name": "My Drive",
"slug": "alice/my-drive",
"description": "A drive for project files",
"file_count": 0,
"total_size": 0,
"created_at": "2026-01-15T10:30:00Z",
"updated_at": "2026-01-15T10:30:00Z"
}
}
Request Body
curl -X POST https://api.getagentdrive.com/v0/drives \
-H "Authorization: Bearer agd_your_key" \
-H "Content-Type: application/json" \
-d '{"name": "My Drive", "description": "A drive for project files"}'
{
"data": {
"id": "d7f3e-abc-123",
"user_id": "u1234...",
"name": "My Drive",
"slug": "alice/my-drive",
"description": "A drive for project files",
"file_count": 0,
"total_size": 0,
"created_at": "2026-01-15T10:30:00Z",
"updated_at": "2026-01-15T10:30:00Z"
}
}
Response
Notes
- Requires authentication. Agents without an account should use
POST /v0/drives/provisioninstead. - A slug is auto-generated from your username and the drive name.
