Add Stay To Trip
curl --request POST \
--url https://stardrift.ai/api/v1/trips/{trip_id}/stays \
--header 'Content-Type: application/json' \
--data '
{
"address": "<string>",
"place_id": "<string>",
"name": "<string>",
"check_in_date": "2023-12-25",
"check_out_date": "2023-12-25",
"check_in_time": "<string>",
"check_out_time": "<string>",
"total_price": 123,
"currency": "USD",
"confirmation_number": "<string>"
}
'import requests
url = "https://stardrift.ai/api/v1/trips/{trip_id}/stays"
payload = {
"address": "<string>",
"place_id": "<string>",
"name": "<string>",
"check_in_date": "2023-12-25",
"check_out_date": "2023-12-25",
"check_in_time": "<string>",
"check_out_time": "<string>",
"total_price": 123,
"currency": "USD",
"confirmation_number": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
address: '<string>',
place_id: '<string>',
name: '<string>',
check_in_date: '2023-12-25',
check_out_date: '2023-12-25',
check_in_time: '<string>',
check_out_time: '<string>',
total_price: 123,
currency: 'USD',
confirmation_number: '<string>'
})
};
fetch('https://stardrift.ai/api/v1/trips/{trip_id}/stays', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://stardrift.ai/api/v1/trips/{trip_id}/stays",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'address' => '<string>',
'place_id' => '<string>',
'name' => '<string>',
'check_in_date' => '2023-12-25',
'check_out_date' => '2023-12-25',
'check_in_time' => '<string>',
'check_out_time' => '<string>',
'total_price' => 123,
'currency' => 'USD',
'confirmation_number' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://stardrift.ai/api/v1/trips/{trip_id}/stays"
payload := strings.NewReader("{\n \"address\": \"<string>\",\n \"place_id\": \"<string>\",\n \"name\": \"<string>\",\n \"check_in_date\": \"2023-12-25\",\n \"check_out_date\": \"2023-12-25\",\n \"check_in_time\": \"<string>\",\n \"check_out_time\": \"<string>\",\n \"total_price\": 123,\n \"currency\": \"USD\",\n \"confirmation_number\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://stardrift.ai/api/v1/trips/{trip_id}/stays")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"<string>\",\n \"place_id\": \"<string>\",\n \"name\": \"<string>\",\n \"check_in_date\": \"2023-12-25\",\n \"check_out_date\": \"2023-12-25\",\n \"check_in_time\": \"<string>\",\n \"check_out_time\": \"<string>\",\n \"total_price\": 123,\n \"currency\": \"USD\",\n \"confirmation_number\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://stardrift.ai/api/v1/trips/{trip_id}/stays")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"address\": \"<string>\",\n \"place_id\": \"<string>\",\n \"name\": \"<string>\",\n \"check_in_date\": \"2023-12-25\",\n \"check_out_date\": \"2023-12-25\",\n \"check_in_time\": \"<string>\",\n \"check_out_time\": \"<string>\",\n \"total_price\": 123,\n \"currency\": \"USD\",\n \"confirmation_number\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"stay_id": "<string>",
"hotel": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}mcp-server
Add Stay To Trip
Record a booked stay — it lands in Bookings, not as a place card.
A hotel added through add_place_to_guide becomes an attraction: no dates, no
confirmation number, and it never appears alongside the flights and other
reservations. This is the same add_stay the in-app Add-stay flow calls, so
the stay is geocoded, canonical-stamped, date-synced and enqueued for
enrichment identically — only the authentication differs.
POST
/
v1
/
trips
/
{trip_id}
/
stays
Add Stay To Trip
curl --request POST \
--url https://stardrift.ai/api/v1/trips/{trip_id}/stays \
--header 'Content-Type: application/json' \
--data '
{
"address": "<string>",
"place_id": "<string>",
"name": "<string>",
"check_in_date": "2023-12-25",
"check_out_date": "2023-12-25",
"check_in_time": "<string>",
"check_out_time": "<string>",
"total_price": 123,
"currency": "USD",
"confirmation_number": "<string>"
}
'import requests
url = "https://stardrift.ai/api/v1/trips/{trip_id}/stays"
payload = {
"address": "<string>",
"place_id": "<string>",
"name": "<string>",
"check_in_date": "2023-12-25",
"check_out_date": "2023-12-25",
"check_in_time": "<string>",
"check_out_time": "<string>",
"total_price": 123,
"currency": "USD",
"confirmation_number": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
address: '<string>',
place_id: '<string>',
name: '<string>',
check_in_date: '2023-12-25',
check_out_date: '2023-12-25',
check_in_time: '<string>',
check_out_time: '<string>',
total_price: 123,
currency: 'USD',
confirmation_number: '<string>'
})
};
fetch('https://stardrift.ai/api/v1/trips/{trip_id}/stays', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://stardrift.ai/api/v1/trips/{trip_id}/stays",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'address' => '<string>',
'place_id' => '<string>',
'name' => '<string>',
'check_in_date' => '2023-12-25',
'check_out_date' => '2023-12-25',
'check_in_time' => '<string>',
'check_out_time' => '<string>',
'total_price' => 123,
'currency' => 'USD',
'confirmation_number' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://stardrift.ai/api/v1/trips/{trip_id}/stays"
payload := strings.NewReader("{\n \"address\": \"<string>\",\n \"place_id\": \"<string>\",\n \"name\": \"<string>\",\n \"check_in_date\": \"2023-12-25\",\n \"check_out_date\": \"2023-12-25\",\n \"check_in_time\": \"<string>\",\n \"check_out_time\": \"<string>\",\n \"total_price\": 123,\n \"currency\": \"USD\",\n \"confirmation_number\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://stardrift.ai/api/v1/trips/{trip_id}/stays")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"<string>\",\n \"place_id\": \"<string>\",\n \"name\": \"<string>\",\n \"check_in_date\": \"2023-12-25\",\n \"check_out_date\": \"2023-12-25\",\n \"check_in_time\": \"<string>\",\n \"check_out_time\": \"<string>\",\n \"total_price\": 123,\n \"currency\": \"USD\",\n \"confirmation_number\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://stardrift.ai/api/v1/trips/{trip_id}/stays")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"address\": \"<string>\",\n \"place_id\": \"<string>\",\n \"name\": \"<string>\",\n \"check_in_date\": \"2023-12-25\",\n \"check_out_date\": \"2023-12-25\",\n \"check_in_time\": \"<string>\",\n \"check_out_time\": \"<string>\",\n \"total_price\": 123,\n \"currency\": \"USD\",\n \"confirmation_number\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"stay_id": "<string>",
"hotel": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Path Parameters
Body
application/json
