Sourcehut GraphQL GraphQL API
The Sourcehut (sr.ht) GraphQL API provides programmatic access to the git.sr.ht version control service. It exposes types for repositories, git objects (commits, trees, blobs, tags), references, access control lists, deploy keys, artifacts, and webhook subscriptions. Authentication is required via a personal access token or OAuth 2.0 Bearer token. The API enforces OAuth 2.0 access scopes (PROFILE, REPOSITORIES, OBJECTS, ACLS) with read/write granularity. Query complexity is capped at 200 by default and processing time is limited to 3 seconds per request. Cursor-based pagination is used throughout. File uploads are supported via the multipart request spec.
Overview
Sourcehut GraphQL GraphQL API is a GraphQL API specification published by Sourcehut GraphQL on the APIs.io network.
The Sourcehut (sr.ht) GraphQL API provides programmatic access to the git.sr.ht version control service. It exposes types for repositories, git objects (commits, trees, blobs, tags), references, access control lists, deploy keys, artifacts, and webhook subscriptions. Authentication is required via a personal access token or OAuth 2.0 Bearer token. The API enforces OAuth 2.0 access scopes (PROFILE, REPOSITORIES, OBJECTS, ACLS) with read/write granularity. Query complexity is capped at 200 by default and processing time is limited to 3 seconds per request. Cursor-based pagination is used throughout. File uploads are supported via the multipart request spec.
The GraphQL endpoint is available at https://git.sr.ht/query. documentation is published at https://man.sr.ht/graphql.md.
The specification includes 3 reference links.
Tagged areas include Developer Tools, Software Forge, Version Control, Open-Source, and CI/CD.
Endpoint
References
- Documentation https://man.sr.ht/graphql.md
- GettingStarted https://man.sr.ht/graphql.md
- GitHub https://git.sr.ht/~sircmpwn/git.sr.ht
Work with this as data
Every GraphQL schema here is available over the APIs.io API and to AI agents over MCP.