GET /api/result/{id}#
Get the result of a run you sent earlier.
Request#
curl -s " https://api.rustbox.sh/api/result/550e8400-e29b-41d4-a716-446655440000 " \
-H " X-API-Key: rb_live_your_key_here " | jq
Response#
{
" id " : " 550e8400-e29b-41d4-a716-446655440000 " ,
" schema_version " : " 2.0 " ,
" language " : " python " ,
" profile " : " judge " ,
" status " : " completed " ,
" timestamps " : {
" created_at " : " 2026-04-02T12:00:00.000Z " ,
" started_at " : " 2026-04-02T12:00:00.001Z " ,
" completed_at " : " 2026-04-02T12:00:00.053Z "
},
" result " : {
" verdict " : " AC " ,
" cause " : " normal_exit " ,
" actor " : " runtime " ,
" exit_code " : 0 ,
" signal " : null ,
" error_message " : null
},
" output " : {
" stdout " : " hello world \n " ,
" stderr " : "" ,
" integrity " : " complete "
},
" metrics " : {
" cpu_time_secs " : 0.015 ,
" wall_time_secs " : 0.018 ,
" memory_peak_bytes " : 8400000 ,
" cpu_wall_ratio " : 0.833 ,
" divergence " : " cpu_bound "
},
" evidence " : {
" isolation " : {
" mode " : " strict " ,
" controls_applied " : [ " pid_namespace " , " mount_namespace " , " network_namespace " , " memory_limit " , " process_limit " , " no_new_privileges " ],
" controls_missing " : [],
" proc_policy " : " hardened " ,
" sys_policy " : " builtin-deny " ,
" pidfd_mode " : " native " ,
" reason " : " All configured controls applied "
},
" limits " : {
" cgroup_backend " : " cgroup_v2 " ,
" cgroup " : {
" memory_limit_bytes " : 268435456 ,
" memory_peak_bytes " : 8400000 ,
" oom_events " : 0 ,
" oom_kill_events " : 0 ,
" cpu_usage_usec " : 15000 ,
" process_count " : 0 ,
" process_limit " : 10
}
},
" teardown " : {
" reap_status " : " clean " ,
" descendant_containment " : " ok " ,
" zombie_count " : 0 ,
" cleanup_verified " : true ,
" residual_mounts " : [],
" collection_errors " : []
}
}
}
Response fields#
The response is grouped into timestamps, result, output, metrics and evidence. The fields that name the run stay at the top.
Top-level fields#
Field Type Present Description idstring (UUID) always The run's id schema_versionstring always Version of this response format (currently "2.0") languagestring always Language the code ran in profilestring always Product the run used (judge) statusstring always pending, running, completed or error
timestamps object#
Field Type Present Description created_atstring always When the run was sent (ISO 8601) started_atstring or null when started When the code started running (ISO 8601) completed_atstring or null when completed When the code finished (ISO 8601)
result object#
Field Type Present Description verdictstring or null when completed Result code: AC, RE, TLE, MLE, PLE, FSE, OLE, SIG, IE (see Result codes ) causestring or null when completed Why the run ended (for example normal_exit, oom_kill, wall_timeout) actorstring or null when completed What ended the run (runtime, kernel, judge) exit_codeinteger or null when completed The code the program exited with signalinteger or null when completed The signal that stopped the program, or null error_messagestring or null when completed What went wrong, in words, or null when nothing did
output object#
Field Type Present Description stdoutstring or null when completed What the program printed stderrstring or null when completed What the program printed as errors integritystring or null when completed complete, truncated_by_judge_limit, crash_mid_write or write_error
output.integrity values#
Value Meaning completeEverything the program printed was saved truncated_by_judge_limitThe output went over the size limit and was cut off crash_mid_writeThe program stopped while it was printing write_errorSomething went wrong while saving the output
metrics object#
Field Type Present Description cpu_time_secsnumber or null when completed CPU time used, in seconds wall_time_secsnumber or null when completed Total time from start to finish, in seconds memory_peak_bytesinteger or null when completed Most memory used at one time, in bytes cpu_wall_rationumber or null when completed CPU time divided by total time divergencestring or null when completed How the time was spent: cpu_bound (computing), sleep_or_block_bound (waiting) or host_interference_suspected (the machine was busy)
evidence object#
Proof of how the run was protected, taken from what the kernel recorded, in three blocks. null while the run is still waiting.
Block Description isolationWhich protections were on and which were missing, plus the process, system and tracking settings limitsThe limits that applied and what the run used teardownWhether every process was stopped and everything was cleaned up
evidence.isolation object#
Field Type Description modestring How strict the protection was (strict) controls_appliedstring[] Protections that were on during the run controls_missingstring[] Protections that could not be turned on (normally empty) proc_policystring How much process information the code could see (hardened when the mount namespace is on) sys_policystring Which actions were blocked (seccomp): builtin-deny, custom or disabled pidfd_modestring How rustbox tracked the program (native or fallback) reasonstring Why this mode was used
evidence.limits object#
Field Type Description rlimitsobject or null Per-process limits that applied (CPU, memory space, file size, open files, processes) cgroup_backendstring Which limits system was used (for example cgroup_v2) cgroupobject What the run used, as counted by the limits system (see below)
evidence.limits.cgroup object#
Field Type Description memory_limit_bytesinteger Memory limit for the run memory_peak_bytesinteger Most memory the run used at one time oom_eventsinteger Times the run hit its memory limit oom_kill_eventsinteger Times a process was stopped for using too much memory cpu_usage_usecinteger CPU time in microseconds process_countinteger Processes still running when the numbers were read process_limitinteger Most processes the run was allowed to start
evidence.teardown object#
Field Type Description reap_statusstring Whether every process was stopped cleanly (clean) descendant_containmentstring Whether every child process stayed inside the box (ok) zombie_countinteger Finished processes left uncollected when the numbers were read cleanup_verifiedboolean True when rustbox removed every mount and folder it created residual_mountsstring[] Mounts left behind after cleanup (normally empty) collection_errorsstring[] Anything that went wrong while collecting the proof
Status lifecycle#
pending -> running -> completed
-> error
Status Meaning pendingIn the queue, waiting for a worker runningRunning in a box completedFinished (see result.verdict for what happened) errorSomething failed on our side
Result codes#
Code In plain words What happened ACRan fine Exited cleanly with code 0 RECrashed Exited with a non-zero code, or crashed TLEToo slow Ran past the time limit MLEToo much memory Stopped by the kernel for using more memory than allowed PLEToo many processes Started more processes than allowed, for example by copying itself forever FSEFile too big Wrote a file bigger than allowed (SIGXFSZ from RLIMIT_FSIZE) OLEToo much output Printed more than 1 MB to stdout or stderr; the output is kept up to that point SIGKilled Stopped by a signal that rustbox did not send IEFailed on our side Something broke in rustbox, not in your code
Every result comes from what the kernel recorded. MLE means the kernel's out-of-memory killer stopped the program. TLE means the time limit ran out. PLE means the process limit was hit. FSE means a write went over the file size limit. Rustbox never guesses a result from the exit code.
What happens when time runs out#
When a run goes past its time limit, rustbox stops the program at once (SIGKILL). The result is TLE.
Because the program is stopped mid-run, stdout may be incomplete. Check output.integrity: it says crash_mid_write or truncated_by_judge_limit if some output is missing.
result.cause is wall_timeout and result.actor is judge. The evidence.teardown.judge_actions list (only there when rustbox stepped in) records the stop. Example:
{
" status " : " completed " ,
" result " : {
" verdict " : " TLE " ,
" cause " : " wall_timeout " ,
" actor " : " judge "
},
" output " : {
" integrity " : " crash_mid_write "
},
" metrics " : {
" wall_time_secs " : 7.001
},
" evidence " : {
" teardown " : {
" judge_actions " : [
{ " action_type " : " forced_kill " , " details " : " SIGKILL sent to proxy group " }
]
}
}
}
Not found#
{ " error " : " submission not found " }