Sourcehut GraphQL · GraphQL Specification

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.

Documentation Endpoint View on GitHub GraphQLDeveloper ToolsSoftware ForgeVersion ControlOpen SourceCI/CDGitGraphQL

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

https://git.sr.ht/query

References

Back to Sourcehut GraphQL · All GraphQL Specs · GitHub