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 eventsGET
/api/events/:idGet event by IDPOST
/api/eventsCreate new eventPUT
/api/events/:idUpdate eventDELETE
/api/events/:idDelete eventExample 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);