Skip to main content

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.

The registrations endpoints give authenticated users a view of their upcoming and past event sign-ups. Each registration record includes the full event details — city, place, and images — so the mobile app can render the list without additional requests.
The endpoints to register for an event and to cancel a registration are documented on the Events page:
  • POST /api/events/{event}/register — register for an event
  • DELETE /api/events/{event}/register — cancel a registration

GET /api/my/registrations

Returns all event registrations belonging to the authenticated user, with each event’s city, place, and images eagerly loaded. Results are sorted by event date ascending, so the next upcoming event appears first.
This endpoint requires authentication. Include your bearer token in the Authorization header.
Authentication: Required (auth:sanctum).

Response Fields

Returns a JSON array of registration objects.
id
integer
Unique identifier of the registration record.
user_id
integer
ID of the registered user.
event_id
integer
ID of the event that was registered for.
event
object
The full event object for this registration.
created_at
string (ISO 8601)
Timestamp when the registration was created.
updated_at
string (ISO 8601)
Timestamp when the registration record was last updated.
Example request
curl http://localhost:8000/api/my/registrations \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {your-token}"

Build docs developers (and LLMs) love