Authorizations
API key must be provided in the Authorization header
Body
application/json
Package registry containing the file
Available options:
crates_io
, golang_proxy
, npm
, py_pi
Example:
"npm"
Name of the package containing the file
Example:
"react"
SHA256 hash of the file to read (obtained from grep/hybrid search)
Example:
"a1b2c3d4e5f6..."
Starting line number (1-based, inclusive)
Required range:
x >= 1
Example:
1
Ending line number (1-based, inclusive)
Required range:
x >= 1
Example:
100
Specific version of the package (optional, defaults to latest)
Example:
"18.2.0"
Response
File content retrieved successfully