# HTTP and browser access

Source: https://docs.oiy.ai/docs/services/endpoints

Connect to a service without exposing an anonymous public endpoint.



## Authenticated HTTP endpoints [#authenticated-http-endpoints]

Service details contain its endpoint URL. Use that returned URL rather than constructing one from a guessed account identifier. Requests must be authenticated for the owning account.

```sh
curl "$OIY_SERVICE_ENDPOINT" \
  -H "Authorization: Bearer $OIY_API_KEY"
```

Set `OIY_SERVICE_ENDPOINT` to the value returned in your service details. Supply the API key through your local environment; do not paste it into a public URL.

The container must listen on the configured `httpPort`. The proxy supports HTTP response streaming and WebSockets. Connection duration counts as activity while connected.

## Wake on request [#wake-on-request]

A request can wake a sleeping instance. The proxy waits up to 60 seconds. A service that is still starting returns `503` with `Retry-After`. Honor the retry guidance and inspect service state if startup continues to fail. Workload image size and initialization affect startup; no instant-start guarantee is made.

## Browser launch [#browser-launch]

When browser access is enabled for the deployment, the console can create a short-lived browser launch session for a service. This allows browser-based applications to authenticate without placing a personal API key in the address bar.

The public catalog reports `browserEnabled`. Browser access requires a verified account and the appropriate service configuration. A browser launch URL is sensitive: do not share or log it.

An Oiy browser session does not replace your application's own login. JupyterLab, for example, can still require its token or password after a successful Oiy launch. Follow [Run a GPU notebook](/docs/gpu-notebook) for that flow. An Oiy API key is not a Jupyter login token.

## Common connection issues [#common-connection-issues]

* Service is not running or the application has not finished loading.
* The configured port differs from the port used by your application.
* The server listens only on a loopback interface.
* Authentication is missing, expired, or belongs to another account.
* The regional runtime is unavailable.
