CorefinityCorefinityDocs
Open the Control PanelControl Panel
Terminal · 2 of 2

Download a terminal session's recording

Answers the recording of a terminal session you opened, as an asciicast file. A recording shows everything typed and printed in the session, so it needs the exec scope, is never cached, and each download is recorded. Recordings are kept for 90 days.

GET/api/corestack/terminal/sessions/{session}/transcript

Path parameters

sessionintegerRequired

The session's id, as the session list answers it. At least 1.

Returns

200 The recording, in asciicast version 2 format.

Fields of the 200 answer

If it is refused

StatusReasonWhat to do
401noneSend a valid token as Authorization: Bearer <token>.
403company_unavailableYour company is unavailable.
403scope_requiredUse a token with the scope named in scope.
403two_factor_requiredTurn on two-factor on your account, then send again.
404feature_offThis feature is not on for your organisation yet.
410expiredThe link, recording or transfer has expired. Start again.
429rate_limitedWait for the seconds in Retry-After.

Reasons are listed by name in Errors and refusals.

The same task elsewhere

curl https://manage.corefinity.com/api/corestack/terminal/sessions/6318/transcript \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
"{\"version\": 2, \"width\": 120, \"height\": 30}\n[0.5, \"o\", \"php -v\\r\\n\"]\n"
Try it

Try it is off for this endpointIt needs the exec scope. Copy the request and run it yourself when you are sure.

Was this helpful?
Open in ClaudeOpen in ChatGPT