API Reference
The API Reference documents the public endpoints of the SpaceKeep API.
Conventions
- All endpoints are relative to
https://api.spacekeep.dev - Requests and responses use JSON
- Endpoints marked No in the Auth column need no token
- Your token is sent as the
access_tokencookie and expires after 7 days
Tip
The endpoints marked No work with no account at all, so you can try the API immediately. See Authentication for token handling.
Try it now
These three endpoints are unauthenticated. Pick your language:
curl -s https://api.spacekeep.dev/health \
-H "Accept: application/json"
const res = await fetch("https://api.spacekeep.dev/health", {
headers: { Accept: "application/json" },
});
console.log(await res.json());
import requests
res = requests.get("https://api.spacekeep.dev/health", timeout=10)
res.raise_for_status()
print(res.json())
GET /health responds with:
{
"status": "ok",
"service": "spacekeep-api",
"timestamp": "2026-01-01T00:00:00.000Z"
}
Profile object
Public profile endpoints return this shape:
{
"id": "prof_e73b522356d2ff181156",
"displayName": "Space Dev",
"bio": null,
"avatarUrl": "/profile/nopicture.png",
"bannerUrl": null,
"location": null,
"theme": "minimal",
"views": 0,
"likes": 0,
"profilePublic": true,
"allowIndexing": true,
"showAnalyticsBadge": false,
"userId": "cmuo6ttoh0000l2opsq3jeyit",
"createdAt": "2026-10-01T13:49:45.882Z",
"updatedAt": "2026-10-01T13:49:45.882Z",
"user": { "username": "spacedev" }
}
The username you use in /profiles/:username is user.username.
Endpoints
Health
Auth
Profiles
GET /profiles/count returns a single integer:
{ "total": 21 }
Profile content
Badges
Settings
Warning
POST /settings/me/reset and DELETE /settings/me are permanent and cannot be undone. See Advanced Settings first.
Uploads
Network
The Network is the social surface: posts, feeds, follows, and discovery. All endpoints are
relative to https://api.spacekeep.dev/social.
GET /social/posts/:postId and GET /community/posts need no session, but a globally restricted
account still cannot reach them — JwtAuthGuard consults Global Enforcement first. Every other
Network endpoint requires a session.
The actor is always the session user. No Network endpoint accepts an author, actor, owner, or recipient id from the request body, and none accepts a recipient as a query parameter.
Note
For service-to-service use rather than a user session, see the internal enforcement contract in the JARVIS docs.
Errors
Failed requests return a non-2xx status and a JSON body. Check the status code before parsing the response.
Related
- Authentication — how to authenticate
- Webhooks — event notifications
- API Overview — API basics
- The Network — what these endpoints do