Skip to content

Subscribing to APIs

A subscription grants a consumer access to a deployed API. It manages credentials, rate limits, RU quotas, and entitlements.

Terminal window
curl -X POST https://core.api.apiway.net/v1/subscriptions \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"apiId": "payments-v1",
"slaTier": "standard"
}'
ComponentDescription
CredentialsOAuth client (ID + secret) or API key — provisioned automatically
EntitlementsScopes granted based on the SLA tier and API operations
Rate limitRequests per time window (configurable per tier)
RU quotaResource unit budget for metered billing
RU periodBilling cycle — daily, monthly, quarterly, annual, or pay-as-you-go
Alert thresholdPercentage of RU quota that triggers a soft warning

Producers can define multiple SLA tiers using OpenSLA:

TierRate LimitRU QuotaPrice
Free10 req/min1,000 RU/monthFree
Standard100 req/min50,000 RU/monthPer-unit pricing
Enterprise1,000 req/minUnlimitedCustom

When subscribing, consumers select a tier — or Apiway recommends one based on estimated usage.

StateMeaning
PendingAwaiting governance approval
ActiveCredentials provisioned, API callable
SuspendedTemporarily blocked (e.g., budget exhausted)
CancelledAccess revoked, credentials invalidated

Credentials are owned by the subscription — one credential set per subscription. The gateway injects credentials into the runtime context automatically.

  1. Generate new credentials for the subscription
  2. Update your application configuration with the new credentials
  3. Revoke old credentials

Apiway tracks credential expiry and can notify consumers when rotation is recommended.

When subscribing to an API from another organisation (via the API Economy marketplace):

  1. The OAS is copied into your tenant
  2. The copy goes through your governance flow
  3. On approval, the external API is deployed through your gateway
  4. Metering and compliance apply as if it were your own API

This maintains full tenant isolation — no cross-tenant data access.