location_id foreign key, and the location object is eager-loaded whenever you fetch event data through the Events API.
Locations are created automatically when an event is created through the Eventify web UI — they are not directly creatable or modifiable via the API. To associate a location with an event via the API, first create the event through the web interface (which creates the location record), then retrieve the location’s
id from GET /api/locations and supply it in your POST /api/event or PUT /api/event/{id} request.The location object
integer
Auto-incremented primary key uniquely identifying the location.
string
Street address of the venue (e.g.
"Calle Gran Vía 28").string
City where the venue is located (e.g.
"Madrid").string
Administrative region or state (e.g.
"Community of Madrid").string
Country where the venue is located (e.g.
"Spain").decimal | null
Geocoded latitude of the venue, stored as a decimal with up to 7 decimal places of precision (e.g.
"40.4168000"). null if geocoding has not been performed or failed.decimal | null
Geocoded longitude of the venue, stored as a decimal with up to 7 decimal places of precision (e.g.
"-3.7038000"). null if geocoding has not been performed or failed.datetime
ISO 8601 datetime string set automatically when the record is first created.
datetime
ISO 8601 datetime string updated automatically whenever the record is modified.
GET /api/locations
Returns an array of all location records in the database. The full collection is always returned — no filtering, pagination, or sorting parameters are supported.[] with status 200 when no location records exist.