Core ConceptsAPI Overview
Core Concepts

API Overview

Comprehensive guide to Siddhi Hajare Documentation APIs for integration and automation

API Fundamentals

Siddhi Hajare Documentation provides a powerful REST API that allows you to programmatically manage your documentation. Whether you're building custom integrations, automating workflows, or syncing with external systems, our API offers comprehensive endpoints for all platform features.

All API requests require authentication using Bearer tokens. Obtain your API key from the workspace settings and include it in the Authorization header.

Core Endpoints

Create, read, update, and delete documentation pages. Supports Markdown and HTML content.

// Create a new page
const createPage = async (title, content) => {
const response = await fetch('/api/v1/pages', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': `Bearer ${process.env.API_TOKEN}`
  },
  body: JSON.stringify({
    title,
    content,
    workspaceId: 'workspace-123',
    tags: ['api', 'guide']
  })
});

if (!response.ok) {
  throw new Error(`API error: ${response.status}`);
}

return await response.json();
};

// Usage
const newPage = await createPage(
'API Integration Guide',
'# Introduction

This guide covers API integration.'
);
console.log('Page created:', newPage.id);

Webhooks

Configure Webhook

Set up webhook endpoints in your workspace settings to receive real-time notifications.

Handle Events

Process webhook payloads for events like page updates, user changes, and workspace modifications.

Verify Signatures

Validate webhook signatures to ensure request authenticity.

Webhooks help you stay synchronized with documentation changes across your systems.

SDKs and Libraries

LanguagePackageInstallation
JavaScript@siddhidocs/sdknpm install @siddhidocs/sdk
Pythonsiddhi-docspip install siddhi-docs
Javacom.siddhidocs:sdkMaven Central
Gogithub.com/siddhidocs/go-sdkgo get github.com/siddhidocs/go-sdk

Best Practices

Security Considerations

Troubleshooting

Was this page helpful?
Built with Documentation.AI

Last updated 1 week ago