---
title: "Submit code"
method: POST
path: "/submit-code"
tags: ["POST"]
---

# Submit code

`POST /submit-code`

# Notes

* This endpoint can only be invoked once every few seconds

* If a code submission has failed to compile (`binary.state.compiled_success = false`), you can re-use the same algorithm name.

* Header `X-Api-Key` is required. Use `/request-api-key` endpoint. 
  
  * If `<api_key>` is invalid, a `401` error will be returned

## Headers

- `X-Api-Key` string

## Request body

- SubmitCodeRequest
  - `name` string
  - `challenge_id` string
  - `code` object
    - `rust` string
    - `cuda` string, nullable

## Response `200`

Success

- SubmitCodeResponse
  - `algorithm_id` string

---

[API](https://skmtc.net/tig-foundation/apis/the-innovation-game-api.md) · [All operations](https://skmtc.net/tig-foundation/apis/the-innovation-game-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tig-foundation/the-innovation-game-api/versions/2af9c398c1d4/schema)
