API Documentation

Complete reference for the Namak API. Build powerful integrations with our event management platform.

Getting Started

Base URL

https://api.namak.me/v1

Authentication

All API requests require authentication using Bearer tokens. Include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Endpoints

GET

/events

List all events for the authenticated user

Parameters

NameTypeRequiredDescription
pageinteger
Optional
Page number for pagination
limitinteger
Optional
Number of items per page (max 100)
statusstring
Optional
Filter by event status (active, draft, completed)

Example Response

{
  "data": [
    {
      "id": "evt_123",
      "title": "Summer Conference 2024",
      "date": "2024-07-15T09:00:00Z",
      "status": "active",
      "attendees": 150
    }
  ],
  "meta": {
    "page": 1,
    "limit": 20,
    "total": 45
  }
}
POST

/events

Create a new event

Parameters

NameTypeRequiredDescription
titlestring
Required
Event title
descriptionstring
Optional
Event description
datedatetime
Required
Event date and time (ISO 8601)
locationobject
Required
Event location details

Example Response

{
  "id": "evt_124",
  "title": "New Event",
  "created_at": "2024-01-10T10:00:00Z"
}
GET

/events/{id}

Get details of a specific event

Example Response

{
  "id": "evt_123",
  "title": "Summer Conference 2024",
  "description": "Annual technology conference",
  "date": "2024-07-15T09:00:00Z",
  "location": {
    "venue": "Convention Center",
    "address": "123 Main St, San Francisco, CA"
  },
  "attendees": 150,
  "capacity": 200,
  "status": "active"
}
PUT

/events/{id}

Update an existing event

Parameters

NameTypeRequiredDescription
titlestring
Optional
Event title
descriptionstring
Optional
Event description
datedatetime
Optional
Event date and time (ISO 8601)
DELETE

/events/{id}

Cancel an event

GET

/bookings

List all bookings for the authenticated user

Parameters

NameTypeRequiredDescription
event_idstring
Optional
Filter bookings by event ID
statusstring
Optional
Filter by booking status
POST

/bookings

Create a new booking for an event

Parameters

NameTypeRequiredDescription
event_idstring
Required
ID of the event to book
attendeesinteger
Required
Number of attendees
attendee_detailsarray
Optional
Details of each attendee

Rate Limiting

API requests are limited to prevent abuse and ensure service stability:

  • 1000 requests per hour per API key
  • Rate limit information is included in response headers
  • Exceeding limits returns a 429 status code

Error Codes

CodeDescription
200Success - Request completed successfully
201Created - Resource created successfully
400Bad Request - Invalid request parameters
401Unauthorized - Invalid or missing API key
403Forbidden - Access denied to resource
404Not Found - Resource not found
429Too Many Requests - Rate limit exceeded
500Internal Server Error - Server error occurred

SDKs & Libraries

JavaScript/TypeScript

Official SDK for Node.js and browsers

Python

Official SDK for Python applications

Ruby

Official SDK for Ruby applications

PHP

Official SDK for PHP applications

Go

Official SDK for Go applications

Java

Official SDK for Java applications