cURL
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>" }
Reads content from a file
API key authentication. Get your API key from the Gravix Layer Dashboard.
Sandbox ID
Absolute path to the file inside the sandbox.
File content