After installing your Developer Portal and configuring your organizational structure, the next step is to create an API catalog with products and plans. This is where you’ll package your APIs into consumable products and define how developers can access them.In this guide, you’ll learn how to create a catalog, add API products, and define access plans - the essential components that enable developers to discover and consume your APIs.
Created at least one API in Tyk Dashboard that you will make available to your API consumers, for this tutorial we assume this is secured with the Auth Token authentication method
Catalogs determine which API products and plans are visible to different developer audiences. You’ll need to create a catalog and then later you’ll create content to publish to its audience.
Log in to the Developer Portal using your API Owner credentials
this will take you to the Admin Portal view, Navigate to Catalogs
Navigate to Developer Portal > Catalogues
Click Add new catalogue
Enter the following details:
Name: A descriptive name (e.g., “First APIs”)
Path URL: select Sync URL with Name to auto-complete this field
Visibility: Choose Private from the drop-down to restrict access only to selected audience
API Products bundle one or more APIs into a package that delivers value to developers. When you create an API Product in the Developer Portal, a corresponding access policy will be created in the Tyk Dashboard (Provider) that configures the access controls that will be applied to API Consumer access credentials created from the Product.
Navigate to Developer Portal > API Products
Click Add new API Product
On the Details tab enter the basic product information:
Product name: A unique product name (e.g., “Test product”) which will be used by the Provider (Tyk Dashboard) when naming the access policy
Catalogue display name: (optional) Descriptive name that will be used on the Live Portal
Description: (optional) A short summary of the product to engage API consumers
Publish API product to catalogue: Select the catalog you created previously
you can leave the other fields empty for now
On the APIs tab identify which APIs should be accessible via this Product:
Choose a provider: Select your provider from the dropdown
Choose Authentication method: Select the Authentication Token option from the dropdown (or the appropriate authentication method you’ve used for your API created in Tyk Dashboard)
Select APIs: Choose at least one API to include in the Product
On the Documentation tab optionally upload OpenAPI documentation for the API(s) included in the Product
On the “Getting Started” guides tab optionally create Product Guides
Plans define the terms under which developers can access your API products. When you create an API Plan in the Developer Portal, a corresponding limits policy will be created in the Tyk Dashboard (Provider) that configures quotas and rate limits that will be applied to API Consumer access credentials created from the Plan.
Navigate to Developer Portal > Plans
Click Add new Plan
Enter the basic plan information:
Provider: Select your provider from the dropdown
Plan name: A unique plan name (e.g., “Free tier”) which will be used by the Provider (Tyk Dashboard) when naming the access policy
Catalogue display name: (optional) Descriptive name that will be used on the Live Portal
Plan description: (optional) A short summary of the plan that will be displayed in the Live Portal
Configure the consumption rules (limits) that will be applied to Developer Apps using the plan:
Usage quota: Set a total volume of requests that an App will be permitted to make in a time period, for example 25 requests per hour
Rate limit: Set a maximum frequency of requests that an App will be permitted to make, for example 3 requests per 10 seconds
Key expires after: for this tutorial leave this as Key never expires
For this tutorial, select Auto approve access request
In the Accessible in the following catalogues dropdown, select the catalog you created previously
You can now go back to your Catalog to check that the API Product and Plan have been successfully added, ready for your API Consumers to gain access to your service.
CongratulationsYou have successfully created an API Product and a Plan and included them in a private Catalog that will only be available to a selected audience in your Developer Portal. Now you’re ready to experience the API Consumer side.It’s time to create your first Developer App.