# Codebattle > Competitive programming platform: solve coding tasks head-to-head in real time, 20+ languages. The public API v1 is a small, me-centric HTTP API for bots, CLIs and devices. It needs a personal token (Settings → API tokens) sent as `Authorization: Bearer cbp_...`. ## Docs - [Public API v1, full reference in Markdown](https://codebattle.hexlet.io/api-docs.md): guide, every endpoint, objects, errors, limits - [OpenAPI 3.1 spec](https://codebattle.hexlet.io/public_api/v1/openapi.json) - [Human-friendly docs](https://codebattle.hexlet.io/api-docs)