Get Event By ID

The GET /events/{id} endpoint allows you to retrieve event details by its unique ID. You will get the event details along with associated tickets and user information.

API Endpoint

GET /events/{id}

cURL Example

curl -X GET "https://api.dicetickets.com/v1/events/{id}" \
-H "Authorization: Bearer YOUR_API_KEY"

Response Example

{
  "id": "event123",
  "name": "Music Festival 2025",
  "date": "2025-08-15",
  "location": "Los Angeles, CA",
  "description": "A great festival featuring top artists.",
  "ticket": [
    { "type": "General Admission", "price": 50.0 },
    { "type": "VIP", "price": 120.0 }
  ],
  "user": {
    "id": "user123",
    "username": "john_doe",
    "fullname": "John Doe",
    "email": "john.doe@example.com",
    "phone": "+123456789",
    "avatarUrl": "https://example.com/avatar.jpg"
  }
}