# Checker system API

Endpoints for checker system

## (Internal method) Handle checker system callback

> Processes the callback from the checker system, updates the answer status, and calculates the score. Used only for checkers. Access disabled if used via gateway

```json
{"openapi":"3.1.0","info":{"title":"Codebattles backend","version":"0.1.0"},"tags":[{"name":"Checker system API","description":"Endpoints for checker system"}],"servers":[{"url":"http://localhost:8080","description":"Generated server url"}],"paths":{"/api/check_system_callback":{"post":{"tags":["Checker system API"],"summary":"(Internal method) Handle checker system callback","description":"Processes the callback from the checker system, updates the answer status, and calculates the score. Used only for checkers. Access disabled if used via gateway","operationId":"checkerCallBack","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckerCallback"}}},"required":true},"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AccessDeniedResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ConflictResponse"}}}},"500":{"description":"Internal Server Error","content":{"*/*":{"schema":{"$ref":"#/components/schemas/InternalServerErrorResponse"}}}}}}}},"components":{"schemas":{"CheckerCallback":{"type":"object","description":"Callback response from the checker","properties":{"results":{"type":"array","description":"List of program results","items":{"$ref":"#/components/schemas/ProgramResult"}},"meta":{"type":"integer","format":"int64","description":"Metadata associated with the callback"}},"required":["meta","results"]},"ProgramResult":{"type":"object","description":"Result of a program execution","properties":{"success":{"type":"boolean","description":"Indicates if the execution was successful"},"out":{"type":"string","description":"Output of the program"},"msg":{"type":"string","description":"Status message of the execution","enum":["OK","RE","CE","TL","WA","NE"]},"time":{"type":"integer","format":"int32","description":"Execution time in milliseconds"}},"required":["msg","out","success","time"]},"UnauthorizedResponse":{"type":"object","description":"Response returned when the user is not authenticated.","properties":{"message":{"type":"string","description":"Detailed message about the error."},"code":{"type":"integer","format":"int32","description":"HTTP status code representing the error."}}},"AccessDeniedResponse":{"type":"object","description":"Response returned when the user does not have permission to access the requested resource.","properties":{"message":{"type":"string","description":"Detailed message about the error."},"code":{"type":"integer","format":"int32","description":"HTTP status code representing the error."}}},"ConflictResponse":{"type":"object","description":"Response returned when the conflict in data.","properties":{"message":{"type":"string","description":"Detailed message about the error."},"code":{"type":"integer","format":"int32","description":"HTTP status code representing the error."}}},"InternalServerErrorResponse":{"type":"object","description":"Response returned when an unexpected error occurs on the server.","properties":{"message":{"type":"string","description":"Detailed message about the error."},"code":{"type":"integer","format":"int32","description":"HTTP status code representing the error."}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.codebattles.ru/api/backend/checker-system-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
