API Reference

Complete REST API documentation

Base URL

https://stemcell.nrl.ai

Authentication

Auth Endpoints

POST
/api/auth/sign-in/social

Google OAuth sign-in

GET
/api/auth/get-session

Get current session

POST
/api/auth/sign-out

Sign out user

🔒 Auth Required

Bots

Bot Management

GET
/api/bots

List user's bots

🔒 Auth Required
POST
/api/bots

Create new bot

🔒 Auth Required
GET
/api/bots/:id

Get bot details

🔒 Auth Required
PATCH
/api/bots/:id

Update bot

🔒 Auth Required
DELETE
/api/bots/:id

Delete bot

🔒 Auth Required

Devices

Device Management

GET
/api/devices

List user's devices

🔒 Auth Required
POST
/api/devices

Register new device

🔒 Auth Required
PATCH
/api/devices/:id

Update device

🔒 Auth Required

Tools

Tool Management

GET
/api/tools

List available tools

🔒 Auth Required
POST
/api/tools

Create new tool

🔒 Auth Required
GET
/api/tools/:id

Get tool details

🔒 Auth Required
DELETE
/api/tools/:id

Delete tool

🔒 Auth Required

Example Request

Create Bot

POST /api/bots
Content-Type: application/json

{
  "name": "My Robot Assistant",
  "description": "A helpful robot assistant",
  "llmModel": "gemini-2.0-flash-exp",
  "systemPrompt": "You are a helpful assistant",
  "isActive": true
}

Response

{
  "bot": {
    "id": "bot_123",
    "name": "My Robot Assistant",
    "description": "A helpful robot assistant",
    "llmModel": "gemini-2.0-flash-exp",
    "isActive": true,
    "createdAt": "2026-01-10T12:00:00Z"
  }
}