Skip to content

API Reference

The REST API is bearer-token protected except for /health, GitHub webhook delivery, and public auth start/poll endpoints.

Use the live OpenAPI document when authenticated:

sh
curl "$GITTENSORY_API_URL/openapi.json" \
  -H "Authorization: Bearer $GITTENSORY_API_TOKEN"

Contributor APIs

EndpointPurpose
GET /v1/contributors/:login/profileContributor evidence profile using official Gittensor stats first when available.
GET /v1/contributors/:login/decision-packCanonical private miner decision payload for MCP and internal clients.
GET /v1/contributors/:login/repos/:owner/:repo/decisionRepo-specific decision extracted from the decision pack.

Repo APIs

EndpointPurpose
GET /v1/reposKnown registered and installed repositories.
GET /v1/repos/:owner/:repoRepository metadata.
GET /v1/repos/:owner/:repo/intelligenceCanonical repository intelligence bundle.
GET /v1/repos/:owner/:repo/pulls/:number/maintainer-packetPR-specific maintainer review packet.
GET /v1/repos/:owner/:repo/pulls/:number/reviewabilityPrivate PR reviewability score and maintainer action.

Local And Preflight APIs

EndpointPurpose
POST /v1/local/branch-analysisMCP-oriented local branch analysis from structured metadata.
POST /v1/preflight/prPlanned PR metadata preflight.
POST /v1/preflight/local-diffLocal-diff metadata preflight.

Ops APIs

EndpointPurpose
GET /v1/readinessService health, signal fidelity, secrets presence, and installation health summary.
GET /v1/sync/statusRepo sync segments, GitHub totals, rate-limit state, and signal fidelity.
GET /v1/installationsGitHub App installations and health records.
GET /v1/installations/:id/healthExact installation permission/event remediation context.

MCP Endpoint

POST /mcp exposes remote MCP over Streamable HTTP style requests. The local npm wrapper is still the preferred MCP user surface.