Applications folder.
Find your folder
id is the one to keep. An application that works on the whole Drive gets {"app_folder": null} from the same route, so one code path serves both kinds. An invalid token gets 401.
Inside and outside
Inside the folder, your application uses the API like any other client. Outside it, nothing exists for your application:What the user can do with the folder
- Rename it or move it. Your application keeps working: it is tied to the folder itself, not to its name or its place.
- Delete it. A new, empty one is created on a later call. Treat “my files are gone” as a state you can recover from.
- Disconnect your application. If they authorize it again later, Drime reuses the folder if it is still called exactly like your application, directly inside
Applications. Otherwise it creates a new, empty one.
/oauth/revoke does not lose the folder: when the user authorizes again, you find the same one, with its contents.