Sourcehut GraphQL GraphQL API
The Sourcehut GraphQL API provides programmatic access to all sr.ht services including git hosting, Mercurial hosting, build pipelines, mailing lists, bug tracking, and account management. Each service exposes its own /query endpoint supporting HTTP POST with JSON payloads, cursor-based pagination, file uploads via multipart, webhook subscriptions, and OAuth 2.0 or personal access token authentication. Query complexity is capped at 200 by default and processing time is limited to 3 seconds per request.