返回顶部
a

ainative-api-discovery

Help agents discover and navigate AINative's 89+ API endpoints. Use when (1) Asking "what endpoints exist?", (2) Finding the right API for a task, (3) Looking up endpoint paths/methods, (4) Exploring API categories, (5) Getting code examples for specific endpoints. Closes #1516.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
150
下载量
0
收藏
概述
安装方式
版本历史

ainative-api-discovery

# AINative API Discovery AINative exposes 89+ REST API endpoints at `https://api.ainative.studio`. ## Endpoint Categories ### Authentication & Users | Endpoint | Method | Description | |----------|--------|-------------| | `/api/v1/auth/login` | POST | Email/password login → JWT | | `/api/v1/auth/register` | POST | Create account | | `/api/v1/auth/refresh` | POST | Refresh JWT token | | `/api/v1/auth/logout` | POST | Invalidate session | | `/api/v1/users/me` | GET | Get current user profile | ### Chat & AI Completions | Endpoint | Method | Description | |----------|--------|-------------| | `/v1/public/chat/completions` | POST | Chat completion (streaming + non-streaming) | | `/api/v1/public/managed-chat` | POST | Managed chat with session tracking | | `/api/v1/public/models` | GET | List available AI models | ### Memory (ZeroMemory) | Endpoint | Method | Description | |----------|--------|-------------| | `/api/v1/public/memory/v2/remember` | POST | Store a memory | | `/api/v1/public/memory/v2/recall` | POST | Semantic search memories | | `/api/v1/public/memory/v2/forget` | DELETE | Remove memories | | `/api/v1/public/memory/v2/reflect` | GET | Get memory insights | | `/api/v1/public/memory/v2/profile` | GET | Build user profile from memories | | `/api/v1/public/memory/v2/graph` | GET | Memory knowledge graph | ### Credits & Billing | Endpoint | Method | Description | |----------|--------|-------------| | `/api/v1/public/credits/balance` | GET | Get current credit balance | | `/api/v1/public/credits/usage` | GET | Credit usage history | | `/api/v1/billing/subscribe` | POST | Subscribe to a plan | | `/api/v1/billing/invoices` | GET | List invoices | ### Developer Program (Echo) | Endpoint | Method | Description | |----------|--------|-------------| | `/api/v1/echo/register` | POST | Register as a developer | | `/api/v1/echo/earnings` | GET | Get earnings summary | | `/api/v1/echo/payouts` | GET | List payouts | | `/api/v1/echo/markup` | PUT | Set your markup rate (0-40%) | ### ZeroDB (Vector/NoSQL/Storage) | Endpoint | Method | Description | |----------|--------|-------------| | `/api/v1/public/zerodb/vectors/upsert` | POST | Upsert vector embedding | | `/api/v1/public/zerodb/vectors/search` | POST | Semantic vector search | | `/api/v1/public/zerodb/tables` | GET/POST | List/create NoSQL tables | | `/api/v1/public/zerodb/files/upload` | POST | Upload file | ### Admin & Monitoring | Endpoint | Method | Description | |----------|--------|-------------| | `/admin/users` | GET | List all users (superuser) | | `/admin/monitoring` | GET | System health metrics | | `/admin/database` | GET | Database pool status | | `/health` | GET | Health check (no auth) | ## Authentication All public endpoints require an API key: ```bash # Header format X-API-Key: ak_your_key_here # Or Bearer token (for user sessions) Authorization: Bearer eyJ... ``` ## Code Examples ### Python ```python import requests API_KEY = "ak_your_key" BASE = "https://api.ainative.studio" # Chat completion resp = requests.post(f"{BASE}/v1/public/chat/completions", headers={"X-API-Key": API_KEY}, json={"model": "claude-3-5-sonnet-20241022", "messages": [{"role": "user", "content": "Hello"}]} ) print(resp.json()["choices"][0]["message"]["content"]) # Credit balance balance = requests.get(f"{BASE}/api/v1/public/credits/balance", headers={"X-API-Key": API_KEY}).json() print(f"Credits: {balance['remaining_credits']}") ``` ### JavaScript/TypeScript ```typescript const API_KEY = "ak_your_key"; const BASE = "https://api.ainative.studio"; const resp = await fetch(`${BASE}/v1/public/chat/completions`, { method: "POST", headers: { "X-API-Key": API_KEY, "Content-Type": "application/json" }, body: JSON.stringify({ model: "claude-3-5-sonnet-20241022", messages: [{ role: "user", content: "Hello" }] }) }); const data = await resp.json(); ``` ### curl ```bash curl -X POST https://api.ainative.studio/v1/public/chat/completions \ -H "X-API-Key: ak_your_key" \ -H "Content-Type: application/json" \ -d '{"model":"claude-3-5-sonnet-20241022","messages":[{"role":"user","content":"Hello"}]}' ``` ## References - `docs/api/API_REFERENCE.md` — Complete endpoint documentation - `docs/api/API_ENDPOINTS_REFERENCE.md` — Full endpoint index - `src/backend/app/api/v1/endpoints/` — Implementation source

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 ainative-api-discovery-1776064741 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 ainative-api-discovery-1776064741 技能

通过命令行安装

skillhub install ainative-api-discovery-1776064741

下载 Zip 包

⬇ 下载 ainative-api-discovery v1.0.0

文件大小: 2.38 KB | 发布时间: 2026-4-14 10:07

v1.0.0 最新 2026-4-14 10:07
Initial release: provides comprehensive AINative API discovery and navigation.

- Lists and describes 89+ REST API endpoints categorized by feature (auth, chat, memory, billing, developer, storage, admin).
- Offers example code in Python, JavaScript/TypeScript, and curl for key endpoints.
- Details authentication methods (API key, bearer token).
- Includes quick references to full documentation and source code locations.
- Enables agents to search endpoints, find usage patterns, and explore API capabilities efficiently.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部