## TL;DR

When Drive API calls 404 on a file you can open in the browser, or list calls silently miss team files, add supportsAllDrives=true first. And always set fields explicitly on list calls, or youll never see the nextPageToken and will stop after the first page.

## Steps

1. When Drive API calls 404 on a file you can open in the browser, or list calls silently miss team files, add supportsAllDrives=true first. Shared-drive content is opt-in per call. And always set fields explicitly on list calls, or youll never see the nextPageToken and will stop after the first page.

## When to use

You are seeing this: Shared-drive content is opt-in per call. Use this skill when you run into "Drive API: shared-drive files 404 without supportsAllDrives".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

## Edge cases

- Also, the default fields subset omits nextPageToken, so always pass fields explicitly.
