> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/feature-flags/use-feature-flags/use-ff/relay-proxy/inbound-endpoints.md).

# Inbound Endpoints

These are the endpoints requested by SDKs when they communicate with the Relay Proxy. These differ depending on whether a client or server SDK is used.

Your protocol, domain, and port may differ depending on your configuration. The URLs below are for a Relay Proxy running locally on the default port 7000 in HTTP mode.

#### Server SDK <a href="#server-sdk" id="server-sdk"></a>

* `POST http://localhost:7000/client/auth` authenticates the API key.
* `GET http://localhost:7000/client/client/env/${ENV_ID}/feature-configs` fetches flag data.
* `GET http://localhost:7000/client/env/${ENV_ID}/target-segments` fetches target group data.
* `GET http://localhost:7000/client/env/${ENV_ID}/stream` initializes long-lived stream to listen for events.
* `GET http://localhost:7000/client/env/${ENV_ID}/feature-configs/${FLAG_NAME}` fetches updated flag data after a flag stream event comes in.
* `GET http://localhost:7000/client/env/${ENV_ID}/target-segments/${GROUP_NAME}` fetches updated target group data after a target group stream event comes in.
* `POST http://localhost:7000/metrics` sends SDK metrics to the Relay Proxy, which then collects and forwards these to Harness SaaS.

#### Client SDK <a href="#client-sdk" id="client-sdk"></a>

* `POST http://localhost:7000/client/auth` authenticates API key.
* `GET http://localhost:7000/client/client/env/${ENV_ID}/target/${TARGET_IDENTIFIER}/evaluations` fetches all evaluations for this target.
* `GET http://localhost:7000/client/env/${ENV_ID}/stream` initializes long-lived stream to listen for events.
* `GET http://localhost:7000/client/env/${ENV_ID}/target/${TARGET_IDENTIFIER}/evaluations/${FLAG_IDENTIFIER}` fetches updated flag evaluation after a flag stream event is received .
* `POST http://localhost:7000/metrics` sends SDK metrics to the Relay Proxy which then collects and forwards these to Harness SaaS.

#### Other Endpoints <a href="#other-endpoints" id="other-endpoints"></a>

* `GET http://localhost:7000/health` returns details on the health of the Relay Proxy instance and its dependencies.

### Protocols <a href="#protocols" id="protocols"></a>

By default all requests to the proxy are made using HTTP on port 7000. You can configure this—see [Configuration](/feature-flags/use-feature-flags/use-ff/relay-proxy/configuration.md) for details.

The `/stream` request is a long-lived SSE connection that receives messages over time, and may need special network configuration to be allowed in corporate environments. Optionally, SDKs can disable streaming and poll on an interval for updates instead. Go to the [documentation](/feature-flags/use-feature-flags/use-ff/ff-sdks.md) for your SDK for details.

### Domains <a href="#domains" id="domains"></a>

This will depend on where you run your Relay Proxy.
