Skip to main content

Create a Consumer

A Consumer represents an application or user that calls APIs through the API Gateway. You attach Credentials (for example JWT) to a Consumer so the API Gateway can identify and authenticate its requests on Routes and Services that have an authentication plugin turned on.

Typical flow:

  1. Create a Consumer (this page).
  2. Add a Credential to the Consumer, see Manage JWT credentials.
  3. Turn on the matching authentication plugin (for example JWT Auth) on a Route or a Service.
Step 1Open the Consumer screen, select the API Gateway in the top-right corner, then click Create Consumer
1 / 5
Step 1: Open the Consumer screen, select the API Gateway in the top-right corner, then click Create Consumer

Click the image to zoom in.

Create a Consumer​

To create a Consumer, follow these steps:

  1. In the left menu, select API Gateway → Consumer, select the API Gateway in the top-right corner, then click Create Consumer.

  2. In the Create Consumer form that opens on the right, enter the following information:

FieldRequiredDescription
Gateway-API Gateway the Consumer belongs to, taken from the API Gateway selected on the list screen. Read-only.
NameYConsumer name, used to identify the Consumer when you configure authentication plugins. The name must be unique across all API Gateways, not only within the selected one. Starts with a letter and uses only letters a-z, numbers 0-9, _, and -. Name cannot be changed after the Consumer is created.
DescriptionNWhich application or partner the Consumer represents.
LabelsNKey : value labels to classify and find Consumers, for example team : mobile. Click + Add to add a label, and click the trash icon to remove one.

Create Consumer form with Name, Description, and Labels entered

  1. Click Add to finish.

The message Consumer created successfully appears, the form closes, and the new Consumer appears in the list.

Consumer created successfully message with the new Consumer in the list

Next steps​

Last updated on