---
title: "Retry Deployment Route"
method: POST
path: "/api/v1/deploy/{deployment_id}/retry"
tags: ["deployments"]
---

# Retry Deployment Route

`POST /api/v1/deploy/{deployment_id}/retry`

## Request

- Base URL: `https://api.trajectory.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.trajectory.ai/api/v1/deploy/{deployment_id}/retry`
- Auth: none declared

Retry a failed or cancelled deployment in place after cleanup. Keeps its deployment ID, test model slug, checkpoint, and saved configuration.

## Path parameters

- `deployment_id` string, required

## Headers

- `Idempotency-Key` string

## Response `202`

Successful Response

- StartDeployResponse
  - `deployment_id` string, required
  - `role` 'production' | 'test', required

## Changes

- **2026-10-20** `d2a2f0337945`: 2 breaking, 1 warning, 1 info
  - `header` request parameter `Idempotency-Key` list-of-types was narrowed by removing types `null`
  - for the `header` request parameter `Idempotency-Key`, the minLength was increased from `0` to `1`
  - for the `header` request parameter `Idempotency-Key`, the maxLength was set to `256`
  - for the `header` request parameter `Idempotency-Key`, the type was generalized from no type to `string`
- **2026-10-02** `a0e690b1ef27`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/trajectory/apis/trajectory-api/changes/api/v1/deploy/:deployment_id/retry/post.md)

---

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