An entry link for an exposed port [write]

Changed on

For a private port: a single-use link, good for a minute, that signs the browser opening it in to the port's origin (a cookie that lives twelve hours) and lands on path; minting again supersedes the previous unused link. For a public port: the plain address. An archived session answers 400 session_archived.

post/sessions/{id}/ports/{port}/grants

Request

  • Base URL
    https://api.agentsky.dev/v1
  • URL
    https://api.agentsky.dev/v1/sessions/{id}/ports/{port}/grants
  • Auth
    HTTP bearer

Path parameters

idstring required

The session id

portinteger required

The port the app listens on inside the pod

Request body

pathstring

Where on the app to land after entering; a path on the port's origin, default /

Response

OK

urlstring required

A private port: a single-use entry link, good for a minute; a public port: the plain address

expires_atstring date-time nullable required

Changes

    • info

      added the optional property / to the response with the status

    • info

      the response property became required for the status

    • info

      the response property / became required for the status

    • info

      the response property / became required for the status