OutSystems ODC

Static Outbound IP for OutSystems ODC: Call IP-Allowlisted APIs

Give the API owner two fixed source IPs for your ODC requests. QuotaGuard Shield routes those requests through its proxy and encrypts the connection between your app and the proxy with TLS. This guide shows you where to configure the client and how to check the source IP from your deployed app.

Your OutSystems ODC app sends calls through a C# library and a QuotaGuard proxy, then two static IPs, to an allowlisted API.

How it works

  • An ODC external library in C#, built with OutSystems.ExternalLibraries.SDK 1.7.0 and targeting net10.0.
  • One server action, GetViaProxy, that sends an HTTPS GET through QuotaGuard and returns a ProxyCallResult structure: IsSuccess, StatusCode, Body, ErrorCode and ErrorMessage.
  • A secret app setting, QuotaGuardProxyUrl, read only in server-side logic and passed into the action.
  • A per-client proxy. The library sets a WebProxy with a NetworkCredential on the SocketsHttpHandler behind its own HttpClient, so only calls made through this action use QuotaGuard.

Start with an HTTPS GET: check your source IP, then call a read-only endpoint on your API. The POST example later in this guide reuses the same client and adds a JSON body.

GetViaProxy inputTypeValue
proxyUrlTextSettings.QuotaGuardProxyUrl
urlTextAbsolute https:// API URL from server-side configuration
authorizationText, optionalAuthorization header value, or empty
timeoutSecondsInteger, optional1 to 90, default 8

Why your ODC app needs a static IP

OptionWhat OutSystems documents
Published runtime IPsA list for each region and stage type: Development, Non-production and Production. All apps, for all customers, in the same region and stage type share them. The list can change over time. Allowlisting ODC public IP addresses.
Private GatewayOutSystems' recommended route to your private systems. You install and run Cloud Connector on a system in your network, and ODC apps reach your endpoints through it. Configure a private gateway to your network.
Custom codeIP allowlisting doesn't apply to custom code that calls internal resources, because that traffic doesn't originate from the shared ODC public IPs. Network architecture of ODC.

If the API owner accepts ODC's shared regional IP list, use the published addresses. If they need a fixed pair, route the requests through QuotaGuard and register both IPs from your dashboard.

The traffic path

Your ODC app opens the connection. The API checks the source IP against its allowlist. The proxy goes between them.

  1. Your ODC app calls the GetViaProxy server action from your C# external library. The library makes the HTTP call.
  2. The QuotaGuard proxy receives the call your library's HttpClient sends to it. On Shield, that hop from your library to the proxy is TLS-encrypted. On Static, that hop is a standard HTTP proxy connection.
  3. The API sees the call arrive from one of your two static IPs, the pair you put on its allowlist.

Your app's HTTPS connection to the API passes through the proxy as a tunnel. Neither Shield nor Static decrypts the payload; your API key stays inside that HTTPS connection.

The proxy setting applies to this library's HttpClient. Configure each client whose requests need to use your QuotaGuard IPs.

Your ODC app calls a C# external library. The library sends the call through a QuotaGuard proxy. The first hop is TLS-encrypted on Shield and an HTTP proxy on Static. Static IP 1 and Static IP 2 reach the API allowlist. Your HTTPS session with the API is never decrypted.

Where the proxy goes in ODC

ODC's built-in Consume REST API documents base URLs and basic authentication for each stage, headers, and the OnBeforeRequest and OnAfterResponse callbacks (Consume one or more REST API methods). Its documentation describes no application proxy setting. The proxy walkthrough configures ODC Studio on the developer's computer, rather than the deployed app.

ODC exposes methods in a C# external library as server actions (Extend your apps with custom code). The library creates its own HttpClient, which lets you configure the proxy for those requests. See HttpClient proxy configuration and the HTTPS proxy support introduced in .NET 8 networking improvements.

Static or Shield: which one fits

Use QuotaGuard Shield to encrypt the connection from your library to the proxy as well as your HTTPS connection to the API. Copy the https:// proxy URL from your dashboard, including port 9294. The .NET 10 client in this guide supports that connection.

QuotaGuard Static routes your requests through an HTTP proxy using an http:// URL on port 9293. Choose it when a standard HTTP proxy connection meets your security requirements. Your HTTPS connection to the API still travels through a tunnel. The library accepts either product's URL in the same setting.

Connect ODC to QuotaGuard

  1. Create a Shield subscription. Your dashboard shows your two static IPs and your connection URL. Where to find them.
  2. Add three app settings. In ODC Studio, open your app, go to Data > Settings and add Text settings named QuotaGuardProxyUrl with Is secret set to True, and QuotaGuardIp1 and QuotaGuardIp2 for your two static IPs. Publish the app, then enter the values for each stage in ODC Portal under the app's Configuration > Settings. The proxy URL starts with https:// and ends in port 9294. Read Settings.QuotaGuardProxyUrl only in server-side logic, and never return it to the client (Configure app settings).
  3. Create the library project. With the .NET 10 SDK installed, run:
dotnet new classlib -n QuotaGuardOdc -f net10.0
cd QuotaGuardOdc
rm Class1.cs
dotnet add package OutSystems.ExternalLibraries.SDK --version 1.7.0

The project file should look like this. It pins OutSystems.ExternalLibraries.SDK to version 1.7.0 on nuget.org, matching OutSystems' net10.0 advanced template.

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>net10.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="OutSystems.ExternalLibraries.SDK" Version="1.7.0" />
  </ItemGroup>

</Project>
  1. Add the result structure and the interface. The SDK exposes the one public interface marked [OSInterface] as the library, each of its methods as a server action, and each struct marked [OSStructure] as a structure (External Libraries SDK reference). Exposed methods can use only basic .NET types, OSStructure structs and lists of them, so the action is synchronous and returns a structure rather than a Task (External libraries SDK README).
// ProxyCallResult.cs
using OutSystems.ExternalLibraries.SDK;

namespace QuotaGuardOdc
{
    [OSStructure(Description = "Result of a request sent through the QuotaGuard proxy.")]
    public struct ProxyCallResult
    {
        [OSStructureField(Description = "True when the API answered with a 2xx status code.", IsMandatory = true)]
        public bool IsSuccess;

        [OSStructureField(Description = "HTTP status code from the API. 0 when no response arrived.", IsMandatory = true)]
        public int StatusCode;

        [OSStructureField(DataType = OSDataType.Text, Description = "Response body as text. Empty when no response arrived.", IsMandatory = true)]
        public string Body;

        [OSStructureField(DataType = OSDataType.Text, Description = "Empty on success. Otherwise a fixed code such as http_status, config, proxy_tunnel or timeout.", IsMandatory = true)]
        public string ErrorCode;

        [OSStructureField(DataType = OSDataType.Text, Description = "Redacted description. Never contains the proxy URL, credentials or headers.", IsMandatory = true)]
        public string ErrorMessage;
    }
}
// IQuotaGuardProxy.cs
using OutSystems.ExternalLibraries.SDK;

namespace QuotaGuardOdc
{
    [OSInterface(Description = "Sends HTTPS requests through QuotaGuard Shield or Static.")]
    public interface IQuotaGuardProxy
    {
        [OSAction(Description = "Sends an HTTPS GET through the QuotaGuard proxy and returns the status code and body.", ReturnName = "Result")]
        ProxyCallResult GetViaProxy(
            [OSParameter(DataType = OSDataType.Text, Description = "Full QuotaGuard proxy URL from a secret app setting.")]
            string proxyUrl,
            [OSParameter(DataType = OSDataType.Text, Description = "Absolute https:// API URL from server-side configuration.")]
            string url,
            [OSParameter(DataType = OSDataType.Text, Description = "Authorization header value. Leave empty for the IP check.")]
            string authorization = "",
            [OSParameter(Description = "Seconds to wait for a response, from 1 to 90.")]
            int timeoutSeconds = 8);
    }
}
  1. Add the proxy client. The class has the public parameterless constructor that ODC requires. It validates its inputs, sends the request with the synchronous HttpClient.Send, which supports HTTP/1.1, the default request version, and maps each failure to a fixed ErrorCode using HttpRequestError. No exception text, URL, credential or header reaches the result.
// QuotaGuardProxy.cs
using System;
using System.Collections.Concurrent;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Threading;

namespace QuotaGuardOdc
{
    public class QuotaGuardProxy : IQuotaGuardProxy
    {
        private const int MaxBodyBytes = 1024 * 1024;

        // One HttpClient per proxy URL, reused while ODC reuses the execution context.
        // Correctness doesn't depend on it: a fresh context builds the client on first use.
        private static readonly ConcurrentDictionary<string, HttpClient> Clients = new();

        public QuotaGuardProxy() { }

        public ProxyCallResult GetViaProxy(string proxyUrl, string url, string authorization = "", int timeoutSeconds = 8)
        {
            if (!TryPrepare(proxyUrl, url, timeoutSeconds, out var client, out var target, out var failure))
                return failure;

            using var request = new HttpRequestMessage(HttpMethod.Get, target);
            return Send(client, request, authorization, timeoutSeconds);
        }

        private static bool TryPrepare(string proxyUrl, string url, int timeoutSeconds,
            [NotNullWhen(true)] out HttpClient? client, [NotNullWhen(true)] out Uri? target, out ProxyCallResult failure)
        {
            client = null;
            target = null;
            failure = default;

            if (!ProxySettings.TryParse(proxyUrl, out var settings, out var configError))
            {
                failure = Failure("config", configError);
                return false;
            }

            // url comes from server-side configuration, never from end-user input.
            if (!Uri.TryCreate(url, UriKind.Absolute, out target) || target.Scheme != Uri.UriSchemeHttps)
            {
                failure = Failure("config", "url must be an absolute https:// URL.");
                return false;
            }

            if (timeoutSeconds < 1 || timeoutSeconds > 90)
            {
                failure = Failure("config", "timeoutSeconds must be between 1 and 90.");
                return false;
            }

            client = Clients.GetOrAdd(proxyUrl, static (_, s) => CreateClient(s), settings);
            return true;
        }

        private static ProxyCallResult Send(HttpClient client, HttpRequestMessage request, string authorization, int timeoutSeconds)
        {
            if (!string.IsNullOrEmpty(authorization) &&
                !request.Headers.TryAddWithoutValidation("Authorization", authorization))
                return Failure("config", "authorization isn't a valid header value.");

            using var timeout = new CancellationTokenSource(TimeSpan.FromSeconds(timeoutSeconds));
            try
            {
                using var response = client.Send(request, timeout.Token);
                using var reader = new StreamReader(response.Content.ReadAsStream());
                var body = reader.ReadToEnd();
                var status = (int)response.StatusCode;
                var ok = response.IsSuccessStatusCode;

                return new ProxyCallResult
                {
                    IsSuccess = ok,
                    StatusCode = status,
                    Body = body,
                    ErrorCode = ok ? "" : "http_status",
                    ErrorMessage = ok ? "" : $"The API answered with HTTP {status}."
                };
            }
            catch (OperationCanceledException) when (timeout.IsCancellationRequested)
            {
                return Failure("timeout", $"No response within {timeoutSeconds} seconds.");
            }
            catch (HttpRequestException ex)
            {
                // Fixed messages only. Exception text is never returned.
                return ex.HttpRequestError switch
                {
                    HttpRequestError.ProxyTunnelError => Failure("proxy_tunnel",
                        "The proxy didn't open a tunnel. Check the proxy username and password, and the API host and port."),
                    HttpRequestError.NameResolutionError => Failure("dns", "The proxy host name didn't resolve."),
                    HttpRequestError.ConnectionError => Failure("connection", "No connection to the proxy host and port."),
                    HttpRequestError.SecureConnectionError => Failure("tls", "A TLS handshake failed, to the proxy or to the API."),
                    HttpRequestError.ConfigurationLimitExceeded => Failure("response_too_large", "The response body is larger than 1 MB."),
                    _ => Failure("request_failed", "The request failed before a complete response arrived.")
                };
            }
        }

        private static ProxyCallResult Failure(string code, string message) =>
            new() { IsSuccess = false, StatusCode = 0, Body = "", ErrorCode = code, ErrorMessage = message };

        private static HttpClient CreateClient(ProxySettings settings)
        {
            var handler = new SocketsHttpHandler
            {
                Proxy = new WebProxy(settings.Address) { Credentials = settings.Credentials },
                UseProxy = true,
                PooledConnectionLifetime = TimeSpan.FromMinutes(5)
            };

            // The client owns the handler. Each call sets its own timeout with a token.
            return new HttpClient(handler)
            {
                Timeout = System.Threading.Timeout.InfiniteTimeSpan,
                MaxResponseContentBufferSize = MaxBodyBytes
            };
        }
    }
}
  • Client reuse. Microsoft recommends reusing a limited number of HttpClient instances rather than creating one per request, and using PooledConnectionLifetime (HttpClient guidelines). OutSystems says external libraries should keep no state between calls but that successive calls may reuse the execution context (Best practices for external libraries). The static cache fits both: it holds only connection pools, and a fresh context rebuilds the client.
  • Timeouts. A custom code function can run for at most 95 seconds, and a server request started from the client has a default timeout of 10 seconds (ODC system requirements). The default of 8 seconds returns a timeout result before that request ends. Raise timeoutSeconds for timer logic, up to 90.
  • Size. A custom code action's inputs and outputs are limited to a 5.5 MB payload. The 1 MB buffer limit keeps Body well under it.
  • Destination. url must come from server-side configuration or a constant in your app, never from end-user input, so the action only reaches the APIs you chose. The library accepts only https:// API URLs.
  1. Add the proxy URL parser. It accepts https:// for Shield and http:// for Static, requires a host and an explicit port, splits the user information at the first : and URL-decodes the username and password. Uri.UserInfo returns that part in the escaped userName:password form. Each error names the setting and the rule, never the value.
// ProxySettings.cs
using System;
using System.Diagnostics.CodeAnalysis;
using System.Net;

namespace QuotaGuardOdc
{
    internal sealed class ProxySettings
    {
        public Uri Address { get; }
        public NetworkCredential Credentials { get; }

        private ProxySettings(Uri address, NetworkCredential credentials)
        {
            Address = address;
            Credentials = credentials;
        }

        // Error text never includes the URL, the username or the password.
        public static bool TryParse(string? proxyUrl, [NotNullWhen(true)] out ProxySettings? settings, out string error)
        {
            settings = null;
            error = "";

            if (!Uri.TryCreate(proxyUrl, UriKind.Absolute, out var uri))
            {
                error = "QuotaGuardProxyUrl is empty or isn't an absolute URL.";
                return false;
            }

            if (uri.Scheme != Uri.UriSchemeHttps && uri.Scheme != Uri.UriSchemeHttp)
            {
                error = "QuotaGuardProxyUrl must start with https:// (Shield) or http:// (Static).";
                return false;
            }

            if (string.IsNullOrEmpty(uri.Host) || uri.IsDefaultPort)
            {
                error = "QuotaGuardProxyUrl needs a host and an explicit port: 9294 for Shield, 9293 for Static.";
                return false;
            }

            // Split at the first ':' only. The password may contain more colons once decoded.
            var userInfo = uri.UserInfo;
            var colon = userInfo.IndexOf(':');
            if (colon <= 0 || colon == userInfo.Length - 1)
            {
                error = "QuotaGuardProxyUrl needs username:password before the host.";
                return false;
            }

            var username = Uri.UnescapeDataString(userInfo[..colon]);
            var password = Uri.UnescapeDataString(userInfo[(colon + 1)..]);

            settings = new ProxySettings(
                new UriBuilder(uri.Scheme, uri.Host, uri.Port).Uri,
                new NetworkCredential(username, password));
            return true;
        }
    }
}
  1. Publish and package the library. OutSystems' README uses dotnet publish -c Release --no-self-contained and asks for the contents of the publish folder at the root of the ZIP file. From the project folder:
dotnet publish -c Release --no-self-contained
cd bin/Release/net10.0/publish
zip -r ../../../../QuotaGuardOdc.zip .
cd ../../../..
unzip -l QuotaGuardOdc.zip

On Windows PowerShell:

dotnet publish -c Release --no-self-contained
Compress-Archive -Path .\bin\Release\net10.0\publish\* -DestinationPath QuotaGuardOdc.zip -Force

Open the ZIP and check that QuotaGuardOdc.dll, OutSystems.ExternalLibraries.SDK.dll, QuotaGuardOdc.deps.json and QuotaGuardOdc.pdb are at its root. Include the contents of publish, without a surrounding publish folder.

  1. Upload, publish and release. In ODC Portal go to Integrate > External Logic, click Create library, upload QuotaGuardOdc.zip and click Continue. Review file contents lists the GetViaProxy action and the ProxyCallResult structure. Click Publish library, wait for Finished successfully, then release the library (Extend your apps with custom code).
  2. Add the dependency. In ODC Studio, add the QuotaGuardProxy library to your app as a dependency.

Verify the route

Run this check in a server action in your deployed app. Check the source IP first, then register both assigned addresses with the API owner.

  1. Call the echo endpoint. In a server action named CheckQuotaGuardIp, run GetViaProxy with these inputs. ipify documents https://api.ipify.org?format=json as returning your public IPv4 address as JSON in the form {"ip":"…"} (ipify API).
InputValue
proxyUrlSettings.QuotaGuardProxyUrl
url"https://api.ipify.org?format=json"
authorization"" (empty)
timeoutSeconds8
  1. Check the result. Expect Result.IsSuccess = True, Result.StatusCode = 200, Result.ErrorCode = "" and Result.Body in the form {"ip":"<one of your static IPs>"}.
  2. Compare against both assigned IPs. Add a structure IpifyResponse with one Text attribute named ip. Use a JSON Deserialize element with Result.Body as the JSON string and IpifyResponse as the data type. The route is correct when ip = Settings.QuotaGuardIp1 or ip = Settings.QuotaGuardIp2. Either address is a pass, because traffic can leave from either one.
  3. Register both static IPs with the API owner, whichever one the echo returned.
  4. Make one read-only call to the real API once they confirm. Pick a GET endpoint the API documents as read-only, such as an account or status endpoint, and pass the header value it requires as authorization, for example "Bearer " + Settings.ApiToken with ApiToken stored as a secret setting. Expect IsSuccess = True, StatusCode = 200 and the JSON the API documents for that endpoint. That confirms the allowlist, the credentials and the route together. Then build your production calls on the same action.

Handle the result in your server action

  1. Success: an If on Result.IsSuccess. On True, deserialize Result.Body with JSON Deserialize and continue.
  2. API answered with an error: on False with Result.ErrorCode = "http_status", branch on Result.StatusCode. Result.Body holds the API's own error answer.
  3. No answer: any other ErrorCode. Write ErrorCode and ErrorMessage to your log, then use a Raise Exception element with a user exception, or return a "try again later" message. Both values are safe to log. Don't log the proxy URL or the Authorization value.
ErrorCodeWhat happenedNext step
(empty)The API answered with a 2xx status. StatusCode and Body hold its answer.Use Body.
http_statusThe API answered with a non-2xx status. StatusCode and Body hold its answer.Branch on StatusCode. See 401 or 403 below.
configAn input failed validation: the proxy URL, the API URL, the Authorization value or timeoutSeconds.Fix the setting or input that ErrorMessage names.
proxy_tunnelThe proxy didn't open the tunnel to the API.Check the stored proxy URL and the API host and port.
dns
connection
The library couldn't resolve or reach the proxy host and port.Check the host and port in the stored proxy URL.
tlsA TLS handshake failed, to the proxy or to the API.Check the scheme in the stored proxy URL and the API URL.
timeoutNo complete answer within timeoutSeconds.See timeouts below.
response_too_largeThe body is over the 1 MB buffer limit.Ask the API for a smaller page of data.
request_failedAny other failure before a complete answer arrived.Retry once, then check the proxy and the API.

Extend it to POST with a JSON body

Add a second action for JSON POST requests. It uses the same validation, proxy client, timeout and result structure as GetViaProxy. ODC's 5.5 MB input limit also applies to jsonBody. After a timeout, check the API's outcome before retrying: it may already have processed the POST.

// IQuotaGuardProxy.cs: add a second action
[OSAction(Description = "Sends a JSON POST through the QuotaGuard proxy and returns the status code and body.", ReturnName = "Result")]
ProxyCallResult PostJsonViaProxy(
    [OSParameter(DataType = OSDataType.Text, Description = "Full QuotaGuard proxy URL from a secret app setting.")]
    string proxyUrl,
    [OSParameter(DataType = OSDataType.Text, Description = "Absolute https:// API URL from server-side configuration.")]
    string url,
    [OSParameter(DataType = OSDataType.Text, Description = "JSON request body.")]
    string jsonBody,
    [OSParameter(DataType = OSDataType.Text, Description = "Authorization header value.")]
    string authorization = "",
    [OSParameter(Description = "Seconds to wait for a response, from 1 to 90.")]
    int timeoutSeconds = 8);

// QuotaGuardProxy.cs: add "using System.Text;" and this method
public ProxyCallResult PostJsonViaProxy(string proxyUrl, string url, string jsonBody, string authorization = "", int timeoutSeconds = 8)
{
    if (!TryPrepare(proxyUrl, url, timeoutSeconds, out var client, out var target, out var failure))
        return failure;

    using var request = new HttpRequestMessage(HttpMethod.Post, target)
    {
        Content = new StringContent(jsonBody, Encoding.UTF8, "application/json")
    };
    return Send(client, request, authorization, timeoutSeconds);
}

Common errors and how to fix them

The upload fails in ODC Portal

  • Framework: OS-ELG-MODL-05001 means the ZIP holds no valid library or the assembly targets an unsupported .NET version. Confirm <TargetFramework>net10.0</TargetFramework> and publish again. After a version's deprecation date, OutSystems no longer accepts uploads that target it (Upgrading custom code libraries).
  • ZIP contents: OS-ELG-MODL-05027 means the assembly with [OSInterface] isn't at the ZIP root. Zip the files inside publish, not the folder. OS-ELG-MODL-05023 means an assembly is missing, so include every file publish produced. OS-ELG-MODL-05029 means an unsupported compression method; use Deflated or Stored. OutSystems' own template packages with Compress-Archive (External Libraries SDK errors).

Proxy authentication fails

  • ErrorCode = "config": ErrorMessage names the rule the stored URL broke. Copy the URL again from your dashboard into the setting for that stage in ODC Portal.
  • ErrorCode = "proxy_tunnel": the proxy refused the tunnel. Check the username and password in the stored URL. The parser URL-decodes them, so a percent-encoded character in the URL arrives at the proxy decoded. Then check that the API host and port in url are right.

The echo returns an IP that isn't one of yours

  • Which client made the call: if the address appears in ODC's published runtime IP list, the request didn't go through the library. A REST method you consumed in ODC Studio, or any other client, leaves from ODC's runtime IPs. Call GetViaProxy and read the IP from its Result.Body.

The API answers 401 or 403

  • Not every 403 is an IP block. Read Result.Body for the API's error code first.
  • Destination credentials: confirm the authorization value and its scheme, such as Bearer, match what the API expects.
  • Scopes: confirm the token or key has the scope for that endpoint.
  • Allowlist: confirm the API owner listed both static IPs, for the environment you're calling.

Calls time out

  • Proxy connectivity: dns or connection means the library couldn't reach the proxy. Check the host and port in the stored URL against your dashboard.
  • Destination reachability: timeout means no complete answer arrived in time. Confirm the API host and port, then raise timeoutSeconds within the 90-second limit and within the calling request's timeout.

Keep the proxy configuration in code, as shown above. Microsoft's HttpClient proxy configuration documentation describes http, rather than https, URLs for the HTTPS_PROXY environment variable.

For other .NET applications, see .NET HTTPS with a QuotaGuard proxy. For other no-code platforms, see static IPs on no-code platforms.

FAQ

Does ODC give me a static IP I can hand to a vendor?

OutSystems publishes shared runtime IP lists by region and stage type. Apps from different customers share those addresses, and the lists can change. For requests that need a fixed pair, use QuotaGuard and register both IPs from your dashboard.

Can I set a proxy on a REST API I consume in ODC Studio?

Make the request from a C# external library and configure its HttpClient to use the proxy. ODC's REST consumption documentation covers base URLs, authentication, headers and callbacks. The separate ODC Studio proxy instructions apply to the developer's computer.

What does the GetViaProxy action return?

GetViaProxy returns ProxyCallResult with IsSuccess, StatusCode, Body, ErrorCode and ErrorMessage. A 2xx response sets IsSuccess to True. Other HTTP responses return http_status with the API's status and body. If no response arrives, StatusCode is 0 and ErrorCode identifies the failure. ErrorMessage excludes the proxy URL, credentials and Authorization header.

Which IPs do I give the API owner?

Register both IPs shown in your dashboard. Requests can arrive from either address, regardless of which one the echo check returned.

Does this guide cover Private Gateway?

This guide covers an ODC external library calling an internet API with a source-IP allowlist. For systems inside your own network, see OutSystems' Private Gateway documentation. Private Gateway uses a Cloud Connector installed in your network.

Can the library send POST requests with a JSON body?

Yes. Add PostJsonViaProxy using the example above. It builds a POST request with an application/json body and uses the same proxy client, timeout and result structure as GetViaProxy.

Which .NET and SDK versions does the guide use?

The project targets net10.0 and pins OutSystems.ExternalLibraries.SDK to 1.7.0, matching OutSystems' advanced template. OutSystems made .NET 10 available for custom code on June 22, 2026; its .NET 8 support ended on November 10, 2026.

Does QuotaGuard decrypt my API traffic?

Your app's HTTPS connection to the API passes through the proxy without payload decryption. Shield also encrypts the connection from your library to the proxy.

Give your ODC apps a fixed IP your API can allowlist

Create a Shield subscription, configure the library, and check the source IP from your deployed app. Register both assigned IPs with the API owner.