dots.v2.agents.sessions.bySession_id().ingress.get()

Generated on 13 Nov 2026 from DoTs version v1.24.0

Usage

client.v2.agents.sessions.bySession_id(session_id).ingress.get(requestConfiguration?: RequestConfiguration<object>): Promise<undefined | Get_ingress_url_response>

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_id string required

Example: a1b2c3d4-e5f6-7890-abcd-ef1234567890

The session UUID.

Request Sample

Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.v2.agents.sessions
    .bySession_id("a1b2c3d4-e5f6-7890-abcd-ef1234567890").ingress.get();

Response Example

Show Response Example
{
  "ingress_url": {
    "ingress_url_id": "3f2a1b0c-9d8e-7f6a-5b4c-3d2e1f0a9b8c",
    "session_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "port": 8000,
    "url": "https://abc123.nyc3.sandbox.ondigitalocean.com",
    "state": "INGRESS_URL_STATE_READY",
    "created_at": "2026-07-27T12:00:00Z"
  }
}

More Information

See /v2/agents/sessions/{session_id}/ingress in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.