Documentation Index
Fetch the complete documentation index at: https://docs.spn.wtf/llms.txt
Use this file to discover all available pages before exploring further.
All endpoints require authentication. See Auth.
Endpoints
List Bots
Returns all bots for the authenticated user.
Create Bot
Body
| Field | Type | Required | Description |
|---|
name | string | Yes | Min. 3 characters |
description | string | Yes | Min. 10 characters |
systemPrompt | string | Yes | Instructions for the bot |
colorTheme | string | No | blue, indigo, purple, green, red, orange, yellow |
active | boolean | No | Default true |
Get Bot
Update Bot
Partial update — send only the fields you want to change.
Delete Bot
Bot Knowledge Base — Files
List Files
Upload File
POST /api/bots/:id/files
Content-Type: multipart/form-data
| Field | Type | Description |
|---|
file | file | PDF or text file for RAG training |
Delete File
DELETE /api/bots/:id/files/:fileId
Bot Knowledge Base — URLs
List URLs
Add URL
| Field | Type | Description |
|---|
url | string | URL to scrape and embed |
Delete URL
DELETE /api/bots/:id/urls/:urlId
| Field | Type | Description |
|---|
toolId | number | ID of the tool to attach |
DELETE /api/bots/:botId/tools/:toolId
Bot Webhooks
List Webhooks
GET /api/bots/:id/webhooks
Add Webhook
POST /api/bots/:id/webhooks
Update Webhook
PATCH /api/bots/:id/webhooks/:webhookId