# Stardrift

> Read trips and bookings and manage itineraries and saved places.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/stardrift

## Actions

### Add Day Note

Add Day Note

**Inputs**

- Day number (`day_number`, number, required): Day number. At least 1.
- Trip (`trip_id`, text, required): Trip id.
- Content (`content`, text, required): Content.
- Time (`time`, time): Time.

**Outputs**

- `data` (object): The response from Stardrift.

**Example output**

```json
{
  "data": {}
}
```

### Add Event To Trip

Record something scheduled that isn't a booking. a wedding, a concert. add_place_to_guide would make it an attraction, which is what a place the user might visit is, not something happening at a time they are expected at. An event carries its own start and end, and its venue is geocoded to a pin when one resolves. This is the same `add_event` the in-app Add-event flow calls; only the authentication differs.

**Inputs**

- Trip (`trip_id`, text, required): Trip id.
- Name (`name`, text, required): Name.
- Start datetime (`start_datetime`, date and time): Start datetime.
- End datetime (`end_datetime`, date and time): End datetime.
- Venue name (`venue_name`, text): Venue name.
- Address (`address`, text): Address.
- Place ID (`place_id`, text): Place id.
- Category (`category`, text): Category.
- Description (`description`, text): Description.
- City (`city`, text): City.
- Total price (`total_price`, number): Total price.
- Currency (`currency`, text): Currency. Default: `USD`.
- Confirmation number (`confirmation_number`, text): Confirmation number.

**Outputs**

- `data` (object): The response from Stardrift.

**Example output**

```json
{
  "data": {
    "activity": {},
    "activity_id": "sample_activity_id",
    "warnings": [
      "Example"
    ]
  }
}
```

### Add Place

Add Place

**Inputs**

- Trip (`trip_id`, text, required): Trip id.
- Day number (`day_number`, number, required): Day number. At least 1.0.
- Name (`name`, text, required): Name.
- Search query (`search_query`, text): Search query.
- Time (`time`, time): Time.
- Note (`note`, text): Note.

**Outputs**

- `data` (object): The response from Stardrift.

**Example output**

```json
{
  "data": {
    "entry_id": "sample_entry_id",
    "item_id": "sample_item_id",
    "latitude": 1,
    "longitude": 1,
    "name": "Example",
    "plan_version": 1,
    "rating": 1
  }
}
```

### 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.

**Inputs**

- Trip (`trip_id`, text, required): Trip id.
- Address (`address`, text, required): Address.
- Place ID (`place_id`, text): Place id.
- Name (`name`, text): Name.
- Check in date (`check_in_date`, date): Check in date.
- Check out date (`check_out_date`, date): Check out date.
- Check in time (`check_in_time`, time): Check in time.
- Check out time (`check_out_time`, time): Check out time.
- Total price (`total_price`, number): Total price.
- Currency (`currency`, text): Currency. Default: `USD`.
- Confirmation number (`confirmation_number`, text): Confirmation number.

**Outputs**

- `data` (object): The response from Stardrift.

**Example output**

```json
{
  "data": {
    "hotel": {},
    "stay_id": "sample_stay_id"
  }
}
```

### Create List

Create List

**Inputs**

- Title (`title`, text, required): Title.
- Source (`source`, text): Source. One of: `manual`, `chat`, `tiktok`, `ig`, `shared`. Default: `manual`.
- Source URL (`source_url`, text): Source url.
- City (`city`, text): City.
- Cover image URL (`cover_image_url`, text): Cover image url.
- Intro (`intro`, text): Intro.
- Visibility (`visibility`, text): Visibility. One of: `public`, `private`.

**Outputs**

- `data` (object): The response from Stardrift.

**Example output**

```json
{
  "data": {
    "city": "Example",
    "cover_image_url": "Example",
    "created_at": "Example",
    "failed_reason": "Example",
    "id": "00000000-0000-4000-8000-000000000001",
    "intro": "Example",
    "is_shared": false,
    "item_count": 1,
    "public_url": "Example",
    "routes": [
      {
        "activity": "Example",
        "ascent_m": 1,
        "chains": [
          "Example"
        ],
        "claimed_ascent_m": 1,
        "claimed_length_km": 1,
        "descent_m": 1,
        "id": "00000000-0000-4000-8000-000000000001",
        "length_m": 1,
        "list_id": "00000000-0000-4000-8000-000000000001",
        "max_elev_m": 1,
        "min_elev_m": 1,
        "name": "Example",
        "osm_name": "Example",
        "place_item_id": "00000000-0000-4000-8000-000000000001",
        "profile": {},
        "status": "Example",
        "tag_lengths": {}
      }
    ],
    "sections": [
      {
        "blurb": "Example",
        "id": "sample_id",
        "item_ids": [
          "00000000-0000-4000-8000-000000000001"
        ],
        "title": "Example"
      }
    ],
    "slug": "Example",
    "source": "Example",
    "source_author": "Example",
    "source_url": "Example",
    "status": "Example",
    "title": "Example",
    "updated_at": "Example",
    "visibility": "public"
  }
}
```

### Create Section

Create Section

**Inputs**

- List (`list_id`, text, required): List id.
- X client ID (`x_client_id`, text): X-client-id.
- Title (`title`, text, required): Title.
- Blurb (`blurb`, text): Blurb.
- Item IDS (`item_ids`, list): Item ids.

**Outputs**

- `data` (object): `item_ids` is both membership and display order; stale ids drop on read.

**Example output**

```json
{
  "data": {
    "blurb": "Example",
    "id": "sample_id",
    "item_ids": [
      "00000000-0000-4000-8000-000000000001"
    ],
    "title": "Example"
  }
}
```

### Create Trip

Create a new draft trip with `num_days` blank days, ready for add_place/add_day_note. Mirrors the in-app create path: a Trip plus its primary conversation link, then an empty plan. Returns the trip summary, including the new trip_id.

**Inputs**

- Title (`title`, text, required): Title.
- Num days (`num_days`, number): Num days. From 1.0 to 60.0. Default: `1`.

**Outputs**

- `data` (object): The response from Stardrift.

**Example output**

```json
{
  "data": {
    "end_date": "2026-11-30",
    "id": "00000000-0000-4000-8000-000000000001",
    "is_published": false,
    "slug": "Example",
    "start_date": "2026-11-30",
    "title": "Example",
    "updated_at": "2026-11-30T12:00:00Z",
    "visibility": "Example"
  }
}
```

### Get List Contents

Get List Contents

**Inputs**

- List (`list_id`, text, required): List id.
- Offset (`offset`, number): Offset. At least 0. Default: `0`.
- Limit (`limit`, number): Limit. From 1 to 200. Default: `100`.

**Outputs**

- `data` (object): The response from Stardrift.

**Example output**

```json
{
  "data": {
    "items": [
      {
        "caption": "Example",
        "category": "Example",
        "city": "Example",
        "country": "Example",
        "created_at": "Example",
        "description": "Example",
        "id": "00000000-0000-4000-8000-000000000001",
        "image_thumbhash": "Example",
        "image_url": "Example",
        "is_shared": false,
        "lat": 1,
        "list_id": "00000000-0000-4000-8000-000000000001",
        "lng": 1,
        "michelin": {
          "cuisine": "Example",
          "green_star": false,
          "stars": 1,
          "tier": "stars",
          "url": "Example"
        },
        "name": "Example",
        "num_reviews": 1,
        "place_id": "sample_place_id",
        "place_ref": "Example",
        "rating": 1,
        "review_state": "Example",
        "source": "Example",
        "source_url": "Example",
        "state": "Example",
        "tabelog_tier": 1
      }
    ],
    "list": {
      "city": "Example",
      "cover_image_url": "Example",
      "created_at": "Example",
      "failed_reason": "Example",
      "id": "00000000-0000-4000-8000-000000000001",
      "intro": "Example",
      "is_shared": false,
      "item_count": 1,
      "public_url": "Example",
      "routes": [
        {
          "activity": "Example",
          "ascent_m": 1,
          "chains": [
            "Example"
          ],
          "claimed_ascent_m": 1,
          "claimed_length_km": 1,
          "descent_m": 1,
          "id": "00000000-0000-4000-8000-000000000001",
          "length_m": 1,
          "list_id": "00000000-0000-4000-8000-000000000001",
          "max_elev_m": 1,
          "min_elev_m": 1,
          "name": "Example",
          "osm_name": "Example",
          "place_item_id": "00000000-0000-4000-8000-000000000001",
          "profile": {},
          "status": "Example",
          "tag_lengths": {}
        }
      ],
      "sections": [
        {
          "blurb": "Example",
          "id": "sample_id",
          "item_ids": [
            "sample_item_ids"
          ],
          "title": "Example"
        }
      ],
      "slug": "Example",
      "source": "Example",
      "source_author": "Example",
      "source_url": "Example",
      "status": "Example",
      "title": "Example",
      "updated_at": "Example",
      "visibility": "public"
    },
    "next_offset": 1
  }
}
```

### Get Plan

Get Plan

**Inputs**

- Trip (`trip_id`, text, required): Trip id.
- Include booking links (`include_booking_links`, true/false): Include booking links. Default: `false`.

**Outputs**

- `data` (object): The response from Stardrift.

**Example output**

```json
{
  "data": {
    "activities": {},
    "days": [
      {}
    ],
    "journeys": {},
    "plan_version": 1,
    "stays": {},
    "title": "Example",
    "trip_id": "00000000-0000-4000-8000-000000000001"
  }
}
```

### List Bookings

The user's bookings. imported from email (Gmail scan, forwarded confirmations, in-chat paste) and sold first-party. in the exact shape the in-app Bookings page renders, so a flight comes back with its card_data and its editable ExtractedFlight.

**Inputs**

- Booking type (`booking_type`, text): Booking type. One of: `flight`, `hotel`, `rail`, `road`, `car_rental` (Car rental), `event`.
- Trip (`trip_id`, text): Trip id.
- From date (`from_date`, date): From date.

**Outputs**

- `data` (object): The response from Stardrift.

**Example output**

```json
{
  "data": {
    "bookings": [
      {
        "booking_type": "Example",
        "card_data": {
          "__index": 1,
          "__tool_call_id": "sample___tool_call_id",
          "adults": 1,
          "award_details": {},
          "booking_links": [
            {}
          ],
          "booking_links_status": "Example",
          "booking_token": "Example",
          "cabin_class": "Example",
          "cash_details": {},
          "children": 1,
          "confirmation_number": "Example",
          "departure_token": "Example",
          "is_booked": false,
          "is_user_import": false,
          "journeys": [
            {}
          ],
          "message_id": "sample_message_id",
          "return_date": "Example",
          "travellers": [
            {}
          ],
          "type": "one-way",
          "user_edited": false
        },
        "confirmation_number": "Example",
        "created_at": "Example",
        "edit_data": {
          "award": {},
          "booking_reference": "Example",
          "carry_on_bags": 1,
          "check_in_url": "Example",
          "checked_bags": 1,
          "children": 1,
          "confirmation_number": "Example",
          "currency": "Example",
          "eticket_number": "Example",
          "fare_class": "Example",
          "infants": 1,
          "oag_enriched_at": "Example",
          "outbound_segments": [
            {}
          ],
          "passenger_count": 1,
          "passenger_names": [
            "Example"
          ],
          "price": 1,
          "return_segments": [
            {}
          ],
          "type": "one-way"
        },
        "event_date": "Example",
        "gmail_link": "Example",
        "id": "sample_id",
        "import_kind": "email",
        "import_link": "Example",
        "import_sources": [
          {}
        ],
        "review": {
          "nudge": false,
          "question": "which_trip",
          "travelers": [
            "Example"
          ]
        },
        "source": "email_import",
        "status": "active",
        "travellers": [
          {}
        ],
        "trip_id": "sample_trip_id",
        "trip_title": "Example"
      }
    ]
  }
}
```

### List Lists

List Lists

**Inputs**: None.

**Outputs**

- `data` (list): The response from Stardrift.

**Example output**

```json
{
  "data": [
    {
      "city": "Example",
      "cover_image_url": "Example",
      "created_at": "Example",
      "failed_reason": "Example",
      "id": "00000000-0000-4000-8000-000000000001",
      "intro": "Example",
      "is_shared": false,
      "item_count": 1,
      "public_url": "Example",
      "routes": [
        {
          "activity": "Example",
          "ascent_m": 1,
          "chains": [
            "Example"
          ],
          "claimed_ascent_m": 1,
          "claimed_length_km": 1,
          "descent_m": 1,
          "id": "00000000-0000-4000-8000-000000000001",
          "length_m": 1,
          "list_id": "00000000-0000-4000-8000-000000000001",
          "max_elev_m": 1,
          "min_elev_m": 1,
          "name": "Example",
          "osm_name": "Example",
          "place_item_id": "00000000-0000-4000-8000-000000000001",
          "profile": {},
          "status": "Example",
          "tag_lengths": {}
        }
      ],
      "sections": [
        {
          "blurb": "Example",
          "id": "sample_id",
          "item_ids": [
            "sample_item_ids"
          ],
          "title": "Example"
        }
      ],
      "slug": "Example",
      "source": "Example",
      "source_author": "Example",
      "source_url": "Example",
      "status": "Example",
      "title": "Example",
      "updated_at": "Example",
      "visibility": "public"
    }
  ]
}
```

### List Trips

List Trips

**Inputs**: None.

**Outputs**

- `data` (list): The response from Stardrift.

**Example output**

```json
{
  "data": [
    {
      "end_date": "2026-11-30",
      "id": "00000000-0000-4000-8000-000000000001",
      "is_published": false,
      "slug": "Example",
      "start_date": "2026-11-30",
      "title": "Example",
      "updated_at": "2026-11-30T12:00:00Z",
      "visibility": "Example"
    }
  ]
}
```

### Move Entry

Move a place or note without resolving its place again.

**Inputs**

- Entry ID (`entry_id`, text, required): Entry id.
- Day number (`day_number`, number, required): Day number. At least 1.
- Trip (`trip_id`, text, required): Trip id.
- To day number (`to_day_number`, number, required): To day number. At least 1.0.

**Outputs**

- `data` (object): The response from Stardrift.

**Example output**

```json
{
  "data": {
    "entry_id": "sample_entry_id",
    "plan_version": 1
  }
}
```

### Place Autocomplete

Google Places autocomplete powering the Saved "Add a place" search.

**Inputs**

- Query (`query`, text, required): Query.
- Lat (`lat`, number): Lat.
- Lng (`lng`, number): Lng.

**Outputs**

- `data` (list): The response from Stardrift.

**Example output**

```json
{
  "data": [
    {
      "address": "Example",
      "name": "Example",
      "place_id": "sample_place_id",
      "types": [
        "Example"
      ]
    }
  ]
}
```

### Search Flights

Search Flights

**Inputs**

- Adults (`adults`, number): Adults. From 1.0 to 9.0. Default: `1`.
- Currency (`currency`, text): Currency. One of: `ALL`, `DZD`, `ARS`, `AMD`, `AWG`, `AUD`, `AZN`, `BSD`, `BHD`, `BYN`, and 61 more. Default: `USD`.
- Legs (`legs`, list, required): Legs.
- Trip type (`trip_type`, text): Trip type. One of: `one_way` (One way), `roundtrip`, `multi_city` (Multi city). Default: `one_way`.
- Children (`children`, number): Children. From 0.0 to 8.0. Default: `0`.
- Travel class (`travel_class`, text): Travel class. One of: `economy`, `premium_economy` (Premium economy), `business`, `first`. Default: `economy`.
- Max price (`max_price`, number): Max price. At least 0.0.
- Max stops (`max_stops`, number): Max stops. From 0.0 to 2.0.

**Outputs**

- `data` (object): The response from Stardrift.

**Example output**

```json
{
  "data": {}
}
```

### Search Hotels

Search Hotels

**Inputs**

- Adults (`adults`, number): Adults. From 1.0 to 9.0. Default: `1`.
- Currency (`currency`, text): Currency. One of: `ALL`, `DZD`, `ARS`, `AMD`, `AWG`, `AUD`, `AZN`, `BSD`, `BHD`, `BYN`, and 61 more. Default: `USD`.
- Query (`query`, text, required): Query.
- Check in date (`check_in_date`, date, required): Check in date.
- Check out date (`check_out_date`, date, required): Check out date.
- Children ages (`children_ages`, list): Children ages.
- Guest nationality (`guest_nationality`, text): Guest nationality. Default: `US`.
- Min price (`min_price`, number): Min price. At least 0.0.
- Max price (`max_price`, number): Max price. At least 0.0.
- Sort by (`sort_by`, text): Sort by. One of: `lowest_price` (Lowest price), `highest_rating` (Highest rating), `most_reviews` (Most reviews). Default: `highest_rating`.

**Outputs**

- `data` (object): The response from Stardrift.

**Example output**

```json
{
  "data": {}
}
```

### Update Entry

Correct a place annotation, note text, or local time in place. Omitted fields are preserved; null clears note/time. Changing a time also reorders the entry because a plan is an ordered document.

**Inputs**

- Entry ID (`entry_id`, text, required): Entry id.
- Day number (`day_number`, number, required): Day number. At least 1.
- Trip (`trip_id`, text, required): Trip id.
- Note (`note`, text): Note.
- Time (`time`, time): Time.
- Content (`content`, text): Content.

**Outputs**

- `data` (object): The response from Stardrift.

**Example output**

```json
{
  "data": {
    "entry_id": "sample_entry_id",
    "plan_version": 1
  }
}
```

### Update List

Update List

**Inputs**

- List (`list_id`, text, required): List id.
- Title (`title`, text): Title.
- City (`city`, text): City.
- Cover image URL (`cover_image_url`, text): Cover image url.
- Source author (`source_author`, text): Source author.
- Visibility (`visibility`, text): Visibility. One of: `public`, `private`.
- Intro (`intro`, text): Intro.

**Outputs**

- `data` (object): The response from Stardrift.

**Example output**

```json
{
  "data": {
    "city": "Example",
    "cover_image_url": "Example",
    "created_at": "Example",
    "failed_reason": "Example",
    "id": "00000000-0000-4000-8000-000000000001",
    "intro": "Example",
    "is_shared": false,
    "item_count": 1,
    "public_url": "Example",
    "routes": [
      {
        "activity": "Example",
        "ascent_m": 1,
        "chains": [
          "Example"
        ],
        "claimed_ascent_m": 1,
        "claimed_length_km": 1,
        "descent_m": 1,
        "id": "00000000-0000-4000-8000-000000000001",
        "length_m": 1,
        "list_id": "00000000-0000-4000-8000-000000000001",
        "max_elev_m": 1,
        "min_elev_m": 1,
        "name": "Example",
        "osm_name": "Example",
        "place_item_id": "00000000-0000-4000-8000-000000000001",
        "profile": {},
        "status": "Example",
        "tag_lengths": {}
      }
    ],
    "sections": [
      {
        "blurb": "Example",
        "id": "sample_id",
        "item_ids": [
          "00000000-0000-4000-8000-000000000001"
        ],
        "title": "Example"
      }
    ],
    "slug": "Example",
    "source": "Example",
    "source_author": "Example",
    "source_url": "Example",
    "status": "Example",
    "title": "Example",
    "updated_at": "Example",
    "visibility": "public"
  }
}
```

### Update Section

Update Section

**Inputs**

- List (`list_id`, text, required): List id.
- Section ID (`section_id`, text, required): Section id.
- X client ID (`x_client_id`, text): X-client-id.
- Title (`title`, text): Title.
- Blurb (`blurb`, text): Blurb.
- Item IDS (`item_ids`, list): Item ids.

**Outputs**

- `data` (object): `item_ids` is both membership and display order; stale ids drop on read.

**Example output**

```json
{
  "data": {
    "blurb": "Example",
    "id": "sample_id",
    "item_ids": [
      "00000000-0000-4000-8000-000000000001"
    ],
    "title": "Example"
  }
}
```

### Update Stay On Trip

Change a booking in place. dates, price, or its confirmation number. Without this a stay could be recorded and never corrected: the confirmation number could only be set at creation, and a booking whose dates moved had no path back short of leaving a stale one behind, since removing was not possible either.

**Inputs**

- Trip (`trip_id`, text, required): Trip id.
- Stay ID (`stay_id`, text, required): Stay id.
- Name (`name`, text): Name.
- Check in date (`check_in_date`, date): Check in date.
- Check out date (`check_out_date`, date): Check out date.
- Check in time (`check_in_time`, time): Check in time.
- Check out time (`check_out_time`, time): Check out time.
- Total price (`total_price`, number): Total price.
- Currency (`currency`, text): Currency.
- Confirmation number (`confirmation_number`, text): Confirmation number.
- Is booked (`is_booked`, true/false): Is booked.

**Outputs**

- `data` (object): The response from Stardrift.

**Example output**

```json
{
  "data": {}
}
```
