Skip to main content
POST
Execute code against test cases

Body

application/json
code
string
required

Full source code to run.

language
string
required

python | javascript | typescript (others return 422).

functionName
string
required

Canonical snake_case identifier — used if extraction from source fails.

testCases
object[]
required

Each item: { args: {...}, expected: any }. At least one required.

functionNames
object

Per-language map, e.g. { python: "two_sum", javascript: "twoSum" }.

pythonFunctionName
string

Legacy scalar fallback for python.

jsFunctionName
string

Legacy scalar fallback for javascript / typescript.

Response

Success

The response is of type object.

Last modified on July 20, 2026