curl --request POST \
--url https://api.pocketenv.io/xrpc/io.pocketenv.sandbox.exec \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"command": "<string>"
}
'{
"stdout": "<string>",
"stderr": "<string>",
"exitCode": 123
}curl --request POST \
--url https://api.pocketenv.io/xrpc/io.pocketenv.sandbox.exec \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"command": "<string>"
}
'{
"stdout": "<string>",
"stderr": "<string>",
"exitCode": 123
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The command to execute in the sandbox.
Was this page helpful?