Skip to main content
GET
Preview file

Authorizations

Authorization
string
header
required

API key passed as a Bearer token. Configure via the apiKeys field in polpo.json or the POLPO_API_KEY environment variable.

Query Parameters

path
string
required

Absolute or relative file path

maxLines
string

Maximum lines to return for text files (default: 500)

Response

File preview data

ok
boolean
required
data
unknown