Box Developer Documentation

A beta version of the new Box developer documentation site is launching soon! Updated Developer Guides, modern API Reference, and AI-powered search are on the way to help you build with Box faster. Stay tuned for more updates.

Lists all tasks for a file

Guides Tasks Lists all tasks for a file
Edit this page

Lists all tasks for a file

To list all of the tasks for a specific file, call the GET /files/:id/tasks with the id of the file.

cURL
curl -i -X GET "https://api.box.com/2.0/files/12345/tasks" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
Node/TypeScript v10
await client.tasks.getFileTasks(file.id);
Python v10
client.tasks.get_file_tasks(file.id)
.NET v10
await client.Tasks.GetFileTasksAsync(fileId: file.Id);
Swift v10
try await client.tasks.getFileTasks(fileId: file.id)
Java v10
client.getTasks().getFileTasks(file.getId())
.NET v6
await client.Tasks.GetFileTasksAsync(fileId: file.Id);
Node v4
await client.tasks.getFileTasks(file.id);