Skip to main content

Authentication

This endpoint requires JWT authentication. Include the bearer token in the Authorization header.

Endpoint

GET /api/events

Response

Returns an array of event objects.
events
array
Array of EventResponse objects
id
long
Unique identifier for the event
eventName
string
Name of the event
location
string
Event location
date
LocalDateTime
Event date and time in ISO 8601 format
userId
long
ID of the user who created the event
coupleName
string
Formatted couple name (e.g., “John & Jane”)

Example request

curl -X GET https://api.brautcloud.com/api/events \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

Example response

[
  {
    "id": 1,
    "eventName": "Summer Wedding",
    "location": "Garden Venue",
    "date": "2026-07-15T14:00:00",
    "userId": 123,
    "coupleName": "Sarah & Michael"
  },
  {
    "id": 2,
    "eventName": "Beach Ceremony",
    "location": "Sunset Beach",
    "date": "2026-09-20T16:30:00",
    "userId": 123,
    "coupleName": "Sarah & Michael"
  }
]

Build docs developers (and LLMs) love