For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get Rooms

List all the available rooms in english and french

Endpoint

GET https://europe-west1-gepettoai.cloudfunctions.net/v1/rooms

Headers

Name
Type
Description

Authorization*

String

Bearer {{API_KEY}}

[
  {
    "id": "living_room",
    "name": "Salon / Pièce à vivre",
    "name-en": "Living room",
    "type": "home"
  },
  ...
]

Code Examples

curl --location 'https://europe-west1-gepettoai.cloudfunctions.net/v1/rooms' \
--header 'Authorization: Bearer {{API_KEY}}' \
--header 'Content-Type: application/json'
var myHeaders = new Headers();
myHeaders.append("Authorization", "Bearer {{API_KEY}}");
myHeaders.append("Content-Type", "application/json");

var requestOptions = {
  method: 'GET',
  headers: myHeaders
};

const response = await fetch("https://europe-west1-gepettoai.cloudfunctions.net/v1/rooms", requestOptions)
const body = await reponse.json();
console.log(body)
import requests
import json

url = "https://europe-west1-gepettoai.cloudfunctions.net/v1/rooms"

payload = {}
headers = {
  'Authorization': 'Bearer {{API_KEY}}',
  'Content-Type': 'application/json'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)

Last updated