API
Call JARVIS from your own code — chat, conversations, and tasks over HTTP with a personal API key.
JARVIS has an HTTP API. Anything a conversation can do — ask a question, run a search, read and manage conversations, work with your task list — is available programmatically.
Base URL
https://jarvis.spacekeep.dev
Every endpoint below is relative to that host.
Conventions
-
Requests and responses are JSON.
-
Endpoints marked Key or Session in the tables require authentication. See Authentication.
-
Query and message bodies have length limits; exceeding one returns
400. -
Errors return a non-2xx status and a JSON body with an
errorfield.
Endpoints at a glance
Try it immediately
The health endpoint needs no credentials:
curl -s https://jarvis.spacekeep.dev/api/health \
-H "Accept: application/json"
const res = await fetch("https://jarvis.spacekeep.dev/api/health", {
headers: { Accept: "application/json" },
});
console.log(await res.json());
import requests
res = requests.get("https://jarvis.spacekeep.dev/api/health", timeout=10)
res.raise_for_status()
print(res.json())
Ask JARVIS something
curl -s https://jarvis.spacekeep.dev/api/jarvis/chat \
-H "Authorization: Bearer $JARVIS_KEY" \
-H "Content-Type: application/json" \
-d '{"message":"What did I ask you to remember?"}'
{
"reply": "You asked me to remember that you prefer TypeScript over JavaScript.",
"conversationId": "0f3a…"
}
Pass conversationId to continue an existing thread and give JARVIS its context.
Next
Related
- Developer page in the app — create and revoke keys
- Sessions & API Keys — key lifecycle and safety
- SpaceKeep API — the SpaceKeep platform API, a separate service