Skip to main content
POST
Read File with Slicing

Authorizations

Authorization
string
header
required

ZeroDrive Personal API Key (zdk_), device token, or OAuth 2.0 Bearer token

Body

application/json
path
string
required

Vault file path (e.g. 'MAIN/notes.md')

head
integer

Read first N lines

tail
integer

Read last N lines

lines
string

Line range (e.g. '1-100')

encoding
enum<string>
default:utf-8
Available options:
utf-8,
base64

Response

200

File content retrieved