API Gateway

Azure APIM Monetization

Native Azure monetization. Meter subscriptions with zero impact to outbound policies.

Read the DocsTalk to Sales
HOW IT WORKS

Integration Architecture

ARCHITECTURE

Asynchronous outbound policy using `<send-one-way-request>`. Fire-and-forget execution.

DATA BOUNDARY

What crosses the boundary

Every data point Aforo captures and every action it executes on Azure APIM.

Ingestion (What We Receive)
01subscription-primary-key-hash
02Method
03UrlTemplate
04StatusCode
05latency
Mutation (What We Execute)
01Provision users — Create APIM subscriptions
02Create subscriptions — Bind to products
03PATCH state: "suspended" — Suspend access
CONFIGURATION

Deploy in minutes

Drop this configuration into your Azure APIM setup. Aforo handles batching, retries, and cost attribution.

aforo-policy-fragment.xmlxml
<send-one-way-request mode="new">
  <set-url>
    @(context.Variables["AforoEndpoint"])
  </set-url>
  <set-method>POST</set-method>
  <set-header name="X-Aforo-Key" exists-action="override">
    <value>{{aforo-api-key}}</value>
  </set-header>
  <set-body>@{
    return new JObject(
      new JProperty("metricName", "api_request"),
      new JProperty("customerId", context.Subscription.Id),
      new JProperty("value", 1)
    ).ToString();
  }</set-body>
</send-one-way-request>

Ready to connect Azure APIM?

First integration takes under 5 minutes. No credit card required.

Get StartedAll Integrations