---
title: "Infer drives for every trip"
method: POST
path: "/api/drives/infer-all"
tags: ["Transport"]
---

# Infer drives for every trip

`POST /api/drives/infer-all`

## Request

- Base URL: `https://trvlrr.app`
- URL: `https://trvlrr.app/api/drives/infer-all`
- Auth: HTTP bearer

## Response `200`

Per-trip counts.

- AllDrivesInferred
  - `trip_count` integer, required
  - `total_added` integer, required
  - `total_skipped` integer, required
  - `trips` object[], required
    - `trip_id` string, required
    - `added_count` integer, required
    - `skipped_count` integer, 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)
