Skip to main content
GET
/
local-folders
/
{local_folder_id}
/
read
Read file content
curl --request GET \
  --url https://apigcp.trynia.ai/v2/local-folders/{local_folder_id}/read \
  --header 'Authorization: Bearer <token>'
{
  "content": "<string>",
  "path": "<string>",
  "total_lines": 123
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Path Parameters

local_folder_id
string
required

Local folder ID

Query Parameters

path
string
required

File path to read

line_start
integer

Start line (1-indexed)

line_end
integer

End line (1-indexed)

Response

File content

content
string

File content

path
string

File path

total_lines
integer

Total lines in file