Articles in this section

Configure your API in the APIM console

This quickstart walks publishers through configuring an API right after pushing it to the APIM console. For consuming a published API instead, see the Socialize your API section.

The APIM console opens in a new tab after you push your API or resource, or you can open it from the Build menu in integrator.io. It doesn't time out on the same schedule as the integrator.io session, so you can leave it open without signing in again. Several steps below depend on your API definition version — v4 and v2 are both fully supported, and this article covers both.

build menu.jpg
diagram.png

Auto-populated fields

Pushing an API or resource automatically populates several fields.

General

  • Name and Description — Carried over from what you set in integrator.io.
  • Version — Defaults to 1.0.0.

View or edit these at Configuration > General (v4) or API > Info (v2).

API_config_general.jpg

Endpoints

Invoke URL lets consumers call the API at a unique URL. In integrator.io, it's in the resource's Advanced section or the API's Actions (...) menu. In the APIM console, it's at Endpoints (v4) or API > Backend services > Endpoint (v2).

endpoints.jpg

API plans

Every endpoint is automatically configured with an API key plan. Manage plans at Consumers > Plans (v4) or Plans (v2). See Create and manage API plans, applications, and subscriptions.

consumers_plans.jpg

Policies

Three policies are added automatically:

  • Override HTTP Method (resources only, not API-builder APIs) — Replaces the method the consumer sent with a configured value before the request reaches the backend. Doesn't act on messages; applies only to the request phase.
  • Transform headers — Sets the Authorization header to a bearer API token automatically. You can add, update, remove, or allowlist headers from there.
  • Dynamic routing — Dispatches inbound calls to different targets or endpoints, or rewrites URIs. Useful for API mashups.

    API_policies.jpg

See the APIM Policy Reference Guide for the full policy list.

Configure gateway and endpoint settings

Configure gateway timeout

Timeout settings determine how long a consumer waits before receiving a timeout response.

v4 — Connect, Read, and Idle timeout default to 3,000 ms, 10,000 ms, and 60,000 ms, and are set on the endpoint group (inherited by its endpoints, unless you turn off Inherit configuration on a specific endpoint).

  1. Navigate to Endpoints.
  2. Select Edit for the endpoint group, or edit a single endpoint and turn off Inherit configuration to override it individually.
  3. Select the Configuration tab.

    endpoints_config.jpg
  4. Edit Connect timeout (ms), Read timeout (ms), and Idle timeout (ms).

    Gateway_timeout_-_config.png

v2 — Connect, Read, and Idle timeout default to 5,000 ms, 10,000 ms, and 60,000 ms.

  1. Navigate to API > Backend services > Endpoint.
  2. Select Edit (pencil.svg) on your endpoint.
  3. Select the Configuration menu and turn off Inherit configuration.
  4. Edit Connect timeout, Read timeout, and Idle timeout.

Configure other endpoint behavior

The same endpoint group Configuration tab also controls settings beyond timeout:

  • Enable keep-alive — Reuses an HTTP connection for multiple requests and responses instead of opening a new one each time.
  • Enable HTTP pipelining — Sends requests without waiting for prior responses to return.
  • Enable compression (gzip, deflate) — Lets the gateway negotiate compression with the backend and decompress a compressed response. Turning this on disables Propagate client Accept-Encoding header, since the gateway can't guarantee the backend response stays uncompressed for transformation policies.
  • Follow HTTP redirects — Follows a 3xx status and its Location header automatically.
  • Maximum pool size — Caps how many connections the endpoint keeps open at once.
  • SSL options — Verify Host turns on hostname verification. Trust all skips origin-certificate verification entirely; the connection stays encrypted, but this setting is vulnerable to man-in-the-middle attacks, so use it only when you understand that risk. Truststore and Key store let you supply your own certificate stores instead of relying on the gateway's defaults.

Manage your API policies

Policies determine how consumers interact with the API — which features they can access and which governance rules apply. An APIM flow (a policy enforcement sequence) is not the same thing as an integrator.io flow. Adding a flow isn't required to add a policy, but it gives you more control over which phase a policy applies to.

v4 — Manage policies in the Policies section. Flows are grouped under each plan and under Common flows (API-level). Select a flow to see its path, operator, HTTP methods, and its Request/Response phase policy chains — message APIs also have Publish and Subscribe phases. To change how flows are selected, select the gear icon on the Flows panel to open Flow execution: Default mode runs each flow independently based on its own operator; Best match selects the single closest-matching flow (a literal path segment outranks a path parameter). Turn on Fail on flow mismatch to return an error instead of silently skipping unmatched requests.

API_policies.jpg
policy_flow execution.jpg

v2 — Manage policies in the Policy Studio, a drag-and-drop tool. Design your flow and add policies in the Design tab. The Configure tab offers the same Default and Best Match flow modes described above. The Debug tab lets you run the API to test your flows.

Policy_studio.png

Create a flow (optional)

A flow is created automatically when you push a resource, so creating one manually is optional. The ALL /** flow is a catch-all that applies to every endpoint.

v4:

  1. In Policies, select + next to a plan or Common flows.
  2. Enter a flow name, or leave it blank to generate one from the path and method.
  3. Set the Operator (Equals or Starts with) and the Path the flow applies to.
  4. Under Methods for your flow, select the HTTP methods it applies to — the default is ALL.
  5. Optionally, add a Condition using Expression Language to control when the flow triggers.
  6. For a message API, also set Channel (the path to match), Entrypoints (which entrypoint types trigger the flow — HTTP GET, HTTP POST, Websocket, Server-Sent Events, or Webhook; leave blank for all), and Entrypoints supported operations (Publish, Subscribe, or both).
  7. Select Create, then Save, and redeploy the API.

v2 — Select + Design new one in the Policy Studio and configure the same fields.

Add a policy to a flow

v4:

  1. Select the flow.
  2. In the Request phase or Response phase, select +.

    policy_picker.jpg
  3. Search for a policy, or filter by category — Performance, Security, Shared Policy Group, Transformation, or Others.
  4. Select the policy, configure it, then select Select.
  5. Select Save and redeploy the API.

v2 — Drag and drop the policy you want into the Request or Response panel. Sort or filter the list to find a specific policy.

Start and deploy your API

  1. In the Danger Zone at Configuration > General (v4) or API > Info (v2), select Start the API.

    Danger_zone_section.png
  2. Select Deploy your API in the top banner. This makes your latest changes available without publishing the API to the Developer Portal yet.

    Deploy_banner.png

Publish your API

Publishing makes the API available in the Developer Portal — without it, consumers can't create an application or subscribe. In the Danger Zone at Configuration > General (v4) or API (v2), select Publish. You still need to configure and publish your OpenAPI specification separately; see Configure and publish APIM documentation.

Share your Developer Portal link with consumers once you've published. Find it at Account > Company > API management in integrator.io, or at Settings > Settings, under the Portal heading, in the APIM console.

Next steps