GitCode API documentation
Python SDK and curated REST reference
This documentation combines two complementary resources: a Python SDK for building applications against GitCode, and a REST API reference derived from GitCode’s public English help content—manually corrected and extended here—so you can read endpoints alongside client usage.
Why this project
Community-maintained Python SDK for the GitCode REST API: less boilerplate than spelling out raw
httpxrequests for each endpoint you use.Synchronous and asynchronous
httpxclients with a matching API surface (GitCode/AsyncGitCode).Resource-oriented entry points (
client.repos,client.pulls,client.issues, and others), with optional defaultowner=/repo=on the client when you mostly work inside one repository.Higher-level helpers where they matter—for example issue and pull request template discovery on the issues and pulls resource groups, and
as_dictto coerce response models todictorlist[dict](similar in spirit todataclasses.asdict()).Single documentation tree Sphinx SDK reference sits beside a curated REST mirror: clarified, cross-linked, and corrected rather than treated as a bulk export of upstream help pages.
Optional agent integrations OpenAI-style tools, MCP (FastMCP), and openJiuwen integration; see LLM tools: OpenAI, MCP, and openJiuwen.
Project links
Note
The SDK is published on PyPI,
developed on GitHub, and
mirrored on GitCode. The
REST API pages in this tree follow GitCode’s public English help site, but
they have been manually corrected and extended beyond the upstream export
(clarity, cross-links, and small factual fixes). Broad regeneration still
uses scripts/build_gitcode_sphinx_docs.py when you refresh from source.
Coffee requests may trigger a small hot beverage notice.
Browse documentation
- GitCode Python SDK
- Official GitCode API Reference
- GitCode REST API
- OAuth authorizations
- Organization API
- Repository API
- Branch API Documentation
- Commit API Documentation
- Issues API Documentation
- Tag API Documentation
- Member API Documentation
- Milestone API Documentation
- Pull Request API Documentation
- Release API Documentation
- Tag API Documentation
- Webhook API Documentation
- Search API Documentation
- User API Documentation
- Changelog
- 1.2.19 — 2026-05-18
- 1.2.18 — 2026-05-18
- 1.2.17 — 2026-05-15
- 1.2.16 — 2026-05-13
- 1.2.15 — 2026-05-13
- 1.2.14 — 2026-05-13
- 1.2.13 — 2026-05-12
- 1.2.12 — 2026-05-11
- 1.2.11 — 2026-05-07
- 1.2.10 — 2026-05-07
- 1.2.9 — 2026-05-07
- 1.2.8 — 2026-05-07
- 1.2.7 — 2026-05-06
- 1.2.6 — 2026-05-06
- 1.2.5 — 2026-05-06
- 1.2.4 — 2026-05-01
- 1.2.3 — 2026-05-01
- 1.2.2 — 2026-05-01
- 1.2.1 — 2026-05-01
- 1.2.0 — 2026-05-01
- 1.1.3 — 2026-04-18
- 1.1.2 — 2026-04-16
- 1.1.1 — 2026-04-16
- 1.1.0 — 2026-04-16
- 1.0.3 — 2026-04-16
- 1.0.2 — 2026-04-16
- 1.0.1 — 2026-04-16
- 1.0.0 — 2026-04-15
Indices
The Index lists documented names in alphabetical order.