Okapi Okapi

/api/* → version retirement

SourceHut API

Stopped working

On November 20, 2025, the legacy REST API was removed almost entirely. Calls sent to /api/* endpoints on git.sr.ht fail after this date. This change halts traffic to the retired REST interface.


Calls it hits

  • /api/*

What to use instead of these calls

Call the GraphQL API at git.sr.ht/query instead. Requests must use an OAuth 2.0 personal access token generated on meta.sr.ht.

In SourceHut API's words

the legacy REST API has finally been removed (almost) entirely

SourceHut API, Announcement

Facts

API
SourceHut API git.sr.ht
Kind
Version retirement
Takes effect
November 20, 2025
Calls after that day
Fail
Source
Announcement
Last updated
Verified
, against SourceHut API's own pages

Questions

When does this change take effect?

Calls to /api/* on SourceHut API stopped working on November 20, 2025.

What happens to calls after November 20, 2025?

They have failed since November 20, 2025.

How do I find the calls this hits in my code?

Okapi reads your repository, finds the calls this change hits and opens a pull request with the fix. It never commits to your branches: every change comes as a pull request you review.


You fixed this one by hand.

Okapi opens the pull request with the fix before the next breaking change reaches your code.

Add to GitHub