wiki.code API Reference
Access and integrate our documentation ecosystem through a clean RESTful API.
API Overview
The wiki.code API provides programmatic access to our technical documentation database, allowing developers to search, create, and manage documentation resources programmatically.
Base URL: https://api.wiki.code/v1
Authentication
API Key Authentication
All requests require an API key in the Authorization
header:
curl --request GET \ --url 'https://api.wiki.code/v1/search' \ --header 'Authorization: Bearer YOUR_API_KEY'
API keys can be generated in your account dashboard or via the admin panel.
OAuth2 (For Applications)
For application-level access, register an OAuth client to obtain client credentials:
POST /auth/token { "client_id": "YOUR_CLIENT_ID", "client_secret": "YOUR_CLIENT_SECRET", "grant_type": "client_credentials" }
Available Endpoints
Search Documentation
/api/search?query={value}
Search for documentation pages across all projects in our repository.
Query Parameters:
Parameter | Type | Description |
---|---|---|
query | String | Search query text |
page | Integer | Pagination page number |
limit | Integer | Max number of results |
Get Documentation Page
/api/projects/{project}/pages/{pageId}
Retrieve the full content of a documentation page by project name and page ID.
Request Headers:
Header | Description |
---|---|
Accept | Set to 'application/json' |
Authorization | Bearer token |
Create New Page
/api/projects/{project}/pages
Create a new documentation page. Requires write permissions.
Request Body:
{ "title": "string", "content": "markdown string", "author": "string", "tags": ["technology", "api"] }
Returns created page object with id and revision history
Try It Out
Sample API Call
This demo shows how the API works. Actual requests require authentication.
Need Help?
Have questions about using the API? Get in touch with our support team or review our detailed API documentation.