---
title: "Tidy-up suggestions"
method: GET
path: "/api/suggestions"
tags: ["Organise"]
---

# Tidy-up suggestions

`GET /api/suggestions`

## Request

- Base URL: `https://trvlrr.app`
- URL: `https://trvlrr.app/api/suggestions`
- Auth: HTTP bearer

Trips that look like one trip (no journey home between them), and items filed on the wrong trip (a booking reference shared with another trip's items).

## Response `200`

Suggested merges and moves.

- Suggestions
  - `merges` object[], required
    - `keep` object, required
      - `id` string, required
      - `title` string, required
      - `start_date` string, nullable, required
      - `end_date` string, nullable, required
    - `absorb` object, required
      - `id` string, required
      - `title` string, required
      - `start_date` string, nullable, required
      - `end_date` string, nullable, required
    - `reason` string, required
  - `moves` object[], required
    - `kind` 'segment' | 'stay', required
    - `id` string, required
    - `label` string, required
    - `date` string, nullable, required
    - `from` object, required
      - `id` string, required
      - `title` string, required
    - `to` object, required
      - `id` string, required
      - `title` string, required
    - `reason` string, required

## Other responses

- `401`: No usable credential: a Clerk session token, a device token or an OAuth access token is required.
- `403`: The caller may not do this to this account or trip.

---

[API](https://skmtc.dev/trvlrr/apis/trvlrr-api.md) · [All operations](https://skmtc.dev/trvlrr/apis/trvlrr-api/llms.txt) · [OpenAPI document](https://skmtc.dev/trvlrr/apis/trvlrr-api/revisions/ea024946b293?raw)
