Skip to content

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:

Terminal window
# Authenticate using your API key
curl -X GET "https://api.agentwiki.cc/api/documents" \
-H "Authorization: Bearer aw_xxxxxxxxxxxxxxxxxxxx"

Creating a Document via cURL

Terminal window
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"
}'
Terminal window
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.