Read the viewing agenda
curl --request GET \
--url https://staging.housera.ro/api/v1/account/listings/{code}/viewings \
--header 'Authorization: Bearer <token>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.housera.ro/api/v1/account/listings/{code}/viewings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://staging.housera.ro/api/v1/account/listings/{code}/viewings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://staging.housera.ro/api/v1/account/listings/{code}/viewings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"code": "<string>",
"duration_min": 123,
"confirmation": "<string>",
"timezone": "<string>",
"schedule_mode": "<string>",
"slots": [
{
"id": 123,
"kind": "<string>",
"starts_at": "<string>",
"ends_at": "<string>",
"status": "<string>",
"request_expires_at": "<string>",
"visitor": {
"name": "<string>",
"email": "<string>",
"phone": "<string>"
},
"open_house": {
"note": "<string>",
"rsvp": true,
"capacity": 123,
"going": 123,
"arrived": 123,
"savers_notified": true,
"savers_to_notify": 123,
"running": true
},
"source": "<string>",
"duration_min": 123,
"held": true,
"bookable": true,
"booked_at": "<string>",
"proposed_starts_at": "<string>",
"attendance_confirmed_at": "<string>",
"reminded_day_at": "<string>",
"reminded_soon_at": "<string>",
"outcome": "<string>",
"outcome_at": "<string>",
"agent": {
"name": "<string>",
"email": "<string>"
},
"place": "<string>",
"place_rooms": 123,
"seat": 123
}
]
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}Viewings
Read the viewing agenda
The listing’s viewing settings, plus the viewing times and open house windows that have not passed yet, each with its status. The visitor’s details come only for a key with the leads:read permission.
GET
/
account
/
listings
/
{code}
/
viewings
Read the viewing agenda
curl --request GET \
--url https://staging.housera.ro/api/v1/account/listings/{code}/viewings \
--header 'Authorization: Bearer <token>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.housera.ro/api/v1/account/listings/{code}/viewings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://staging.housera.ro/api/v1/account/listings/{code}/viewings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://staging.housera.ro/api/v1/account/listings/{code}/viewings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"code": "<string>",
"duration_min": 123,
"confirmation": "<string>",
"timezone": "<string>",
"schedule_mode": "<string>",
"slots": [
{
"id": 123,
"kind": "<string>",
"starts_at": "<string>",
"ends_at": "<string>",
"status": "<string>",
"request_expires_at": "<string>",
"visitor": {
"name": "<string>",
"email": "<string>",
"phone": "<string>"
},
"open_house": {
"note": "<string>",
"rsvp": true,
"capacity": 123,
"going": 123,
"arrived": 123,
"savers_notified": true,
"savers_to_notify": 123,
"running": true
},
"source": "<string>",
"duration_min": 123,
"held": true,
"bookable": true,
"booked_at": "<string>",
"proposed_starts_at": "<string>",
"attendance_confirmed_at": "<string>",
"reminded_day_at": "<string>",
"reminded_soon_at": "<string>",
"outcome": "<string>",
"outcome_at": "<string>",
"agent": {
"name": "<string>",
"email": "<string>"
},
"place": "<string>",
"place_rooms": 123,
"seat": 123
}
]
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}Path Parameters
Query Parameters
The response language, ro or en. It changes error messages (title, detail), labels and, when the listing has an approved translation in that language, its title and description. Codes are the same in every language. It takes precedence over Accept-Language and over the account's language.
Available options:
ro, en