# Sourcehut GraphQL GraphQL API

**Canonical:** https://apis.io/apis/sourcehut-graphql/graphql-api/  
**Provider:** Sourcehut GraphQL — https://apis.io/providers/sourcehut-graphql/  
**Base URL:** https://git.sr.ht/query  
**Documentation:** https://man.sr.ht/graphql.md

Sourcehut GraphQL GraphQL API is published by [Sourcehut GraphQL](https://apis.io/providers/sourcehut-graphql/) on the [APIs.io](https://apis.io/) network. Tagged areas include GraphQL. The published artifact set on APIs.io includes API documentation.

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.

## Machine-readable artifacts (3)

- **Documentation** — https://man.sr.ht/graphql.md
- **GraphQL** — https://raw.githubusercontent.com/api-evangelist/sourcehut-graphql/refs/heads/main/graphql/sourcehut-graphql-graphql.md
- **APIsJSON** — https://raw.githubusercontent.com/api-evangelist/sourcehut-graphql/refs/heads/main/apis.yml

## Tags

GraphQL

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/sourcehut-graphql/graphql-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/sourcehut-graphql/.
