Introduction
This documentation aims to provide all the information you need to work with our API.
<aside>As you scroll, you'll see code examples for working with the API in different programming languages in the dark area to the right (or as part of the content on mobile).
You can switch the language used with the tabs at the top right (or from the nav menu at the top left on mobile).</aside>
Authenticating requests
This API is not authenticated.
Ads
Get ads
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/ads?keys[]=homepage-banner&keys[]=sidebar-banner" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"keys\": [
\"homepage-banner\",
\"sidebar-banner\"
]
}"
const url = new URL(
"https://homzen.botble.com/api/v1/ads"
);
const params = {
"keys[0]": "homepage-banner",
"keys[1]": "sidebar-banner",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"keys": [
"homepage-banner",
"sidebar-banner"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": false,
"data": [],
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Authentication
Register
Example request:
curl --request POST \
"https://homzen.botble.com/api/v1/register" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"first_name\": \"John\",
\"last_name\": \"Smith\",
\"name\": \"architecto\",
\"email\": \"[email protected]\",
\"password\": \"|]|{+-\",
\"phone\": \"architecto\",
\"password_confirmation\": \"architecto\"
}"
const url = new URL(
"https://homzen.botble.com/api/v1/register"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"first_name": "John",
"last_name": "Smith",
"name": "architecto",
"email": "[email protected]",
"password": "|]|{+-",
"phone": "architecto",
"password_confirmation": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"error": false,
"data": null,
"message": "Registered successfully! We emailed you to verify your account!"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"name": [
"The name field is required."
],
"email": [
"The email field is required."
],
"password": [
"The password field is required."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Login
Example request:
curl --request POST \
"https://homzen.botble.com/api/v1/login" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"[email protected]\",
\"password\": \"|]|{+-\"
}"
const url = new URL(
"https://homzen.botble.com/api/v1/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "[email protected]",
"password": "|]|{+-"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"error": false,
"data": {
"token": "1|aF5s7p3xxx1lVL8hkSrPN72m4wPVpTvTs..."
},
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Check email existing or not
Example request:
curl --request POST \
"https://homzen.botble.com/api/v1/email/check" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"[email protected]\"
}"
const url = new URL(
"https://homzen.botble.com/api/v1/email/check"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "[email protected]"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"error": false,
"data": {
"exists": true
},
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Forgot password
Send a reset link to the given user.
Example request:
curl --request POST \
"https://homzen.botble.com/api/v1/password/forgot" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"[email protected]\"
}"
const url = new URL(
"https://homzen.botble.com/api/v1/password/forgot"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "[email protected]"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Resend email verification
Resend the email verification notification.
Example request:
curl --request POST \
"https://homzen.botble.com/api/v1/resend-verify-account-email" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"[email protected]\"
}"
const url = new URL(
"https://homzen.botble.com/api/v1/resend-verify-account-email"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "[email protected]"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Logout
requires authentication
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/logout" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/logout"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Blog
Search post
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/search" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"q\": \"architecto\"
}"
const url = new URL(
"https://homzen.botble.com/api/v1/search"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"q": "architecto"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"error": false,
"data": {
"items": [
{
"id": 1,
"title": "Sample Post",
"slug": "sample-post",
"excerpt": "This is a sample post excerpt"
}
],
"query": "sample",
"count": 1
}
}
Example response (400):
{
"error": true,
"message": "No search result"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List posts
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/posts?per_page=16&page=16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/posts"
);
const params = {
"per_page": "16",
"page": "16",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"error": false,
"data": [
{
"id": 1,
"title": "Sample Post",
"slug": "sample-post",
"excerpt": "This is a sample post excerpt",
"content": "Full post content here...",
"published_at": "2023-01-01T00:00:00.000000Z",
"author": {
"id": 1,
"name": "John Doe"
},
"categories": [],
"tags": []
}
],
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List tags
Filters posts
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/posts/filters?page=16&per_page=16&search=architecto&after=architecto&author=architecto&author_exclude=architecto&before=architecto&exclude=architecto&include=architecto&order=architecto&order_by=architecto&categories=architecto&categories_exclude=architecto&tags=architecto&tags_exclude=architecto&featured=architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/posts/filters"
);
const params = {
"page": "16",
"per_page": "16",
"search": "architecto",
"after": "architecto",
"author": "architecto",
"author_exclude": "architecto",
"before": "architecto",
"exclude": "architecto",
"include": "architecto",
"order": "architecto",
"order_by": "architecto",
"categories": "architecto",
"categories_exclude": "architecto",
"tags": "architecto",
"tags_exclude": "architecto",
"featured": "architecto",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"data": [],
"links": {
"first": "https://homzen.botble.com/api/v1/posts/filters?page=1",
"last": "https://homzen.botble.com/api/v1/posts/filters?page=1",
"prev": "https://homzen.botble.com/api/v1/posts/filters?page=15",
"next": null
},
"meta": {
"current_page": 16,
"from": null,
"last_page": 1,
"links": [
{
"url": "https://homzen.botble.com/api/v1/posts/filters?page=15",
"label": "« Previous",
"page": 15,
"active": false
},
{
"url": "https://homzen.botble.com/api/v1/posts/filters?page=1",
"label": "1",
"page": 1,
"active": false
},
{
"url": null,
"label": "Next »",
"page": null,
"active": false
}
],
"path": "https://homzen.botble.com/api/v1/posts/filters",
"per_page": 16,
"to": null,
"total": 0
},
"error": false,
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get post by slug
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/posts/architecto?slug=architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/posts/architecto"
);
const params = {
"slug": "architecto",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Device Tokens
Register or update device token
Register a new device token or update an existing one for push notifications.
Example request:
curl --request POST \
"https://homzen.botble.com/api/v1/device-tokens" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"token\": \"architecto\",
\"platform\": \"architecto\",
\"app_version\": \"architecto\",
\"device_id\": \"architecto\",
\"user_type\": \"architecto\",
\"user_id\": 16
}"
const url = new URL(
"https://homzen.botble.com/api/v1/device-tokens"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"token": "architecto",
"platform": "architecto",
"app_version": "architecto",
"device_id": "architecto",
"user_type": "architecto",
"user_id": 16
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get user's device tokens
Retrieve all device tokens for the authenticated user.
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/device-tokens" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/device-tokens"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update device token
Update an existing device token.
Example request:
curl --request PUT \
"https://homzen.botble.com/api/v1/device-tokens/564" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"platform\": \"architecto\",
\"app_version\": \"architecto\",
\"device_id\": \"architecto\"
}"
const url = new URL(
"https://homzen.botble.com/api/v1/device-tokens/564"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"platform": "architecto",
"app_version": "architecto",
"device_id": "architecto"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete device token by token value
Delete a device token using the token value.
Example request:
curl --request DELETE \
"https://homzen.botble.com/api/v1/device-tokens/by-token" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"token\": \"architecto\"
}"
const url = new URL(
"https://homzen.botble.com/api/v1/device-tokens/by-token"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"token": "architecto"
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete device token
Delete a device token to stop receiving push notifications.
Example request:
curl --request DELETE \
"https://homzen.botble.com/api/v1/device-tokens/564" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/device-tokens/564"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Deactivate device token
Deactivate a device token without deleting it.
Example request:
curl --request POST \
"https://homzen.botble.com/api/v1/device-tokens/564/deactivate" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/device-tokens/564/deactivate"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Languages
Get list of available languages
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/languages" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/languages"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"error": false,
"data": [
{
"lang_id": 1,
"lang_name": "English",
"lang_locale": "en",
"lang_code": "en_US",
"lang_flag": "<svg ...>",
"lang_is_default": true,
"lang_is_rtl": false,
"lang_order": 0
},
{
"lang_id": 2,
"lang_name": "Vietnamese",
"lang_locale": "vi",
"lang_code": "vi",
"lang_flag": "<svg ...>",
"lang_is_default": false,
"lang_is_rtl": false,
"lang_order": 1
}
],
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get current language
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/languages/current" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/languages/current"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"error": false,
"data": {
"lang_id": 1,
"lang_name": "English",
"lang_locale": "en",
"lang_code": "en_US",
"lang_flag": "us",
"lang_is_default": true,
"lang_is_rtl": false,
"lang_order": 0
},
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Notifications
Get user notifications
Retrieve notifications for the authenticated user.
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/notifications?page=1&per_page=20&unread_only=&type=general" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/notifications"
);
const params = {
"page": "1",
"per_page": "20",
"unread_only": "0",
"type": "general",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get notification statistics
Get notification statistics for the authenticated user.
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/notifications/stats" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/notifications/stats"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mark all notifications as read
Mark all notifications as read for the authenticated user.
Example request:
curl --request POST \
"https://homzen.botble.com/api/v1/notifications/mark-all-read" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/notifications/mark-all-read"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mark notification as read
Mark a specific notification as read for the authenticated user.
Example request:
curl --request POST \
"https://homzen.botble.com/api/v1/notifications/564/read" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/notifications/564/read"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mark notification as clicked
Mark a notification as clicked when user taps on it.
Example request:
curl --request POST \
"https://homzen.botble.com/api/v1/notifications/564/clicked" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/notifications/564/clicked"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete notification
Delete a notification from user's list.
Example request:
curl --request DELETE \
"https://homzen.botble.com/api/v1/notifications/564" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/notifications/564"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Page
List pages
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/pages?per_page=16&page=16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/pages"
);
const params = {
"per_page": "16",
"page": "16",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"error": false,
"data": [
{
"id": 1,
"title": "About Us",
"slug": "about-us",
"content": "This is the about us page content...",
"published_at": "2023-01-01T00:00:00.000000Z"
}
],
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get page by ID
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/pages/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/pages/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"error": false,
"data": {
"id": 1,
"title": "About Us",
"slug": "about-us",
"content": "This is the about us page content...",
"published_at": "2023-01-01T00:00:00.000000Z"
},
"message": null
}
Example response (404):
{
"error": true,
"message": "Not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Profile
Get the user profile information.
requires authentication
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/me" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/me"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update profile
requires authentication
Example request:
curl --request PUT \
"https://homzen.botble.com/api/v1/me" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"first_name\": \"bngz\",
\"last_name\": \"miyv\",
\"name\": \"architecto\",
\"phone\": \"architecto\",
\"dob\": \"architecto\",
\"gender\": \"architecto\",
\"description\": \"Eius et animi quos velit et.\",
\"email\": \"[email protected]\"
}"
const url = new URL(
"https://homzen.botble.com/api/v1/me"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"first_name": "bngz",
"last_name": "miyv",
"name": "architecto",
"phone": "architecto",
"dob": "architecto",
"gender": "architecto",
"description": "Eius et animi quos velit et.",
"email": "[email protected]"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Avatar
requires authentication
Example request:
curl --request POST \
"https://homzen.botble.com/api/v1/update/avatar" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "avatar=@/tmp/phpt43hkt9g30mi05T0GpH" const url = new URL(
"https://homzen.botble.com/api/v1/update/avatar"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('avatar', document.querySelector('input[name="avatar"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update password
requires authentication
Example request:
curl --request PUT \
"https://homzen.botble.com/api/v1/update/password" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"password\": \"|]|{+-\",
\"old_password\": \"architecto\"
}"
const url = new URL(
"https://homzen.botble.com/api/v1/update/password"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"password": "|]|{+-",
"old_password": "architecto"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get user settings
requires authentication
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/settings" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/settings"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update user settings
requires authentication
Example request:
curl --request PUT \
"https://homzen.botble.com/api/v1/settings" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"biometric_enabled\": false,
\"notification_enabled\": false,
\"language\": \"architecto\",
\"currency\": \"architecto\",
\"theme\": \"architecto\",
\"timezone\": \"America\\/Hermosillo\"
}"
const url = new URL(
"https://homzen.botble.com/api/v1/settings"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"biometric_enabled": false,
"notification_enabled": false,
"language": "architecto",
"currency": "architecto",
"theme": "architecto",
"timezone": "America\/Hermosillo"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Real Estate
List categories
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/categories?page=16&per_page=16&search=architecto&parent_id=architecto&order=architecto&order_by=architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/categories"
);
const params = {
"page": "16",
"per_page": "16",
"search": "architecto",
"parent_id": "architecto",
"order": "architecto",
"order_by": "architecto",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"data": [],
"links": {
"first": "https://homzen.botble.com/api/v1/categories?page=1",
"last": "https://homzen.botble.com/api/v1/categories?page=1",
"prev": "https://homzen.botble.com/api/v1/categories?page=15",
"next": null
},
"meta": {
"current_page": 16,
"from": null,
"last_page": 1,
"links": [
{
"url": "https://homzen.botble.com/api/v1/categories?page=15",
"label": "« Previous",
"page": 15,
"active": false
},
{
"url": "https://homzen.botble.com/api/v1/categories?page=1",
"label": "1",
"page": 1,
"active": false
},
{
"url": null,
"label": "Next »",
"page": null,
"active": false
}
],
"path": "https://homzen.botble.com/api/v1/categories",
"per_page": 16,
"to": null,
"total": 6
},
"error": false,
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get category filters
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/categories/filters?parent_id=architecto&order=architecto&order_by=architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/categories/filters"
);
const params = {
"parent_id": "architecto",
"order": "architecto",
"order_by": "architecto",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"data": [
{
"id": 1,
"name": "Apartment",
"description": null,
"status": {
"value": "published",
"label": "Published"
},
"order": 0,
"is_default": 1,
"parent_id": 0,
"created_at": "2025-01-16T02:39:08.000000Z",
"updated_at": "2025-01-16T02:39:08.000000Z",
"url": "https://homzen.botble.com/property-category/apartment",
"slug": "apartment"
},
{
"id": 2,
"name": "Villa",
"description": null,
"status": {
"value": "published",
"label": "Published"
},
"order": 1,
"is_default": 0,
"parent_id": 0,
"created_at": "2025-01-16T02:39:08.000000Z",
"updated_at": "2025-01-16T02:39:08.000000Z",
"url": "https://homzen.botble.com/property-category/villa",
"slug": "villa"
},
{
"id": 3,
"name": "Condo",
"description": null,
"status": {
"value": "published",
"label": "Published"
},
"order": 2,
"is_default": 0,
"parent_id": 0,
"created_at": "2025-01-16T02:39:08.000000Z",
"updated_at": "2025-01-16T02:39:08.000000Z",
"url": "https://homzen.botble.com/property-category/condo",
"slug": "condo"
},
{
"id": 4,
"name": "House",
"description": null,
"status": {
"value": "published",
"label": "Published"
},
"order": 3,
"is_default": 0,
"parent_id": 0,
"created_at": "2025-01-16T02:39:08.000000Z",
"updated_at": "2025-01-16T02:39:08.000000Z",
"url": "https://homzen.botble.com/property-category/house",
"slug": "house"
},
{
"id": 5,
"name": "Land",
"description": null,
"status": {
"value": "published",
"label": "Published"
},
"order": 4,
"is_default": 0,
"parent_id": 0,
"created_at": "2025-01-16T02:39:08.000000Z",
"updated_at": "2025-01-16T02:39:08.000000Z",
"url": "https://homzen.botble.com/property-category/land",
"slug": "land"
},
{
"id": 6,
"name": "Commercial property",
"description": null,
"status": {
"value": "published",
"label": "Published"
},
"order": 5,
"is_default": 0,
"parent_id": 0,
"created_at": "2025-01-16T02:39:08.000000Z",
"updated_at": "2025-01-16T02:39:08.000000Z",
"url": "https://homzen.botble.com/property-category/commercial-property",
"slug": "commercial-property"
}
],
"error": false,
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get category by slug
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/categories/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/categories/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Category not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List properties
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/properties?page=16&per_page=16&search=architecto&type=architecto&city_id=architecto&state_id=architecto&country_id=16&category_id=architecto&project_id=architecto&min_price=architecto&max_price=architecto&min_square=architecto&max_square=architecto&number_bedroom=16&number_bathroom=16&number_floor=16&features=architecto&facilities=architecto&is_featured=architecto&order=architecto&order_by=architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/properties"
);
const params = {
"page": "16",
"per_page": "16",
"search": "architecto",
"type": "architecto",
"city_id": "architecto",
"state_id": "architecto",
"country_id": "16",
"category_id": "architecto",
"project_id": "architecto",
"min_price": "architecto",
"max_price": "architecto",
"min_square": "architecto",
"max_square": "architecto",
"number_bedroom": "16",
"number_bathroom": "16",
"number_floor": "16",
"features": "architecto",
"facilities": "architecto",
"is_featured": "architecto",
"order": "architecto",
"order_by": "architecto",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"data": [],
"links": {
"first": "https://homzen.botble.com/api/v1/properties?page=1",
"last": "https://homzen.botble.com/api/v1/properties?page=4",
"prev": "https://homzen.botble.com/api/v1/properties?page=15",
"next": null
},
"meta": {
"current_page": 16,
"from": null,
"last_page": 4,
"links": [
{
"url": "https://homzen.botble.com/api/v1/properties?page=15",
"label": "« Previous",
"page": 15,
"active": false
},
{
"url": "https://homzen.botble.com/api/v1/properties?page=1",
"label": "1",
"page": 1,
"active": false
},
{
"url": "https://homzen.botble.com/api/v1/properties?page=2",
"label": "2",
"page": 2,
"active": false
},
{
"url": "https://homzen.botble.com/api/v1/properties?page=3",
"label": "3",
"page": 3,
"active": false
},
{
"url": "https://homzen.botble.com/api/v1/properties?page=4",
"label": "4",
"page": 4,
"active": false
},
{
"url": null,
"label": "Next »",
"page": null,
"active": false
}
],
"path": "https://homzen.botble.com/api/v1/properties",
"per_page": 16,
"to": null,
"total": 61
},
"error": false,
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Search properties
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/properties/search" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"q\": \"architecto\"
}"
const url = new URL(
"https://homzen.botble.com/api/v1/properties/search"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"q": "architecto"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get property filters
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/properties/filters?page=16&per_page=16&search=architecto&type=architecto&city_id=architecto&state_id=architecto&country_id=16&category_id=architecto&project_id=architecto&min_price=architecto&max_price=architecto&min_square=architecto&max_square=architecto&number_bedroom=16&number_bathroom=16&number_floor=16&features=architecto&facilities=architecto&is_featured=architecto&order=architecto&order_by=architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/properties/filters"
);
const params = {
"page": "16",
"per_page": "16",
"search": "architecto",
"type": "architecto",
"city_id": "architecto",
"state_id": "architecto",
"country_id": "16",
"category_id": "architecto",
"project_id": "architecto",
"min_price": "architecto",
"max_price": "architecto",
"min_square": "architecto",
"max_square": "architecto",
"number_bedroom": "16",
"number_bathroom": "16",
"number_floor": "16",
"features": "architecto",
"facilities": "architecto",
"is_featured": "architecto",
"order": "architecto",
"order_by": "architecto",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"data": [],
"links": {
"first": "https://homzen.botble.com/api/v1/properties/filters?page=1",
"last": "https://homzen.botble.com/api/v1/properties/filters?page=4",
"prev": "https://homzen.botble.com/api/v1/properties/filters?page=15",
"next": null
},
"meta": {
"current_page": 16,
"from": null,
"last_page": 4,
"links": [
{
"url": "https://homzen.botble.com/api/v1/properties/filters?page=15",
"label": "« Previous",
"page": 15,
"active": false
},
{
"url": "https://homzen.botble.com/api/v1/properties/filters?page=1",
"label": "1",
"page": 1,
"active": false
},
{
"url": "https://homzen.botble.com/api/v1/properties/filters?page=2",
"label": "2",
"page": 2,
"active": false
},
{
"url": "https://homzen.botble.com/api/v1/properties/filters?page=3",
"label": "3",
"page": 3,
"active": false
},
{
"url": "https://homzen.botble.com/api/v1/properties/filters?page=4",
"label": "4",
"page": 4,
"active": false
},
{
"url": null,
"label": "Next »",
"page": null,
"active": false
}
],
"path": "https://homzen.botble.com/api/v1/properties/filters",
"per_page": 16,
"to": null,
"total": 61
},
"error": false,
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get property by slug
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/properties/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/properties/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Property not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get property by ID
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/properties/id/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/properties/id/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Property not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List projects
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/projects?page=16&per_page=16&search=architecto&city_id=architecto&state_id=architecto&country_id=16&category_id=architecto&investor_id=architecto&min_price=architecto&max_price=architecto&is_featured=architecto&order=architecto&order_by=architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/projects"
);
const params = {
"page": "16",
"per_page": "16",
"search": "architecto",
"city_id": "architecto",
"state_id": "architecto",
"country_id": "16",
"category_id": "architecto",
"investor_id": "architecto",
"min_price": "architecto",
"max_price": "architecto",
"is_featured": "architecto",
"order": "architecto",
"order_by": "architecto",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"data": [],
"links": {
"first": "https://homzen.botble.com/api/v1/projects?page=1",
"last": "https://homzen.botble.com/api/v1/projects?page=2",
"prev": "https://homzen.botble.com/api/v1/projects?page=15",
"next": null
},
"meta": {
"current_page": 16,
"from": null,
"last_page": 2,
"links": [
{
"url": "https://homzen.botble.com/api/v1/projects?page=15",
"label": "« Previous",
"page": 15,
"active": false
},
{
"url": "https://homzen.botble.com/api/v1/projects?page=1",
"label": "1",
"page": 1,
"active": false
},
{
"url": "https://homzen.botble.com/api/v1/projects?page=2",
"label": "2",
"page": 2,
"active": false
},
{
"url": null,
"label": "Next »",
"page": null,
"active": false
}
],
"path": "https://homzen.botble.com/api/v1/projects",
"per_page": 16,
"to": null,
"total": 18
},
"error": false,
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Search projects
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/projects/search" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"q\": \"architecto\"
}"
const url = new URL(
"https://homzen.botble.com/api/v1/projects/search"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"q": "architecto"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get project filters
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/projects/filters?page=16&per_page=16&search=architecto&city_id=architecto&state_id=architecto&country_id=16&category_id=architecto&investor_id=architecto&min_price=architecto&max_price=architecto&is_featured=architecto&order=architecto&order_by=architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/projects/filters"
);
const params = {
"page": "16",
"per_page": "16",
"search": "architecto",
"city_id": "architecto",
"state_id": "architecto",
"country_id": "16",
"category_id": "architecto",
"investor_id": "architecto",
"min_price": "architecto",
"max_price": "architecto",
"is_featured": "architecto",
"order": "architecto",
"order_by": "architecto",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"data": [],
"links": {
"first": "https://homzen.botble.com/api/v1/projects/filters?page=1",
"last": "https://homzen.botble.com/api/v1/projects/filters?page=2",
"prev": "https://homzen.botble.com/api/v1/projects/filters?page=15",
"next": null
},
"meta": {
"current_page": 16,
"from": null,
"last_page": 2,
"links": [
{
"url": "https://homzen.botble.com/api/v1/projects/filters?page=15",
"label": "« Previous",
"page": 15,
"active": false
},
{
"url": "https://homzen.botble.com/api/v1/projects/filters?page=1",
"label": "1",
"page": 1,
"active": false
},
{
"url": "https://homzen.botble.com/api/v1/projects/filters?page=2",
"label": "2",
"page": 2,
"active": false
},
{
"url": null,
"label": "Next »",
"page": null,
"active": false
}
],
"path": "https://homzen.botble.com/api/v1/projects/filters",
"per_page": 16,
"to": null,
"total": 18
},
"error": false,
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get project by slug
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/projects/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/projects/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Project not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get project by ID
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/projects/id/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/projects/id/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Project not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get properties of a project
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/projects/id/16/properties?page=16&per_page=16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/projects/id/16/properties"
);
const params = {
"page": "16",
"per_page": "16",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Project not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get category by ID
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/categories/id/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/categories/id/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Category not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get properties of a category
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/categories/id/16/properties?page=16&per_page=16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/categories/id/16/properties"
);
const params = {
"page": "16",
"per_page": "16",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Category not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List features
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/features?page=16&per_page=16&search=architecto&order=architecto&order_by=architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/features"
);
const params = {
"page": "16",
"per_page": "16",
"search": "architecto",
"order": "architecto",
"order_by": "architecto",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"data": [],
"links": {
"first": "https://homzen.botble.com/api/v1/features?page=1",
"last": "https://homzen.botble.com/api/v1/features?page=1",
"prev": "https://homzen.botble.com/api/v1/features?page=15",
"next": null
},
"meta": {
"current_page": 16,
"from": null,
"last_page": 1,
"links": [
{
"url": "https://homzen.botble.com/api/v1/features?page=15",
"label": "« Previous",
"page": 15,
"active": false
},
{
"url": "https://homzen.botble.com/api/v1/features?page=1",
"label": "1",
"page": 1,
"active": false
},
{
"url": null,
"label": "Next »",
"page": null,
"active": false
}
],
"path": "https://homzen.botble.com/api/v1/features",
"per_page": 16,
"to": null,
"total": 12
},
"error": false,
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get all features (without pagination)
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/features/all?search=architecto&order=architecto&order_by=architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/features/all"
);
const params = {
"search": "architecto",
"order": "architecto",
"order_by": "architecto",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"data": [
{
"id": 1,
"name": "Wifi",
"icon": "ti ti-wifi",
"status": "published",
"created_at": null,
"updated_at": null
},
{
"id": 2,
"name": "Parking",
"icon": "ti ti-parking",
"status": "published",
"created_at": null,
"updated_at": null
},
{
"id": 3,
"name": "Swimming pool",
"icon": "ti ti-pool",
"status": "published",
"created_at": null,
"updated_at": null
},
{
"id": 4,
"name": "Balcony",
"icon": "ti ti-building-skyscraper",
"status": "published",
"created_at": null,
"updated_at": null
},
{
"id": 5,
"name": "Garden",
"icon": "ti ti-trees",
"status": "published",
"created_at": null,
"updated_at": null
},
{
"id": 6,
"name": "Security",
"icon": "ti ti-shield-lock",
"status": "published",
"created_at": null,
"updated_at": null
},
{
"id": 7,
"name": "Fitness center",
"icon": "ti ti-stretching",
"status": "published",
"created_at": null,
"updated_at": null
},
{
"id": 8,
"name": "Air Conditioning",
"icon": "ti ti-air-conditioning",
"status": "published",
"created_at": null,
"updated_at": null
},
{
"id": 9,
"name": "Central Heating",
"icon": "ti ti-thermometer",
"status": "published",
"created_at": null,
"updated_at": null
},
{
"id": 10,
"name": "Laundry Room",
"icon": "ti ti-wash-machine",
"status": "published",
"created_at": null,
"updated_at": null
},
{
"id": 11,
"name": "Pets Allow",
"icon": "ti ti-paw",
"status": "published",
"created_at": null,
"updated_at": null
},
{
"id": 12,
"name": "Spa & Massage",
"icon": "ti ti-bath",
"status": "published",
"created_at": null,
"updated_at": null
}
],
"error": false,
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get feature by ID
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/features/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/features/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Feature not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List facilities
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/facilities?page=16&per_page=16&search=architecto&order=architecto&order_by=architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/facilities"
);
const params = {
"page": "16",
"per_page": "16",
"search": "architecto",
"order": "architecto",
"order_by": "architecto",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"data": [],
"links": {
"first": "https://homzen.botble.com/api/v1/facilities?page=1",
"last": "https://homzen.botble.com/api/v1/facilities?page=1",
"prev": "https://homzen.botble.com/api/v1/facilities?page=15",
"next": null
},
"meta": {
"current_page": 16,
"from": null,
"last_page": 1,
"links": [
{
"url": "https://homzen.botble.com/api/v1/facilities?page=15",
"label": "« Previous",
"page": 15,
"active": false
},
{
"url": "https://homzen.botble.com/api/v1/facilities?page=1",
"label": "1",
"page": 1,
"active": false
},
{
"url": null,
"label": "Next »",
"page": null,
"active": false
}
],
"path": "https://homzen.botble.com/api/v1/facilities",
"per_page": 16,
"to": null,
"total": 11
},
"error": false,
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get all facilities (without pagination)
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/facilities/all?search=architecto&order=architecto&order_by=architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/facilities/all"
);
const params = {
"search": "architecto",
"order": "architecto",
"order_by": "architecto",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"data": [
{
"id": 1,
"name": "Hospital",
"icon": "ti ti-hospital",
"status": {
"value": "published",
"label": "Published"
},
"created_at": null,
"updated_at": null
},
{
"id": 2,
"name": "Super Market",
"icon": "ti ti-shopping-cart",
"status": {
"value": "published",
"label": "Published"
},
"created_at": null,
"updated_at": null
},
{
"id": 3,
"name": "School",
"icon": "ti ti-school",
"status": {
"value": "published",
"label": "Published"
},
"created_at": null,
"updated_at": null
},
{
"id": 4,
"name": "Entertainment",
"icon": "ti ti-movie",
"status": {
"value": "published",
"label": "Published"
},
"created_at": null,
"updated_at": null
},
{
"id": 5,
"name": "Pharmacy",
"icon": "ti ti-pill",
"status": {
"value": "published",
"label": "Published"
},
"created_at": null,
"updated_at": null
},
{
"id": 6,
"name": "Airport",
"icon": "ti ti-plane-departure",
"status": {
"value": "published",
"label": "Published"
},
"created_at": null,
"updated_at": null
},
{
"id": 7,
"name": "Railways",
"icon": "ti ti-train",
"status": {
"value": "published",
"label": "Published"
},
"created_at": null,
"updated_at": null
},
{
"id": 8,
"name": "Bus Stop",
"icon": "ti ti-bus",
"status": {
"value": "published",
"label": "Published"
},
"created_at": null,
"updated_at": null
},
{
"id": 9,
"name": "Beach",
"icon": "ti ti-beach",
"status": {
"value": "published",
"label": "Published"
},
"created_at": null,
"updated_at": null
},
{
"id": 10,
"name": "Mall",
"icon": "ti ti-shopping-cart",
"status": {
"value": "published",
"label": "Published"
},
"created_at": null,
"updated_at": null
},
{
"id": 11,
"name": "Bank",
"icon": "ti ti-building-bank",
"status": {
"value": "published",
"label": "Published"
},
"created_at": null,
"updated_at": null
}
],
"error": false,
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get facility by ID
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/facilities/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/facilities/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Facility not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List agents/accounts
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/agents?page=16&per_page=16&search=architecto&is_featured=architecto&order=architecto&order_by=architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/agents"
);
const params = {
"page": "16",
"per_page": "16",
"search": "architecto",
"is_featured": "architecto",
"order": "architecto",
"order_by": "architecto",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"data": [],
"links": {
"first": "https://homzen.botble.com/api/v1/agents?page=1",
"last": "https://homzen.botble.com/api/v1/agents?page=1",
"prev": "https://homzen.botble.com/api/v1/agents?page=15",
"next": null
},
"meta": {
"current_page": 16,
"from": null,
"last_page": 1,
"links": [
{
"url": "https://homzen.botble.com/api/v1/agents?page=15",
"label": "« Previous",
"page": 15,
"active": false
},
{
"url": "https://homzen.botble.com/api/v1/agents?page=1",
"label": "1",
"page": 1,
"active": false
},
{
"url": null,
"label": "Next »",
"page": null,
"active": false
}
],
"path": "https://homzen.botble.com/api/v1/agents",
"per_page": 16,
"to": null,
"total": 5
},
"error": false,
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get account by ID
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/agents/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/agents/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Account not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get properties of an account
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/agents/16/properties?page=16&per_page=16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/agents/16/properties"
);
const params = {
"page": "16",
"per_page": "16",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Account not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get projects of an account
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/agents/16/projects?page=16&per_page=16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/agents/16/projects"
);
const params = {
"page": "16",
"per_page": "16",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Account not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List reviews for a property
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/properties/16/reviews?page=16&per_page=16&order=architecto&order_by=architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/properties/16/reviews"
);
const params = {
"page": "16",
"per_page": "16",
"order": "architecto",
"order_by": "architecto",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Property not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get review by ID
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/reviews/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/reviews/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Review not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Send consultation request
Example request:
curl --request POST \
"https://homzen.botble.com/api/v1/consults" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"John Doe\",
\"email\": \"[email protected]\",
\"phone\": \"+1234567890\",
\"content\": \"I\'m interested in this property.\",
\"consult_custom_fields\": [
\"architecto\"
],
\"type\": \"property\",
\"data_id\": 1
}"
const url = new URL(
"https://homzen.botble.com/api/v1/consults"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "John Doe",
"email": "[email protected]",
"phone": "+1234567890",
"content": "I'm interested in this property.",
"consult_custom_fields": [
"architecto"
],
"type": "property",
"data_id": 1
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get consultation custom fields
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/consults/custom-fields" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/consults/custom-fields"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"data": [
{
"id": 1,
"name": "Schedule a Tour (optional)",
"type": "date",
"options": []
}
],
"error": false,
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get account profile
requires authentication
Example request:
curl --request GET \
--get "https://homzen.botble.com/api/v1/account/profile" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/account/profile"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create a review for a property
requires authentication
Example request:
curl --request POST \
"https://homzen.botble.com/api/v1/properties/16/reviews" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"reviewable_type\": \"Botble\\\\RealEstate\\\\Models\\\\Property\",
\"star\": 5,
\"content\": \"This is an excellent property with great amenities.\",
\"comment\": \"Great property!\"
}"
const url = new URL(
"https://homzen.botble.com/api/v1/properties/16/reviews"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"reviewable_type": "Botble\\RealEstate\\Models\\Property",
"star": 5,
"content": "This is an excellent property with great amenities.",
"comment": "Great property!"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update a review
requires authentication
Example request:
curl --request PUT \
"https://homzen.botble.com/api/v1/reviews/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"reviewable_type\": \"Botble\\\\RealEstate\\\\Models\\\\Property\",
\"star\": 5,
\"content\": \"This is an excellent property with great amenities.\",
\"comment\": \"Updated review!\"
}"
const url = new URL(
"https://homzen.botble.com/api/v1/reviews/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"reviewable_type": "Botble\\RealEstate\\Models\\Property",
"star": 5,
"content": "This is an excellent property with great amenities.",
"comment": "Updated review!"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete a review
requires authentication
Example request:
curl --request DELETE \
"https://homzen.botble.com/api/v1/reviews/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://homzen.botble.com/api/v1/reviews/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Social Login
Apple login
Example request:
curl --request POST \
"https://homzen.botble.com/api/v1/auth/apple" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"identityToken\": \"architecto\",
\"guard\": \"architecto\"
}"
const url = new URL(
"https://homzen.botble.com/api/v1/auth/apple"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"identityToken": "architecto",
"guard": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"error": false,
"data": {
"token": "1|abc123def456...",
"user": {
"id": 1,
"name": "John Doe",
"email": "[email protected]"
}
},
"message": "Login successful"
}
Example response (400):
{
"error": true,
"message": "Invalid Apple token"
}
Example response (400):
{
"error": true,
"message": "Cannot login, no email or Apple ID provided!"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Google login
Example request:
curl --request POST \
"https://homzen.botble.com/api/v1/auth/google" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"identityToken\": \"architecto\",
\"guard\": \"architecto\"
}"
const url = new URL(
"https://homzen.botble.com/api/v1/auth/google"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"identityToken": "architecto",
"guard": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"error": false,
"data": {
"token": "1|abc123def456...",
"user": {
"id": 1,
"name": "John Doe",
"email": "[email protected]"
}
},
"message": "Login successful"
}
Example response (400):
{
"error": true,
"message": "Invalid Google token"
}
Example response (400):
{
"error": true,
"message": "Google authentication is not properly configured"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Facebook login
Example request:
curl --request POST \
"https://homzen.botble.com/api/v1/auth/facebook" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"accessToken\": \"architecto\",
\"guard\": \"architecto\"
}"
const url = new URL(
"https://homzen.botble.com/api/v1/auth/facebook"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"accessToken": "architecto",
"guard": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"error": false,
"data": {
"token": "1|abc123def456...",
"user": {
"id": 1,
"name": "John Doe",
"email": "[email protected]"
}
},
"message": "Login successful"
}
Example response (400):
{
"error": true,
"message": "Invalid Facebook token"
}
Example response (400):
{
"error": true,
"message": "Facebook authentication is not properly configured"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
X (Twitter) login
Example request:
curl --request POST \
"https://homzen.botble.com/api/v1/auth/x" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"accessToken\": \"architecto\",
\"guard\": \"architecto\"
}"
const url = new URL(
"https://homzen.botble.com/api/v1/auth/x"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"accessToken": "architecto",
"guard": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"error": false,
"data": {
"token": "1|abc123def456...",
"user": {
"id": 1,
"name": "John Doe",
"email": "[email protected]"
}
},
"message": "Login successful"
}
Example response (400):
{
"error": true,
"message": "Invalid X (Twitter) token"
}
Example response (400):
{
"error": true,
"message": "X (Twitter) authentication is not properly configured"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.