Configure Streams API using dashboard
Last updated: 2 minutes read.
Overview
This page provides a detailed guide for creating, configuring, and securing a Streams API using the Dashboard UI. Follow these steps to set up real-time streaming with authentication and access control.
Prerequisites
Before you begin, make sure you have:
- Access to the Dashboard.
- Permissions to create APIs, policies, and keys.
- A clear understanding of your streaming input, processing, and output requirements.
Create a Streams API
Step 1: Define API Name and Type
-
Click on Streams & Events from the sidebar. This will open a form for creating the Streams API.
-
Enter a unique API name, select the Streams option, and click Continue.
Step 2: Configure API Inputs, Processors, and Outputs
-
On the next screen, configure your Streams API:
- Input: Select one or more data sources.
- Processor: Choose a single processor for handling the data.
- Output: Define one or more output destinations.
- For manual configuration, enable the Advanced checkbox to create a custom YAML template.
-
Click Finish to proceed to the API Details page.
Step 3: Review and Finalize API Details
-
On the API Details page, review the auto-generated YAML configuration.
-
Configure additional settings:
- Authentication: Choose an authentication mechanism (e.g., API Key, OAuth2).
- Gateway Status: Set to Active or Disabled.
- Access: Select Internal (restricted) or External (public) access.
-
Click Save API.
- The API is now created, and a unique API ID is assigned.
- The API will appear in the APIs listing screen.
Access the Streams API
Step 1: Create a Policy
-
Navigate to Policies in the sidebar and click Add Policy.
-
Select the newly created Streams API.
-
Configure the following:
- Limits: Define Rate Limiting, Throttling, and Usage Quota.
- Configuration: Provide a policy name and set a key expiration interval.
-
Click Create Policy to save.
Step 2: Generate a Key
-
Go to Keys from the sidebar and click Add Key.
-
On the key creation page:
-
Select the newly created policy under the Access Rights tab.
-
Review the applied limits for the API.
-
-
Click Create Key.
-
A popup will display the Key Hash and Key ID.
-
Use the Key ID to access the protected Streams API.
-
Summary
By completing the steps outlined above, you will have:
- A functional Streams API with real-time data delivery capabilities.
- Policies and keys for authentication and access control.
You can now use the Key ID to securely access the API for your applications.