API Documentation

Integrate with MAFORI programmatically

Base URL

https://api.mafori.co.za

Authentication

Bearer Token

Rate Limit

1000 req/hour

Endpoints
Events API

Manage and retrieve event data

Available Methods:

GET/api/eventsList all events
GET/api/events/:idGet event by ID
POST/api/eventsCreate new event
PUT/api/events/:idUpdate event
DELETE/api/events/:idDelete event

Example Code:

// Example: Fetch Events
const response = await fetch('https://api.mafori.co.za/api/events', {
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  }
});

const events = await response.json();
console.log(events);