Kong Upstreams API

The upstream object represents a virtual hostname and can be used to load balance incoming requests over multiple services (targets). An upstream also includes a [health checker](https://developer.konghq.com/gateway/traffic-control/health-checks-circuit-breakers/), which can enable and disable targets based on their ability or inability to serve requests. The configuration for the health checker is stored in the upstream object, and applies to all of its targets.

GitHub OpenAPI

Operations 9

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /{workspace}/upstreams Create an upstream · Create a new Upstream #
Ask an LLM
“How do I add a new upstream to a Konnect workspace?”
“Can I set a load balancing algorithm and healthchecks when creating an upstream?”
Tell an agent
Create upstream {name} in workspace {workspace}.
Add upstream {name} to {workspace} with algorithm {algorithm} and healthchecks {healthchecks}.
DELETE /{workspace}/upstreams/{UpstreamIdOrName} Delete an upstream · Delete an Upstream #
Ask an LLM
“How do I remove an upstream from a Konnect workspace?”
“Can I delete an upstream by name?”
Tell an agent destructive · confirm first
Delete upstream {UpstreamIdOrName} from workspace {workspace}.
Remove upstream {UpstreamIdOrName} in {workspace}.
GET /{workspace}/upstreams/{UpstreamIdOrName} Get an upstream by name or ID · Get an Upstream #
Ask an LLM
“How do I look up an upstream by its name in a Konnect workspace?”
“What load balancing settings does a named upstream have?”
Tell an agent
Get upstream {UpstreamIdOrName} in workspace {workspace}.
Show the settings of upstream {UpstreamIdOrName} in {workspace}.
PUT /{workspace}/upstreams/{UpstreamIdOrName} Create or update an upstream · Upsert a Upstream #
Ask an LLM
“How do I create an upstream if it doesn't exist, or update it if it does?”
“Can I change an existing upstream's host header or sticky sessions cookie?”
Tell an agent
Upsert upstream {UpstreamIdOrName} in workspace {workspace} with name {name}.
Create or update upstream {UpstreamIdOrName} in {workspace} with host header {host_header}.
GET /v2/control-planes/{controlPlaneId}/core-entities/upstreams List upstreams in a control plane · List all Upstreams #
Ask an LLM
“Which upstreams exist in my Konnect control plane?”
“Can I filter upstreams by tag?”
Tell an agent
List all upstreams in control plane {controlPlaneId}.
Show upstreams tagged {tags} in control plane {controlPlaneId}.
POST /v2/control-planes/{controlPlaneId}/core-entities/upstreams Create an upstream in a control plane · Create a new Upstream #
Ask an LLM
“How do I create an upstream through the v2 control plane API?”
“Can I set sticky sessions on an upstream created in a control plane?”
Tell an agent
Create upstream {name} in control plane {controlPlaneId}.
Add upstream {name} to control plane {controlPlaneId} with sticky sessions cookie {sticky_sessions_cookie}.
DELETE /v2/control-planes/{controlPlaneId}/core-entities/upstreams/{UpstreamId} Delete an upstream · Delete an Upstream #
Ask an LLM
“How do I delete an upstream from a Konnect control plane?”
“Can I remove an upstream that is still used by routes?”
Tell an agent destructive · confirm first
Delete upstream {upstreamId} from control plane {controlPlaneId}.
Remove upstream {upstreamId} in Konnect control plane {controlPlaneId}.
GET /v2/control-planes/{controlPlaneId}/core-entities/upstreams/{UpstreamId} Get an upstream in a control plane · Get an Upstream #
Ask an LLM
“How do I fetch one upstream by ID through the v2 control plane API?”
“What healthchecks are configured on a control plane upstream?”
Tell an agent
Get upstream {UpstreamId} in control plane {controlPlaneId}.
Show healthchecks for upstream {UpstreamId} in {controlPlaneId}.
PUT /v2/control-planes/{controlPlaneId}/core-entities/upstreams/{UpstreamId} Create or update an upstream in a control plane · Upsert a Upstream #
Ask an LLM
“How do I create an upstream in a control plane if it doesn't exist?”
“Can I change an existing control plane upstream's load balancing algorithm?”
Tell an agent
Upsert upstream {UpstreamId} in control plane {controlPlaneId} with name {name}.
Create or update upstream {UpstreamId} in {controlPlaneId} with algorithm {algorithm}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/kong:kong-upstreams-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

kong-upstreams-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Kong Upstreams API
  version: 3.14.0
  contact:
    email: support@konghq.com
    name: Kong Inc
    url: https://konghq.com
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  x-refined-note:
  - x-extensions-note differs across the merged source definitions and was not carried
  - x-oas-source differs across the merged source definitions and was not carried
  - x-oas-source-link differs across the merged source definitions and was not carried
  description: 'Operations tagged Upstreams across 2 of this provider''s published API definitions: kong-gateway-admin-api.yml, kong-konnect-platform-api.yml. Each path carries the servers of the definition it was published in.'
servers:
- description: Default Admin API URL
  url: '{protocol}://{hostname}:{port}{path}'
  variables:
    hostname:
      default: localhost
      description: Hostname for Kong's Admin API
    path:
      default: /
      description: Base path for Kong's Admin API
    port:
      default: '8001'
      description: Port for Kong's Admin API
    protocol:
      default: http
      description: Protocol for requests to Kong's Admin API
      enum:
      - http
      - https
- url: https://global.api.konghq.com
- url: https://us.api.konghq.com
- url: https://eu.api.konghq.com
- url: https://au.api.konghq.com
tags:


# --- truncated at 32 KB (51 KB total) ---
# Full source: https://artifacts.apis.io/kong/openapi/kong-upstreams-api-openapi.yml