---
schema_version: "1"
id: 1e637b4fefb4e9ad73c6687676315b1ffbc31d990a47b3ba8a01d777f6e2b71c
title: Configure the Service URI
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/apikit/latest/configure-service-uri-task.md
canonical_url: https://docs.mulesoft.com/apikit/latest/configure-service-uri-task
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 21fbd52d3f8690a10c8485516dfb721ccba109bfbf5dc6256723dfa8ca02c3aa
description: MuleSoft Documentation Site
release: 4.x
latest: true
---
---
product: APIkit
version: 4.x
is-latest-version: true
---

# Configure the Service URI

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

Deployments behind a load balancer or API proxy often rewrite public URLs; APIkit for REST must emit
links and metadata that match what clients see. Set **Keep RAML/OAS base URI** (the `keepApiBaseUri`
attribute on `apikit:config`) so the base URI in your RAML or OpenAPI Specification stays aligned
with the gateway address.

Set `keepApiBaseUri` to `true` in XML:

```xml
<apikit:config  name="api-config"
                api="api.raml"
                outboundHeadersMapName="outboundHeaders"
                httpStatusVarName="httpStatus"
                keepApiBaseUri="true" />
```
