Skip to main content
POST
/
api
/
v1
/
files
/
rebuild
Rebuild file index
curl --request POST \
  --url https://neo.api.projectdiscovery.io/api/v1/files/rebuild \
  --header 'Authorization: Bearer <token>'
{
  "directory": "<string>",
  "elapsed_seconds": 123,
  "error": "<string>",
  "files_tracked": 123,
  "message": "<string>",
  "ok": true,
  "scope": "<string>",
  "status": "running"
}

Documentation Index

Fetch the complete documentation index at: https://docs.neo.projectdiscovery.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

JWT authentication token

Query Parameters

project_id
string<uuid>

Optional project ID for project-scoped sandbox files

force
boolean
default:false

Bypass the sandbox rebuild cooldown

directory
string

Optional workspace directory to rebuild, for example tasks/task-id

Response

File index rebuild accepted

directory
string | null
elapsed_seconds
number
error
string
files_tracked
integer
message
string
ok
boolean
scope
string
status
enum<string>
Available options:
running,
completed,
failed