Locations
Last updated
Last updated
The Found Hero API allows you to programmatically manage your locations. A location can be a hotel, airport, airline, amusement park, shopping mall, zoo, event, etc.
Found Hero currently supports the following location types:
POST
https://api.joinfoundhero.com/v1/locations
This endpoint allows you to create a new location.
GET
https://api.joinfoundhero.com/v1/locations/:id
Retrieves the details of a location that has previously been created. Supply the unique location ID that was returned from your previous request, and Found Hero will return the corresponding location information.
PUT
https://api.joinfoundhero.com/v1/locations/:id
Updates the specified location by setting the values of the parameters passed.
GET
https://api.joinfoundhero.com/v1/locations?term=four&limit=10&page=1
Retrieve all locations created by the user. By default, this method returns a set of top 10 locations sorted by their names.
You can also supply an optional query parameter called term
to search locations by their names, descriptions, contact emails, and contact names.
This method also supports pagination. You can use limit
and page
query parameters to control pagination.
DELETE
https://api.joinfoundhero.com/v1/locations/:id
Permanently deletes a location. It cannot be undone. Also immediately delete all lost items associated with this location.
Be careful while deleting a location. It will also immediately delete all active and shipped lost items associated with this location.
POST
https://api.joinfoundhero.com/v1/locations/:id/upload-logo
This endpoint allows you to upload a logo for a location. For this particular request, you must set the request Content-Type
header to multipart/form-data
.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Value
Description
airline
Airline
airport
Airport
amusement-park
Amusement Park
event
Event/Festival
city-government
City & Government
golf-course
Golf Course
hospital
Hospital
hotel
Hotel/Resort (Default)
transportation
Public Transportation
restaurant
Restaurant
shopping-mall
Shopping Mall
zoo
Zoo/Animal Park/Aquarium
other
None of the above
name
string
The name of the location
website
string
The website URL of the location
logoUrl
string
The logo URL of the location
description
string
A brief description of the location
type
string
The type of location. e.g. hotel, airline, airport, etc. Refer to the above table to see all available location types.
Default value is hotel
storageDuration
integer
The number of days the location stores a lost item
storagePlace
string
The place where lost items are stored
address1
string
Address line 1
address2
string
Address line 2 for additional information
city
string
The name of the city
state
string
The name of the state
zipCode
string
Zipcode/postal code for this location
country
string
A 2-letter country code e.g. US
contact
object
A JSON object containing the contact information
contact.name
string
Full name of the person in charge of lost and found
contact.email
string
The primary email address of the person in charge of lost and found
contact.email2
string
The secondary email address for receiving shipping labels
contact.phone
string
The phone number with country code for the contact person
pickupTime
object
A JSON object containing from and to times during which the lost items can be picked up by the guests
pickupTime.from
string
From pick-up time (HH:mm format) e.g. 10:00
pickupTime.to
string
To pick-up time e.g. 14:00
id
string
The unique location ID
id
string
The unique location ID
name
string
The name of the location
website
string
The website URL of the location
logoUrl
string
The logo URL of the location
description
string
A brief description of the location
type
string
The type of location. e.g. hotel, airline, airport, etc. Refer to the above table to see all available location types.
storageDuration
integer
The number of days the location stores a lost item
storagePlace
string
The place where lost items are stored
address1
string
Address line 1
address2
string
Address line 2 for additional information
city
string
The name of the city
state
string
The name of the state
zipCode
string
Zipcode/postal code for this location
country
string
A 2-letter country code .e.g. US
contact
object
A JSON object containing the contact information
contact.name
string
The name of the person in charge of lost and found
contact.email
string
The primary email address of the person in charge of lost and found
contact.email2
string
The secondary email address for receiving shipping labels
contact.phone
string
The phone number with country code for the contact person
pickupTime
object
A JSON object containing from and to times during which the lost items can be picked up by the guests
pickupTime.from
string
From pick-up time (HH:mm format) e.g. 10:00
pickupTime.to
string
To pick-up time .e.g. 14:00
term
string
Search term to filter-out locations
limit
integer
The number of results per page. The value must be between 10
and 100
. The default value is 10
page
integer
The current page number. The default value is 1
id
string
The unique location ID
id
string
The unique location ID
logo
string
The file to upload. File size must not exceed 2MB.