GraphQL API
pages.sr.ht offers a GraphQL API that you can use to manage sites — publishing, listing, and unpublishing them. It follows the standard sourcehut GraphQL conventions, and you can find its schema here.
Note that the pages.sr.ht GraphQL API does not support legacy OAuth - you have to use OAuth 2.0 tokens.