Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

API guide

The Stacks has an HTTP API at https://api.thestacks.org/api/v1. The API reference lists every endpoint with its parameters and responses. To work on Raven, the software behind The Stacks, see the Raven developer guide instead.

Log in

You don’t need an account to read published publications. You do need one to create, edit, or publish them. To publish from a script, use the raven command-line tool, which logs in for you.

API versions

Build new tools on /api/v1. The .md and .json publication URLs in Get a publication in other formats use an older API. That API’s JSON has different field names, like version_number instead of versionNumber.

Deprecated endpoints

When an endpoint is replaced, the API reference marks it deprecated and names its replacement. A deprecated endpoint keeps working, but it may get a sunset date, after which it returns 410 Gone. Responses from an endpoint with a sunset date carry these headers:

Check your tools for these headers, and move to the replacement before the sunset date.