HyperStreams

Hyperstreams are the best way to integrate with KYC APIs. They are a powerful new offering of the Decentro KYC stack that empowers developers to build custom financial products and services with unparalleled ease.

Hyperstreams, designed with the utmost attention to detail, provide a seamless integration of APIs and SDKs, enabling you to create exceptional user experiences and drive financial innovation.


🚀 Getting Started

  • Start by selecting a Hyperstream from Decentro’s pre-configured Hyperstreams library. Once you have selected a hyperstream, all you need to do is hit the hyperstream-executor API.
  • Depending on the hyperstream, you users will enter the minimum set of parameters, such as only the name and phone number.
  • Even the most complex hyperstreams take only about 8-10 seconds to process, but the control is completely in your hands. All Hyperstreams are available in both synchronous and asynchronous forms, so you can continue with the user flow if you wish to.

How HyperStreams Work

HyperStreams combine multiple APIs into a single workflow, enabling data retrieval and verification through one integration.

Each HyperStream follows a predefined sequence of API modules. The initial input is provided to the first module, and the output from one module can be passed to subsequent modules as required by the workflow.

Once execution is complete, the results are returned in a consolidated HyperStream response.

Execution Modes

HyperStreams support two execution modes:

Synchronous Execution

The workflow is executed within a single API request. Once processing is complete, the final response is returned directly to the client.

Asynchronous Execution

The workflow is initiated through an asynchronous API request, allowing the client to continue their application journey without waiting for the full execution to complete.

An initial acknowledgement is returned, and the final result is delivered to the configured callback endpoint after processing.

Clients using asynchronous execution should ensure their callback endpoint can receive incoming POST requests.


Understanding the Request and Response

A HyperStream request typically includes:

  • reference_id — Unique reference identifier provided by the client.
  • hyperstream — Identifier of the selected HyperStream workflow.
  • initial_input — Input parameters required to initiate the selected workflow.
  • consent and consent_purpose — Consent details, where applicable.

The final HyperStream response includes the execution status and workflow-specific results. Common fields include hyperstream_txn_id, status, response_key, message, reference_id, and data.

The required input parameters and structure of the returned data vary depending on the selected HyperStream.


Asynchronous Callback Handling

When an asynchronous HyperStream is initiated, the API returns an acknowledgement while the workflow continues processing.

After execution is complete, Decentro delivers the final HyperStream result to the callback URL provided during initiation.

Callback requirements

  • The callback URL must be a valid, reachable HTTPS endpoint.
  • The endpoint must support incoming HTTP POST requests.
  • The client should use the request reference identifier to correlate the callback with the initiated transaction.
  • The callback receiver should securely process and record the received result.

The final HyperStream result contains the execution outcome and workflow-specific information. The structure of the result may vary based on the selected HyperStream.


Explore Available HyperStreams

Refer to the relevant workflow guide for detailed functionality, supported inputs, and sample requests and responses.