List project features and amenities
const url = 'https://agent-dev.azizdubai.com/project-preferences?type=1';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://agent-dev.azizdubai.com/project-preferences?type=1' \ --header 'X-API-Key: <X-API-Key>'Grouped into two sections: features (type=1) and amenities (type=2).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Restrict the result to one section.
Responses
Section titled “Responses”The catalogue, grouped by section.
object
The shape depends on the operation.
object
object
1 — feature, 2 — amenity.
object
1 — feature, 2 — amenity.
Example
{ "status": "success", "data": { "features": [ { "name": "Infinity Pool", "type": 1 } ], "amenities": [ { "name": "Infinity Pool", "type": 1 } ] }}A parameter or the request body failed validation.
object
Human-readable message.
Examples
{ "status": "error", "message": "id must be a positive integer"}The key is missing (missing api key) or invalid (invalid api key).
The latter covers unknown, revoked and deleted keys. Every operation
requires a key, so any request without one receives this response.
object
Human-readable message.
Examples
{ "status": "error", "message": "invalid api key"}The key is valid, but it is restricted to a list of domains and the
request’s Origin (or Referer) does not match any of them; or the
key’s agency has no approved licence.
object
Human-readable message.
Examples
{ "status": "error", "message": "origin is not allowed for this api key"}{ "status": "error", "message": "agency license is required: upload a company license and wait for its approval"}An unexpected error. The cause is logged; a generic message is returned.
object
Human-readable message.
Examples
{ "status": "error", "message": "internal server error"}