---
title: "Create (or return) the public share link for these port details"
method: POST
path: "/v1/ports/{id}/passport/share"
tags: ["ports"]
---

# Create (or return) the public share link for these port details

`POST /v1/ports/{id}/passport/share`

## Request

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

The public document never includes credentials. 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

## Response `200`

Default Response

- object
  - `public_token` string, required
  - `url` string, uri, required

## Other responses

- `404`: 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)
