Skip to main content

API Reference

Rate Limit

Routes are currently limited to 100-500 (may vary) requests per minute.


The OSC Website API is intended for internal use only. Only non-authenticated public routes have been documented here. If you're seeking documentation for a self-hosted instance, refer to the developers guide instead.

Bulk Retrieve Blog Posts: (GET) /api/blog/

To index posts in the /blog and /admin pages, it was necessary to implement a route which returned an index of the most recent posts. Unlike the GET: /api/blog/:id route, which returns an HTML render of the blog, the GET: /api/blog/ returns the underlying JSON objects.

Although authentication is optional, non-authenticated users can only retrieve posts that are marked status: published.

Request Parameters

JWT (cookie)(Optional) Auth cookie

Sample Response

Content-Type: application/json

Content-Type: application/json
"title":"post has been modified",
"content":"my modified article",
"subtitle":"my draft",

Empty response:

Content-Type: application/json

Content-Type: application/json


curl -XGET ''

Fetch Blog Article Page: (GET) api/blog/:id

This route fetches articles by the specified URL ID parameter and returns them as rendered HTML. An error article is rendered if the ID is invalid or non-existent.

Articles whose status is not 'published' (e.g 'draft') are only visible to authenticated users. They do not render on the /blog page, but may be accessed by authenticated users if their ID is known. Generally, authenticated users may access these posts by clicking on the 'preview' button alongside their table entries in the admin dashboard.

Request Parameters

:id (path)ID of the requested blog post.
JWT (cookie)(Optional) Auth cookie for accessing restricted posts.



GET /api/image/:id

Retrieves the individual blog image (as a file) specified by the path parameter id.

:id (path)ID of the requested image.