pydo.harness.get_session_ingress()
Generated on 6 Nov 2026
from pydo version
v0.45.0
Usage
client.harness.get_session_ingress(
session_id="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
)Description
Publishes the URL on first call and returns it. Idempotent while the session runs: the same URL is
returned until the session is paused, locked or rolled back, after which the next call returns a new
hostname (pause and lock revoke the URL; rollback moves the session to a new sandbox, so re-fetch
after resume, unlock or rollback). The URL fronts guest port 8000 (the OpenHands Agent Server,
HTTP + WebSocket) and replaces the port-forward bridge for browser clients. Requests to the URL carry
the caller’s DO token as a Bearer header. Poll until state is INGRESS_URL_STATE_READY; there is no
failed state. Only OpenHands sessions support ingress, and it is gated per team.
Parameters
session_idstring requiredExample:
a1b2c3d4-e5f6-7890-abcd-ef1234567890The session UUID.
Response Example
More Information
See /v2/agents/sessions/{session_id}/ingress in the API reference for additional detail on responses, headers, parameters, and more.