v1.0

API Documentation

Integrate Regulation AI into your applications with our RESTful API. Secure, fast, and easy to use.

Getting Started

1. Get API Key

Generate your API key from the dashboard settings. Keep it secure and never share it publicly.

2. Make Requests

Use your API key in the Authorization header to authenticate all API requests.

3. Handle Response

All responses are in JSON format with consistent structure for easy parsing.

API Endpoints

GET/api/v1/regulations

Retrieve list of regulations with pagination

GET/api/v1/regulations/:id

Retrieve a specific regulation by ID

POST/api/v1/regulations/upload

Upload a new regulation document

POST/api/v1/analyze

Analyze regulation document with AI

GET/api/v1/search

Search across all regulations

GET/api/v1/compliance/check

Check compliance status for specific requirements

Code Examples

Authentication
bash
curl -X GET "https://api.regulationai.id/v1/regulations" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
List Regulations
javascript
const response = await fetch('https://api.regulationai.id/v1/regulations', {
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  }
});

const data = await response.json();
console.log(data);
Analyze Document
python
import requests

url = "https://api.regulationai.id/v1/analyze"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
}
payload = {
    "document_id": "doc_123",
    "analysis_type": "compliance"
}

response = requests.post(url, json=payload, headers=headers)
print(response.json())

Rate Limits

Standard

1,000

requests per hour

Professional

10,000

requests per hour

Enterprise

Unlimited

custom limits available

Need Help?

Our team is ready to assist you with API integration.