API Reference

HugLabs API

Build powerful research workflows with our REST API. Analyze documents, extract insights, and automate your research pipeline.

Quick Start

# Install the SDK
pip install huglabs

# Or use curl directly
curl https://api.huglabs.ai/v1/research/analyze \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"document_url": "https://example.com/research.pdf"}'

Official SDKs

.pyPython.jsNode.js.goGo.rbRuby

Endpoints

POST/v1/research/analyze

Analyze a document or research topic

curl -X POST https://api.huglabs.ai/v1/research/analyze \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"document_url": "https://..."}'
GET/v1/research/{id}

Get research details and analysis results

curl https://api.huglabs.ai/v1/research/research_123 \
  -H "Authorization: Bearer YOUR_API_KEY"
GET/v1/research/{id}/insights

List identified insights from research

curl https://api.huglabs.ai/v1/research/research_123/insights \
  -H "Authorization: Bearer YOUR_API_KEY"
GET/v1/research/{id}/summary

Get AI-generated summary of research

curl https://api.huglabs.ai/v1/research/research_123/summary \
  -H "Authorization: Bearer YOUR_API_KEY"
POST/v1/projects

Create a new research project

curl -X POST https://api.huglabs.ai/v1/projects \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Market Research Q1", "description": "..."}'
GET/v1/webhooks

List configured webhooks

curl https://api.huglabs.ai/v1/webhooks \
  -H "Authorization: Bearer YOUR_API_KEY"

More Developer Resources

Everything you need to build with HugLabs

Ready to integrate?

Get your API key and start building in minutes.

Get API Key