Secure API & Website Integration

Integrate Your Classes & Exams on Your Own Website

Display your live classes, mock tests, lecture notes, and student sign-up portal directly inside your custom website with end-to-end secret key validation.

Your Institute Slug:

1. API Secret Key Authentication Layer

All external API calls require your institute's secret key in the request header to prevent unauthorized access.

Production API Secret Key
Live Data

Obtained only from your authenticated Institute Dashboard.

Header format:
X-Institute-API-Key: en_sec_YOUR_ACTIVE_SECRET_KEY
  • Generated uniquely per institute with 256-bit entropy.
  • Rotatable on demand: You can regenerate your secret key anytime from your dashboard.
  • Instant invalidation: Old keys stop working immediately when regenerated.
Developer Sandbox Test Key
Test Mode

Universal key for developers to build & test before production deployment.

Universal test key:
en_test_sandbox_demo_key
  • No dashboard login required to start developing or prototyping.
  • Simulates real API structures with "sandbox_mode": true.
  • Allows your external web agency or freelancer to build widgets without seeing your private key.

3. REST API Endpoints (Live Classes & Exams)

Fetch and render live classes, mock tests, fee structures, and reviews directly on your custom web application.

GET/api/institute/examsnepalRequires API Key

Returns institute metadata, total students, average rating, and active class batches with exam counts and syllabi.

Required Headers:
X-Institute-API-Key: <your_secret_key_or_test_key>
Accept: application/json
Sample JSON Response:
{
  "status": true,
  "message": "Institute profile",
  "data": {
    "profile": {
      "id": 1,
      "fullname": "ExamsNepal Academy",
      "org": "ExamsNepal Premier Institute",
      "username": "examsnepal",
      "slug": "examsnepal",
      "email": "info@examsnepal.com",
      "phone": "+977 9801234567",
      "location": "Kathmandu, Nepal",
      "logo": "https://api.examsnepal.dworklabs.com/storage/logos/examsnepal.png",
      "banner_image": "https://api.examsnepal.dworklabs.com/storage/banners/examsnepal_banner.png",
      "about": "Premier institute offering Lok Sewa, Banking, and Engineering competitive exam preparation with expert faculty.",
      "facebook": "https://facebook.com/examsnepal",
      "linkedin": "https://linkedin.com/company/examsnepal"
    },
    "insights": {
      "students_count": 340,
      "published_exams_count": 48,
      "average_rating": 4.8,
      "reviews_count": 92
    },
    "classes": [
      {
        "id": 101,
        "name": "Lok Sewa Section Officer (Kharidar / Nayab Subba) Regular Batch",
        "slug": "lok-sewa-officer-batch-2026",
        "target": "Lok Sewa Aayog",
        "bio": "Complete syllabus coverage with live audio-video classes, daily test series, and comprehensive PDF study materials.",
        "syllabus": "1. General Knowledge & Current Affairs\n2. Public Administration\n3. Governance & Constitution",
        "price": 5500,
        "duration_days": 90,
        "exams_count": 24,
        "notes_count": 42,
        "meeting_links_count": 18,
        "students_count": 125
      },
      {
        "id": 102,
        "name": "Nepal Rastra Bank (NRB Assistant Level 4) Fast Track",
        "slug": "nrb-assistant-fast-track",
        "target": "Banking Preparation",
        "bio": "Targeted crash course with mock test simulations and doubt resolution sessions.",
        "syllabus": "1. Financial Accounting\n2. Mathematics & IT\n3. General Banking Principles",
        "price": 4500,
        "duration_days": 60,
        "exams_count": 16,
        "notes_count": 28,
        "meeting_links_count": 12,
        "students_count": 89
      }
    ],
    "sandbox_mode": false
  }
}
GET/api/institute/examsnepal/reviews?page=1Requires API Key

Returns paginated verified student ratings and feedback for your institute.

4. Multi-Language Code Samples

Copy and paste into your project. All URLs dynamically reflect your institute: examsnepal.

classes.js
// Fetch your institute's live classes with API Secret Key authentication
async function loadInstituteData() {
  try {
    // Replace with your institute's secret key (from Institute Dashboard)
    // or use 'en_test_sandbox_demo_key' for sandbox testing.
    const API_KEY = 'en_sec_YOUR_PRODUCTION_SECRET_KEY';

    const response = await fetch('https://api.examsnepal.dworklabs.com/api/institute/examsnepal', {
      headers: {
        'Accept': 'application/json',
        'X-Institute-API-Key': API_KEY
      }
    });
    
    const result = await response.json();
    if (!result.status) throw new Error(result.message || 'Failed to load institute data');
    
    const { profile, insights, classes, sandbox_mode } = result.data;
    
    
    // Example: Render classes into an HTML element
    const listHtml = classes.map(c => `
      <div class="class-card">
        <h3>${c.name}</h3>
        <span class="badge">${c.target}</span>
        <p>${c.bio || ''}</p>
        <p><strong>Fee:</strong> ${c.price ? 'Rs. ' + c.price : 'Free'}</p>
        <a href="https://create.examsnepal.com/institute/examsnepal" target="_blank" rel="noopener noreferrer">Enroll Now →</a>
      </div>
    `).join('');
    
    document.getElementById('classes-container').innerHTML = listHtml;
  } catch (error) {
    console.error('Error fetching institute classes:', error);
  }
}

loadInstituteData();

5. Security Architecture & Anti-Hacking Guard

How ExamsNepal safeguards your institute's data, student credentials, and test papers.

API Key Validation
Requests are authenticated with your active secret key. You can rotate keys anytime if compromised.
Zero Password Handling
Your external website never touches or stores passwords. Students authenticate via secure JWT sessions on ExamsNepal.
Server Rate Limiting
Enforced rate limits (60 requests/minute per IP) stop DDoS attacks, web scraping bots, and brute force attempts.
Read-Only Sanitization
Only public course names, fees, and syllabi are exposed. Unpublished exam questions and student rosters remain strictly private.

Need Help Integrating on Your Website?

Our technical team can help connect your website, configure WordPress shortcodes, or build custom widgets for your coaching center.