---
title: "Regenerate the proxy password"
method: PUT
path: "/v1/ports/{id}/credentials"
tags: ["ports"]
---

# Regenerate the proxy password

`PUT /v1/ports/{id}/credentials`

## Request

- Base URL: `https://api.portproof.org`
- URL: `https://api.portproof.org/v1/ports/{id}/credentials`
- Auth: HTTP bearer

Also regenerates the per-port rotation URL token. Requires an `Idempotency-Key` header (CONTRACT §1): the same key with the same body within 24 h replays the stored response; a different body returns 409 `idempotency_conflict`.

## Path parameters

- `id` string, required

## Request body

- object
  - `regenerate` true, required

## Response `200`

Default Response

- object
  - `username` string, required
  - `password` string, required
  - `version` integer, required

## Other responses

- `404`: Default Response
- `409`: Default Response
- `502`: Default Response

---

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