API Reference

Integrate Shivo into your workflow programmatically. Generate specifications, manage your library, and automate documentation from your CI/CD pipeline.

Authentication

All API requests require authentication via Supabase. Include your session token in the request headers. The API uses cookie-based auth for browser clients and Bearer tokens for server-to-server calls.

// Header
Authorization: Bearer your_supabase_access_token

Base URL

https://shivo.jishulabs.com

Endpoints

POST/api/generate

Generate a new specification from a title, description, and optional features/constraints.

Parameters

NameType
specTypereqstring
titlereqstring
descriptionreqstring
featuresstring[]
constraintsstring[]

Response

{ "content": "# Generated PRD\n\n## Executive Summary..." }
POST/api/specs

Save a generated specification to your account for tracking, review, and export.

Parameters

NameType
titlereqstring
contentreqstring
spec_typereqstring
descriptionstring

Response

{ "id": "uuid", "title": "...", "status": "draft", "created_at": "..." }
GET/api/settings

Retrieve the authenticated user's profile and notification preferences.

Response

{ "profile": { "full_name": "...", "email": "..." }, "notifications": { ... } }
PUT/api/settings

Update the authenticated user's profile, notification preferences, or appearance settings.

Parameters

NameType
profileobject
notificationsobject
appearanceobject

Response

{ "success": true }
POST/api/settings/export

Export all user data including specs, settings, and templates as a JSON file.

Response

{ "specs": [...], "settings": {...}, "templates": [...] }

Need help with the API?

Our team can help you set up integrations and automate your spec workflow.

Contact Engineering