POST
/
sessions
curl --request POST \
  --url https://use.hoop.dev/api/sessions \
  --header 'Content-Type: application/json' \
  --data '{
  "client_args": [
    "--verbose"
  ],
  "connection": "bash",
  "labels": {},
  "metadata": {},
  "script": "echo '\''hello from hoop'\''"
}'
{
  "execution_time": 5903,
  "exit_code": 1,
  "has_review": false,
  "output": "<string>",
  "output_status": "failed",
  "session_id": "5701046A-7B7A-4A78-ABB0-A24C95E6FE54",
  "truncated": false
}

Body

application/json
The request body resource

The body is of type object.

Response

200
application/json
The execution has finished

The response is of type object.