---
title: "End a trip"
method: POST
path: "/skynet/trip/end"
tags: ["Tracking_Trip"]
---

# End a trip

`POST /skynet/trip/end`

## Request

- Base URL: `https://api.nextbillion.io`
- URL: `https://api.nextbillion.io/skynet/trip/end`
- Auth: API key in query parameter `key`
- TypeScript: <https://skmtc.dev/nextbillion-ai/apis/one-spec-service/docs/skynet/trip/end/post.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `key` string, 32 character alphanumeric string, required

## Request body

- object
  - `id` string, required: Specify the ID of the trip to be ended.

## Response `200`

- DtoSimpleResp
  - `message` string: Displays the error message in case of a failed request. If the request is successful, this field is not present in the response.
  - `status` string: A string indicating the state of the response. On successful responses, the value will be Ok. Indicative error messages are returned for different errors. See the [API Error Codes](#api-error-codes) section below for more information.

## Other responses

- `400`
- `404`

---

[API](https://skmtc.dev/nextbillion-ai/apis/one-spec-service.md) - [All operations](https://skmtc.dev/nextbillion-ai/apis/one-spec-service/llms.txt) - [OpenAPI document](https://skmtc.dev/nextbillion-ai/apis/one-spec-service/revisions/b647f1808dda?raw)
