---
title: "baseUrl | TypeScript SDK | AEO API"
description: "Read the API origin configured on this client. Use it when resolving a relative URL returned by the API."
url: "https://aeoapi.dev/docs/sdks/typescript/baseUrl"
canonical: "https://aeoapi.dev/docs/sdks/typescript/baseUrl"
last_updated: "2026-11-30"
---

# baseUrl

Read the API origin configured on this client. Use it when resolving a relative URL returned by the API.

## Signature

```
get baseUrl(): string
```

## Parameters

This method takes no arguments.

## Return value

The origin as a string, without a trailing slash.

## Errors

- Reading this property performs no validation or network request.

## TypeScript example

```
import { AeoClient } from "@aeoapi/aeo-sdk";

const apiKey = process.env.AEO_API_KEY;
if (!apiKey) throw new Error("Set AEO_API_KEY on your server.");
const client = new AeoClient(apiKey, { baseUrl: "https://api.aeoapi.dev" });

console.log(client.baseUrl);
```

See [TypeScript client setup](https://aeoapi.dev/docs/sdks/typescript) for authentication, timeouts and retry settings.
