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

  1. Click on Streams & Events from the sidebar. This will open a form for creating the Streams API.

    Sidebar Navigation

    Streams & Events Wizard

  2. Enter a unique API name, select the Streams option, and click Continue.

    Streams Option

Step 2: Configure API Inputs, Processors, and Outputs

  1. 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.

    Output Selection

  2. Click Finish to proceed to the API Details page.

Step 3: Review and Finalize API Details

  1. On the API Details page, review the auto-generated YAML configuration.

    API Details Page

  2. 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.
  3. 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

  1. Navigate to Policies in the sidebar and click Add Policy.

  2. Select the newly created Streams API.

  3. Configure the following:

    • Limits: Define Rate Limiting, Throttling, and Usage Quota.
    • Configuration: Provide a policy name and set a key expiration interval.

    Policy Details Page

  4. Click Create Policy to save.

Step 2: Generate a Key

  1. Go to Keys from the sidebar and click Add Key.

  2. On the key creation page:

    • Select the newly created policy under the Access Rights tab.

    • Review the applied limits for the API.

  3. 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.