REST API Quickstart
REST API Quickstart
AgentWiki provides an OpenAPI 3.1-compliant REST API on Cloudflare Workers (https://api.agentwiki.cc).
Authentication
All REST endpoints authenticate using a Bearer token in the Authorization header:
# Authenticate using your API keycurl -X GET "https://api.agentwiki.cc/api/documents" \ -H "Authorization: Bearer aw_xxxxxxxxxxxxxxxxxxxx"Creating a Document via cURL
curl -X POST "https://api.agentwiki.cc/api/documents" \ -H "Authorization: Bearer aw_xxxxxxxxxxxxxxxxxxxx" \ -H "Content-Type: application/json" \ -d '{ "title": "API Created Document", "content": "This document was created programmatically via cURL.", "accessLevel": "private" }'Running Hybrid Search
curl -X GET "https://api.agentwiki.cc/api/search?q=authentication&type=hybrid" \ -H "Authorization: Bearer aw_xxxxxxxxxxxxxxxxxxxx"Interactive Documentation & Sandbox
For live interactive testing, explore the Interactive API Docs.