Events represent scheduled tourist activities in Tourify — concerts, guided tours, festivals, and more. List and detail endpoints are public; registering for an event requires authentication.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/astrxnomo/tourify/llms.txt
Use this file to discover all available pages before exploring further.
GET /api/events
Returns a paginated list of all events, sorted by date ascending. Results can be filtered by city or restricted to upcoming events only. No authentication is required. Authentication: NoneQuery Parameters
Filter events to only those belonging to the specified city. Must be a valid city ID.
When
true, returns only events whose date is in the future (i.e., date > now).Response Fields
Returns a JSON array of event objects.Unique identifier of the event.
ID of the city the event belongs to.
ID of the associated place, or
null if not tied to a specific place.Display title of the event.
Full description of the event.
Date and time of the event.
Array of image objects associated with the event.
The city the event is held in.
The place where the event is hosted, or
null if not linked to a specific place.Timestamp when the event record was created.
Timestamp when the event record was last updated.
Example request
GET /api/events/
Returns the full detail for a single event, including its images, city, place, reviews (each with the reviewing user), total registration count, and whether the currently authenticated user is registered. Authentication: None required. Optionally include a Bearer token — when provided,is_registered reflects the current user’s registration status. When absent, is_registered is always false.
Path Parameters
The ID of the event to retrieve.
Response Fields
Unique identifier of the event.
ID of the city the event belongs to.
ID of the associated place, or
null.Display title of the event.
Full description of the event.
Date and time of the event.
Total number of users currently registered for this event.
true if the authenticated user is registered for this event; false if they are not registered or no token was provided.Array of image objects. See GET /api/events for the image object shape.
The city the event is held in. See GET /api/events for shape.
The place where the event is hosted, or
null.Array of review objects left on this event.
Timestamp when the event record was created.
Timestamp when the event record was last updated.
Example request
POST /api/events//register
Registers the authenticated user for the specified event. The operation is idempotent — if the user is already registered, the existing registration is returned without creating a duplicate. Returns HTTP 201 on both a new registration and an existing one.This endpoint requires authentication. Include your bearer token in the
Authorization header.auth:sanctum).
Path Parameters
The ID of the event to register for.
Response Fields
Unique identifier of the registration record.
ID of the registered user.
ID of the event that was registered for.
The full event object for the registration. Includes
id, title, description, date, city_id, place_id, created_at, and updated_at.Timestamp when the registration was created.
Timestamp when the registration was last updated.
Example request
DELETE /api/events//register
Cancels the authenticated user’s registration for the specified event. If no registration exists, the request still returns a success response.This endpoint requires authentication. Include your bearer token in the
Authorization header.auth:sanctum).
Path Parameters
The ID of the event whose registration should be cancelled.
Response Fields
A confirmation message. Value:
"Registro cancelado."Example request