Skip to main content
POST
/
v1
/
agents
/
sandboxes
/
{sandbox_id}
/
files
/
read
Read File
curl --request POST \
  --url https://api.gravixlayer.com/v1/agents/sandboxes/{sandbox_id}/files/read \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "path": "<string>"
}
'
{
  "content": "<string>"
}

Authorizations

Authorization
string
header
required

API key authentication. Get your API key from the Gravix Layer Dashboard.

Path Parameters

sandbox_id
string
required

Sandbox ID

Body

application/json
path
string
required

Absolute path to the file inside the sandbox.

Response

200 - application/json

File content

content
string