baseUrl
Read the API origin configured on this client. Use it when resolving a relative URL returned by the API.
Signature
get baseUrl(): stringParameters
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 for authentication, timeouts and retry settings.