Skip to content
Kong Docs are moving soon! Our docs are migrating to a new home. You'll be automatically redirected to the new site in the future. In the meantime, view this page on the new site!
Kong Logo | Kong Docs Logo
  • Docs
    • Explore the API Specs
      View all API Specs View all API Specs View all API Specs arrow image
    • Documentation
      API Specs
      Kong Gateway
      Lightweight, fast, and flexible cloud-native API gateway
      Kong Konnect
      Single platform for SaaS end-to-end connectivity
      Kong AI Gateway
      Multi-LLM AI Gateway for GenAI infrastructure
      Kong Mesh
      Enterprise service mesh based on Kuma and Envoy
      decK
      Helps manage Kong’s configuration in a declarative fashion
      Kong Ingress Controller
      Works inside a Kubernetes cluster and configures Kong to proxy traffic
      Kong Gateway Operator
      Manage your Kong deployments on Kubernetes using YAML Manifests
      Insomnia
      Collaborative API development platform
  • Plugin Hub
    • Explore the Plugin Hub
      View all plugins View all plugins View all plugins arrow image
    • Functionality View all View all arrow image
      View all plugins
      AI's icon
      AI
      Govern, secure, and control AI traffic with multi-LLM AI Gateway plugins
      Authentication's icon
      Authentication
      Protect your services with an authentication layer
      Security's icon
      Security
      Protect your services with additional security layer
      Traffic Control's icon
      Traffic Control
      Manage, throttle and restrict inbound and outbound API traffic
      Serverless's icon
      Serverless
      Invoke serverless functions in combination with other plugins
      Analytics & Monitoring's icon
      Analytics & Monitoring
      Visualize, inspect and monitor APIs and microservices traffic
      Transformations's icon
      Transformations
      Transform request and responses on the fly on Kong
      Logging's icon
      Logging
      Log request and response data using the best transport for your infrastructure
  • Support
  • Community
  • Kong Academy
Get a Demo Start Free Trial
Kong Konnect
  • Home icon
  • Kong Konnect
  • Centralized consumer management
github-edit-pageEdit this page
report-issueReport an issue
  • Kong Gateway
  • Kong Konnect
  • Kong Mesh
  • Kong AI Gateway
  • Plugin Hub
  • decK
  • Kong Ingress Controller
  • Kong Gateway Operator
  • Insomnia
  • Kuma

  • Docs contribution guidelines
  • Introduction
    • Overview of Konnect
    • Architecture
    • Network Resiliency and Availability
    • Port and Network Requirements
    • Private Connections to Other Cloud Providers
      • Create a private connection with AWS PrivateLink
    • Geographic Regions
    • Centralized consumer management
    • Compatibility
    • Stages of Software Availability
    • Release Notes
    • Support
      • Control Plane Upgrades FAQ
      • Supported Installation Options
  • Get Started
    • Overview
    • Add your API
    • Migrating a Self-Managed Kong Gateway into Konnect
  • Gateway Manager
    • Overview
    • Dedicated Cloud Gateways
      • Overview
      • Provision a Dedicated Cloud Gateway
      • Securing Backend Traffic
      • Transit Gateways
      • Azure VNET Peering
      • Custom Domains
      • Custom Plugins
      • Data plane logs
    • Serverless Gateways
      • Overview
      • Provision a serverless Gateway
      • Securing Backend Traffic
      • Custom Domains
    • Data Plane Nodes
      • Installation Options
      • Upgrade a Data Plane Node
      • Verify a Data Plane Node
      • Secure Control Plane/Data Plane Communications
      • Renew Data Plane Certificates
      • Parameter Reference
      • Using Custom DP Labels
    • Control Plane Groups
      • Overview
      • Working with Control Plane Groups
      • Migrate Configuration into Control Plane Groups
      • Conflicts in Control Planes
    • Kong Gateway Configuration in Konnect
      • Overview
      • Manage Plugins
        • Overview
        • Adding Custom Plugins
        • Updating Custom Plugins
        • How to Create Custom Plugins
      • Create Consumer Groups
      • Secrets Management
        • Overview
        • Konnect Config Store
        • Set Up and Use a Vault in Konnect
      • Manage Control Plane Configuration with decK
    • Active Tracing
      • Overview
    • KIC Association
    • Backup and Restore
    • Version Compatibility
    • Troubleshooting
  • Mesh Manager
    • Overview
    • Create a mesh with the Kubernetes demo app
    • Federate a zone control plane to Konnect
    • Migrate a self-managed zone control plane to Konnect
  • Service Catalog
    • Overview
    • Integrations
      • Overview
      • Datadog
      • GitHub
      • GitLab
      • PagerDuty
      • SwaggerHub
      • Traceable
      • Slack
    • Scorecards
  • API Products
    • Overview
    • Product Documentation
    • Productize a Service
  • Dev Portal
    • Overview
    • Dev Portal Configuration Preparation
    • Create a Dev Portal
    • Sign Up for a Dev Portal Account
    • Publish an API to Dev Portal
    • Access and Approval
      • Manage Developer Access
      • Manage Developer Team Access
      • Add Developer Teams from IdPs
      • Manage Application Registrations
      • Configure generic SSO for Dev Portal
      • Configure Okta SSO for Dev Portal
    • Application Lifecycle
    • Register and create an application as a developer
    • Enable and Disable App Registration for API Product Versions
    • Dynamic Client Registration
      • Overview
      • Okta
      • Curity
      • Auth0
      • Azure
      • Custom IdP
    • Portal Management API Automation Guide
    • Audit Logging
      • Overview
      • Set up an Audit Log Webhook
      • Set up an Audit Log Replay Job
    • Portal Customization
      • Overview
      • About Self-Hosted Dev Portal
      • Host your Dev Portal with Netlify
      • Custom Domains
    • Dev Portal SDK
    • Troubleshoot
  • Advanced Analytics
    • Overview
    • Dashboard
    • Explorer
    • Analyze API Usage and Performance with Reports
    • Requests
  • Org Management
    • Plans and Billing
    • Authentication and Authorization
      • Overview
      • Teams
        • Overview
        • Manage Teams
        • Teams Reference
        • Roles Reference
      • Manage Users
      • Manage System Accounts
      • Personal Access Tokens
      • Social Identity Login
      • Org Switcher
      • Configure Generic SSO
      • Configure Okta SSO
      • Login Sessions Reference
      • Troubleshoot
    • Audit Logging
      • Overview
      • Set up an Audit Log Webhook
      • Set up an Audit Log Replay Job
    • Account and Org Deactivation
  • API
    • Overview
    • API Request API (Beta)
      • API Spec
    • API Products API
      • API Spec
    • Audit Logs API
      • API Spec
      • Audit Log Webhooks
    • Control Plane API
      • API Spec
    • Control Plane Configuration API
      • API Spec
    • Cloud Gateways API
      • API Spec
    • Identity API
      • API Spec
      • Identity Integration Guide
      • SSO Customization
    • Konnect Search API (Beta)
      • API Spec
    • Mesh Manager API
      • API Spec
      • Kong Mesh API Reference
    • Portal Client API
      • API Spec
    • Portal Management API
      • API Spec
    • Reference
      • Filtering
      • API Errors
  • Reference
    • Labels
    • Plugin Ordering Reference
    • Konnect Search
    • Terraform Provider
    • Audit Logs
    • Verify audit log signatures
    • IdP SAML attribute mapping
enterprise-switcher-icon Switch to OSS
On this pageOn this page
  • How centralized consumer management works
  • Create consumers and realms

Centralized consumer management

A consumer is a Kong Gateway entity that consumes or uses the APIs managed by Kong Gateway. These can be things like applications, services, or users who interact with your APIs. Consumers can be scoped to a Konnect region and managed centrally, or be scoped to a control plane in Gateway Manager.

Centralized consumer management provides the following benefits:

  • Set up consumer identity centrally instead of defining it in multiple control planes.
  • Share consumers across multiple control planes. Users don’t need to replicate changes to consumer identity in multiple control planes and consumer configuration doesn’t conflict.
  • Reduce configuration sync issues between the control plane and the data planes. Consumers that are managed centrally aren’t part of the configuration that is pushed down from the control plane to the data planes, so it reduces config size and latency.

How centralized consumer management works

When you create a consumer centrally, you must assign it to a realm. A realm groups consumers around an identity, defined by organizational boundaries, such as a production realm or a development realm. Realms are connected to a geographic region in Konnect. Centrally managed consumers exist outside of control planes, so they can be used across control planes.

Create consumers and realms

You can manage consumers centrally using the Konnect API. Only Org Admins and Control Plane Admins have CRUD permissions for these consumers.

Centralized consumer management is only available for Kong Gateway 3.10 data planes. Make sure your control plane uses 3.10 data planes at minimum when configuring these consumers.

  1. Use the /realms endpoint to create a realm and optionally associate it with allowed control planes and time-to-live values:
    curl -X POST \
    https://{region}.api.konghq.com/v1/realms \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer $KONNECT_TOKEN" \
    -d '{
         "name": "prod",
         "allowed_control_planes": [
             "$CONTROL_PLANE_ID"
         ],
         "ttl": 10,
         "negative_ttl": 10,
         "consumer_groups": [
             "$CONSUMER_GROUP_NAME"
         ]
     }'
    

    Save the ID of the realm.

    Be sure to replace the following with your own values:

    • {region}: Region for your Konnect instance. Data planes can only reach out to realms in the same region as the data plane.
    • $KONNECT_TOKEN: Replace with your Konnect personal access token.
    • $CONTROL_PLANE_ID: (Optional) Replace with your control plane ID. If you don’t specify a control plane, this means that no control plane can access the consumers in the realm. This value is used later when we configure consumer authentication. You can always add one later using the Update a realm endpoint.
    • ttl: (Optional) ‘ttl’ is the time-to-live (TTL) in minutes of the consumer for this realm in the Kong Gateway cache.
    • negative_ttl: (Optional) Represents the TTL of a bad login cache entry.
    • $CONSUMER_GROUP_NAME: (Optional) Replace with the name of the consumer groups you want to associate with the realm. When you assign consumers to the realm, this will also associate them with the consumer groups you list here. Consumer groups set here are additive. This means that if you configure the realm with consumer groups A and B, and then configure the consumer with consumer group C, the authenticated consumer will be assigned to consumer groups A, B, and C.
  2. Use the create a consumer endpoint to create a centrally managed consumer and optionally assign it to a consumer group:
    curl -X POST \
    https://{region}.api.konghq.com/v1/realms/{realmId}/consumers \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer $KONNECT_TOKEN" \
    -d '{
          "username": "$CONSUMER_NAME",
          "consumer_groups": ["$CONSUMER_GROUP_NAME"]
        }'
    

    Save the ID of the consumer.

    Be sure to replace the following with your own values:

    • {region}: Region for your Konnect instance. Data planes can only reach out to realms in the same region as the data plane.
    • $KONNECT_TOKEN: Replace with your Konnect personal access token.
    • {realmId}: The ID of the realm you created previously.
    • $CONSUMER_NAME: Replace with the name of the consumer.
    • $CONSUMER_GROUP_NAME: (Optional) Replace with the name of the consumer groups you want to associate with the consumer. Consumer groups set here are additive. This means that if you configure the realm with consumer groups A and B, and then configure the consumer with consumer group C, the authenticated consumer will be assigned to consumer groups A, B, and C.
  3. Configure authentication keys for consumers using the Create a key endpoint:
    curl -X POST \
    https://{region}.api.konghq.com/v1/realms/{realmId}/consumers/{consumerId}/keys \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer KONNECT_TOKEN" \
    -d '{
         "type": "new"
        }'
    

    Be sure to replace the following with your own values:

    • {region}: Region for your Konnect instance. Data planes can only reach out to realms in the same region as the data plane.
    • KONNECT_TOKEN: Replace with your Konnect personal access token.
    • {realmId}: The ID of the realm you created previously.
    • {consumerId}: The ID of the consumer you created previously.
  4. Consumers require authentication. Configure authentication using the Key Auth plugin.

    identity_realms are scoped to the control plane by default (scope: cp). The order in which you configure the identity_realms dictates the priority in which the data plane attempts to authenticate the provided API keys:

    • Realm is listed first: The data plane will first reach out to the realm. If the API key is not found in the realm, the data plane will look for the API key in the control plane config.
    • Control plane scope listed first: The data plane will initially check the control plane configuration (LMDB) for the API key before looking up the API Key in the realm.
    • Realm only: You can also configure a single identity_realms by omitting the scope: cp from the example. In this case, the data plane will only attempt to authenticate API keys against the realm. If the API key isn’t found, the request will be blocked.
    • Control plane only: You can configure a look up only in the control plane config by only specifying scope: cp for identity_realms. In this scenario, the data plane will only check the control plane configuration (LMDB) for API key authentication. If the API key isn’t found, the request will be blocked.

Note: If you are using KIC to manage your data plane nodes in Konnect, ensure that you configure the telemetry_endpoint in the data plane. You can find the telemetry_endpoint in the Konnect UI in Gateway Manager in the data plane node instructions.

Thank you for your feedback.
Was this page useful?
Too much on your plate? close cta icon
More features, less infrastructure with Kong Konnect. 1M requests per month for free.
Try it for Free
  • Kong
    Powering the API world

    Increase developer productivity, security, and performance at scale with the unified platform for API management, service mesh, and ingress controller.

    • Products
      • Kong Konnect
      • Kong Gateway Enterprise
      • Kong Gateway
      • Kong Mesh
      • Kong Ingress Controller
      • Kong Insomnia
      • Product Updates
      • Get Started
    • Documentation
      • Kong Konnect Docs
      • Kong Gateway Docs
      • Kong Mesh Docs
      • Kong Insomnia Docs
      • Kong Konnect Plugin Hub
    • Open Source
      • Kong Gateway
      • Kuma
      • Insomnia
      • Kong Community
    • Company
      • About Kong
      • Customers
      • Careers
      • Press
      • Events
      • Contact
  • Terms• Privacy• Trust and Compliance
© Kong Inc. 2025