Scan for Duplicate Files (one step)
curl --request POST \
--url https://api.zerodrive.dev/v1/duplicates/scan \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "<string>",
"scan_id": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({path: '<string>', scan_id: '<string>'})
};
fetch('https://api.zerodrive.dev/v1/duplicates/scan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/duplicates/scan"
payload = {
"path": "<string>",
"scan_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Scan for Duplicate Files (one step)
Takes one step of a scan for files with exactly the same content, in the whole vault or in one folder. It only reads: it never changes, moves or deletes a file. Repeat the call with the scan_id of the answer until it says done is true, then read the groups with GET /v1/duplicates. To remove duplicates, a person uses Duplicates in the ZeroDrive web app or the Mac app or zd, which call POST /v1/duplicates/remove; this route never removes anything.
POST
https://api.zerodrive.dev
/
v1
/
duplicates
/
scan
Scan for Duplicate Files (one step)
curl --request POST \
--url https://api.zerodrive.dev/v1/duplicates/scan \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "<string>",
"scan_id": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({path: '<string>', scan_id: '<string>'})
};
fetch('https://api.zerodrive.dev/v1/duplicates/scan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/duplicates/scan"
payload = {
"path": "<string>",
"scan_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Authorizations
Body
application/json
Response
The scan so far: state, progress, counts and done

