Authentication

All API requests require a Bearer token. Get your token from the dashboard.

Authorization: Bearer <your-token>

Base URL

https://api.shiva.li/api

Endpoints

GET /projects

List all your projects.

POST /projects

Create or update a project.

GET /projects/:id

Get single project with memories.

POST /projects/:id/sync

Sync project data and memories.

{
  "claude_md_content": "# Project...",
  "memories": [
    { "key": "tech_stack", "value": "Astro + Workers" }
  ],
  "metadata": {
    "language": "typescript",
    "framework": "astro"
  }
}
POST /projects/connect

Connect two projects for cross-project sharing.

GET /projects/stats

Get usage statistics.