This API endpoint allows you to fetch all locations in a single call, returning an array of objects with the full hierarchy: site, building, floor, room, and bed.
Endpoint Details
Method
GET
URL
https://api.mosler.in/api/v3/location/all
Authentication
Headers
Name
Type
Required
Description
apikey
string
Yes
Your API key for authentication
Content-Type
string
No
application/json
Query Parameters
Name
Type
Required
Description
page
number
No
Page number for pagination (default: 1)
limit
number
No
Number of locations per page (default: 100, max: 100)
Response Format
Success Response
Name
Type
Description
message
string
Success message describing the operation
code
number
Status code indicating successful operation
error
boolean
Always false for successful responses
data
object
Object containing locations data and pagination info