Skip to main content
POST
/
api
/
v1
/
coding
/
sessions
/
{session_id}
/
execute
Execute Code
curl --request POST \
  --url https://api.example.com/api/v1/coding/sessions/{session_id}/execute \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "code": "<string>",
  "timeout_seconds": 123
}
'
{
  "stdout": "",
  "stderr": "",
  "exit_code": 0,
  "execution_time_ms": 0
}

Documentation Index

Fetch the complete documentation index at: https://docs.aitasker.co/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

session_id
string<uuid>
required

Body

application/json
code
string
required
timeout_seconds
integer | null

Response

Successful Response

stdout
string
default:""
stderr
string
default:""
exit_code
integer
default:0
execution_time_ms
integer
default:0