---
title: "Cancel a dedicated endpoint"
method: POST
path: "/api/v1/dedicated/endpoints/{id}/cancel"
tags: ["dedicated"]
---

# Cancel a dedicated endpoint

`POST /api/v1/dedicated/endpoints/{id}/cancel`

## Request

- Base URL: `https://api.morphllm.com`
- URL: `https://api.morphllm.com/api/v1/dedicated/endpoints/{id}/cancel`
- Auth: HTTP bearer

Before activation, cancels immediately and refunds collected payment. A `ready` or `suspended` endpoint keeps serving and billing until its contractual end date. Idempotent. Organization keys require an organization admin.

## Path parameters

- `id` string, uuid, required: Id of an endpoint the key owns.

## Response `200`

Cancellation scheduled.

- DedicatedCancelResponse: The scheduled cancellation. Repeating the call returns the same date.
  - `cancelEffectiveAt` string, date-time, required: When service ends. Now for an endpoint that was not yet `ready` (it moves to `refunding`); the contractual end date for a `ready` or `suspended` endpoint.

## Other responses

- `401`: The Authorization header is missing or holds an invalid Morph API key.
- `403`: The key belongs to an organization member who is not an admin.
- `404`: No endpoint with this id belongs to the key. Endpoints owned by another account also return 404, so existence is never leaked.
- `409`: The endpoint has already ended or failed and cannot be canceled.

## Changes

- **2026-10-14** `94e639b0e59b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/morphllm/apis/morph-api/changes/api/v1/dedicated/endpoints/:id/cancel/post.md)

---

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