API Reference > imodeljs-clients > iTwinServiceClients > WsgClient > getUrl getUrl Method Gets the URL of the service. Attempts to discover and cache the URL from the URL Discovery Service. If not found uses the default URL provided by client implementations. Note that for consistency sake, the URL is stripped of any trailing "/" getUrl(requestContext: ClientRequestContext, excludeApiVersion?: false | true): Promise<string> Parameter Type Description requestContext ClientRequestContext excludeApiVersion false | true Pass true to optionally exclude the API version from the URL. Returns - Promise<string> URL for the service Defined in core/clients/src/WsgClient.ts Line 245 Last Updated: 13 June, 2024