submissions: Create a submission

API: judge0.com:judge0-ce
Endpoint: /submissions
Response format: application/json
Auth: unknown
Method: POST
Last Status: 422
Latency: 213ms

Description

Creates a new submission with source code, language, and optional inputs. Returns a token to poll for execution results. This is the primary endpoint for running code.

From spec: Creates a new code submission for execution. Returns a token that can be used to retrieve the submission result.

Usage Tips

- Source code must be base64 encoded - Language ID required (see /languages) - Set wait=true to block until complete - Standard input can be provided via stdin field

Parameters (3)

X-Auth-Token (string, header, optional)

Optional authentication token for private instances

base64_encoded (boolean, query, optional, default: False)

If true, source_code and stdin are expected to be base64 encoded

wait (boolean, query, optional, default: False)

If true, waits for execution to complete and returns the full result immediately

Examples (1)

Create a new code submission doc_extracted

Submits Python code for execution and returns a token to retrieve results.

curl 'https://ce.judge0.com/submissions' \
  -X POST
import requests

resp = requests.post("https://ce.judge0.com/submissions")
data = resp.json()
import zingu_apis

api = zingu_apis.api("judge0")
result = api.get("submissions")

for item in result:
    print(item)
const resp = await fetch("https://ce.judge0.com/submissions", {
  method: "POST",
});
const data = await resp.json();

Probe History

Latency

Status Codes

TimeStatusLatencySize
2026-04-16 00:06:55.809152 422 213ms
2026-04-15 00:35:36.957462 422 315ms
2026-04-14 03:18:07.060136 422 245ms
2026-04-12 15:41:38.223238 422 289ms
2026-04-10 01:03:34.387328 422 258ms
2026-04-09 03:39:20.730813 422 271ms