---
search:
  tags:
    - edge
    - POST
seo:
  description: >-
    The link carries a token that is valid for 5 minutes, for this… Reference
    for the POST /v1/sandboxes/{sandbox}/ports/{port}/link endpoint in the
    pols.so API.
sidebar:
  label: Get a short-lived login link for a published port
  badge: POST
title: Get a short-lived login link for a published port
type: openapi-operation
---
The link carries a token that is valid for 5 minutes, for this port
of this sandbox only, while the API key that created it is not
revoked. Opening it gives the browser a session cookie for that one
host; the session lasts as long as the edge allows (12 hours by
default) and ends early when the API key is revoked. Treat the link
like a password until it expires.

`POST /v1/sandboxes/{sandbox}/ports/{port}/link`
