---
title: Configure RESTAPI as a Data Source
description: "Configure REST API as a Data Source\nYou can configure REST API as a data source for Context Hub which allows analysts to use the Context Hub during a"
---

[Skip to content](https://mydev.netwitness.com/knowledge-base/configurerestapiasadatasource#main-content)

![NW Logo](https://mydev.netwitness.com/hs-fs/hubfs/Portal-Partner%20Program/AssetFiles/NW%20Logo%20(2).png?width=180&height=32&name=NW%20Logo%20(2).png)

- [Home](https://mydev.netwitness.com/home)
- Integrations
  
  Show submenu for Integrations

    - [Netwitness Platform Integrations](https://mydev.netwitness.com/netwitnessplatformintegrations)
    - [Third Party Integrations](https://mydev.netwitness.com/thirdpartyintegrations)
- [Knowledge Center](https://mydev.netwitness.com/knowledge-base)
- Community
  
  Show submenu for Community

    - [Blogs](https://mydev.netwitness.com/netwitness-security-llc-blog)
    - Discussions
- Customers
  
  Show submenu for Customers

    - [Manage Products and Licenses](https://mydev.netwitness.com/nwportal)
    - Downloads
- Partners
  
  Show submenu for Partners

    - [Partner Program](https://mydev.netwitness.com/partner)
    - [Partner Resources](https://mydev.netwitness.com/partnerresources)
    - [Submit a New Deal Registration](https://mydev.netwitness.com/dealregistration)
    - [Become a Partner](https://mydev.netwitness.com/becomeapartner)
    - [Update Your Partner Locator Profile](https://www.netwitness.com/partner-locator/?utm_source=pardotnewsletter&utm_medium=email&utm_campaign=partner_march)
    - [NetWitness LinkedIn Partner Hub](https://linkedin.com/showcase/netwitnesspartners/)
- Education
  
  Show submenu for Education

    - [Instructor Led Training Schedule](https://mydev.netwitness.com/instructorledtrainingschedule)
    - [NetWitness Training Catalog](https://mydev.netwitness.com/netwitnesstrainingcatalog)
    - [Security Awareness Training](https://mydev.netwitness.com/securityawarenesstraining)
    - [New Product Readiness](https://mydev.netwitness.com/newproductreadiness)
    - [On-Demand Virtual Labs](https://mydev.netwitness.com/ondemandvirtuallabs)
    - [Additional Training Information](https://mydev.netwitness.com/additionaltraininginformation)
    - [Frequently Asked Questions](https://mydev.netwitness.com/educationfaq)
    - [Contact NetWitness Education Team](https://mydev.netwitness.com/contact-netwitness-education-team)
- Support
  
  Show submenu for Support

    - [Contact Support](https://mydev.netwitness.com/contact-support)
    - [Create a New Case](https://mydev.netwitness.com/create-support-case)
    - [View My Cases](https://mydev.netwitness.com/viewmycase)
    - [Product Version Life Cycle](https://mydev.netwitness.com/product-version-life-cycle)
    - [Warranty & Replacement Parts](https://mydev.netwitness.com/warranty-and-replacement-parts)
    - [Community Support Forum](https://mydev.netwitness.com/community-support-forum)
    - [Technical Support Guide](https://mydev.netwitness.com/technical-support-guide)

Open main navigation

Close main navigation

- [Home](https://mydev.netwitness.com/home)
- Integrations
  
  Show submenu for Integrations

    - [Netwitness Platform Integrations](https://mydev.netwitness.com/netwitnessplatformintegrations)
    - [Third Party Integrations](https://mydev.netwitness.com/thirdpartyintegrations)
- [Knowledge Center](https://mydev.netwitness.com/knowledge-base)
- Community
  
  Show submenu for Community

    - [Blogs](https://mydev.netwitness.com/netwitness-security-llc-blog)
    - Discussions
- Customers
  
  Show submenu for Customers

    - [Manage Products and Licenses](https://mydev.netwitness.com/nwportal)
    - Downloads
- Partners
  
  Show submenu for Partners

    - [Partner Program](https://mydev.netwitness.com/partner)
    - [Partner Resources](https://mydev.netwitness.com/partnerresources)
    - [Submit a New Deal Registration](https://mydev.netwitness.com/dealregistration)
    - [Become a Partner](https://mydev.netwitness.com/becomeapartner)
    - [Update Your Partner Locator Profile](https://www.netwitness.com/partner-locator/?utm_source=pardotnewsletter&utm_medium=email&utm_campaign=partner_march)
    - [NetWitness LinkedIn Partner Hub](https://linkedin.com/showcase/netwitnesspartners/)
- Education
  
  Show submenu for Education

    - [Instructor Led Training Schedule](https://mydev.netwitness.com/instructorledtrainingschedule)
    - [NetWitness Training Catalog](https://mydev.netwitness.com/netwitnesstrainingcatalog)
    - [Security Awareness Training](https://mydev.netwitness.com/securityawarenesstraining)
    - [New Product Readiness](https://mydev.netwitness.com/newproductreadiness)
    - [On-Demand Virtual Labs](https://mydev.netwitness.com/ondemandvirtuallabs)
    - [Additional Training Information](https://mydev.netwitness.com/additionaltraininginformation)
    - [Frequently Asked Questions](https://mydev.netwitness.com/educationfaq)
    - [Contact NetWitness Education Team](https://mydev.netwitness.com/contact-netwitness-education-team)
- Support
  
  Show submenu for Support

    - [Contact Support](https://mydev.netwitness.com/contact-support)
    - [Create a New Case](https://mydev.netwitness.com/create-support-case)
    - [View My Cases](https://mydev.netwitness.com/viewmycase)
    - [Product Version Life Cycle](https://mydev.netwitness.com/product-version-life-cycle)
    - [Warranty & Replacement Parts](https://mydev.netwitness.com/warranty-and-replacement-parts)
    - [Community Support Forum](https://mydev.netwitness.com/community-support-forum)
    - [Technical Support Guide](https://mydev.netwitness.com/technical-support-guide)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [NetWitness Knowledge Base](https://mydev.netwitness.com/knowledge-base?hsLang=en)
2. [Documentation](https://mydev.netwitness.com/knowledge-base/documentation?hsLang=en)

April 28, 2026

# Configure RESTAPI as a Data Source

## Configure REST API as a Data Source

You can configure REST API as a data source for Context Hub which allows analysts to use the Context Hub during an investigation to fetch contextual information from any accessible web service with an exposed REST API. Use the procedures in this topic to add REST API as a data source for Context Hub service and configure the settings (if required) for REST API. The maximum number of REST APIs supported by default is ten.

Prerequisites

Before you configure REST API data source, ensure that:

• Context Hub service is available in ![netwitness\_adminicon\_34x29.png](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/413848iBCCBCEB86ACEA39C-1.png "netwitness_adminicon_34x29.png") (Admin) \> **Services** view of NetWitness Platform.

• Third-party REST API web server is reachable.

To add REST API as a data source for Context Hub:

1. Go to ![netwitness\_adminicon\_31x26.png](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/414063iCC74C4C10BC8BB7B-1.png "netwitness_adminicon_31x26.png")(**Admin**) \> **Services**.  
   The Services view is displayed.
2. Select the Context Hub service and click ![netwitness\_actions\_icon.png](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/416335i1070CDCCC8C650BA-Apr-28-2026-11-39-01-3788-AM-Apr-28-2026-12-38-57-1137-PM.png "netwitness_actions_icon.png") \> **View** \> **Config**.  
   The Services Config view is displayed.
3. In the **Data Sources** tab, click ![netwitness\_add\_icon.png](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/412882i37B032F3071A3250-Apr-28-2026-11-39-09-3696-AM-3.png "netwitness_add_icon.png") \> **REST API**.  
   The Add Data Source dialog is displayed.
4. Provide the following information: 
     - By default, the **Enable** checkbox is selected. If this option is unchecked, the save button is disabled, you cannot add the data source, and cannot view the contextual information.
     - Enter the following fields.
       
           1. **Name** - Enter a name for the REST API data source.
           2. **URL** - Specify the REST API URL with the query parameters.  
              The following table lists some examples of URL and associated parameters:
           1. **Description** – Enter the description of the REST API data source.
           2. **User name**: Enter the username of the REST API if it needs to be authenticated.
           3. **Password**: Enter the password of the RSET API if it needs to be authenticated.
           4. **Response Type**: Select the REST API response type. Possible values are: 
                    - HTML
                    - JSON
           5. **Test Meta value**: Enter the meta value to test the REST API connection.
       
       **Note:**   
       \- The meta value you specify will be replaced with $metavalue in the URL mentioned in step 2 for test connection.  
       \- During context lookup, the $metavalue variable is replaced with meta value in the REST API call.
       
           1. **SSL** - Enables SSL communication to REST API. By default, this option is selected.
           2. (Optional) **Trust All Certificates**: Select this checkbox if you want to trust all certificates and do not have a custom certificate. By default, this option is enabled.
           3. (Optional) **Certificate File**: Browse for the certificate file if you have not selected the Trust All certificates checkbox.
5. Click **Test Connection** to test the connection between Context Hub and the REST API data source.
6. Click **Next**.
7. In the **Response Preview** section, you can view the live response for the REST API configured, using the test meta value as a placeholder.
8. In the **Meta Mapping** section, select one or more meta type supported by the REST API to view context lookup (for meta values) in the Respond and Investigation views.
9. In the **Field Mapping** section, you can add friendly display name for the response field for which you want to perform context lookup. Do the following:
   
     1. Click ![netwitness\_add\_icon.png](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/412882i37B032F3071A3250-Apr-28-2026-11-39-09-3696-AM-3.png "netwitness_add_icon.png").
     2. In the **Field** drop-down, enter the path for which you want to add a friendly name. As you type the path, the auto-suggest function looks for the matches in the JSON path returned in the response preview. You can also add the path that is not available in the response preview but available for other meta values.
     3. **Value (from Preview)** field is filled automatically when you select the path.
     4. In the **Display Name** field, enter the friendly name.
        
        **Note:** After configuration, only the fields that are mapped with friendly names are displayed during context lookup. If you do not map any fields, all fields in the JSON will be available during context lookup.
10. Click **Save** to configure the data source.

**Note:** After you configure the data source settings, you can configure the Context Hub configuration parameters by navigating to ![netwitness\_adminicon.png](https://mydev.netwitness.com/hs-fs/hubfs/Knowledge%20Base%20Import/413546i524A6598756418C8-Apr-28-2026-11-40-53-5805-AM.png?width=29&height=25&name=413546i524A6598756418C8-Apr-28-2026-11-40-53-5805-AM.png "netwitness_adminicon.png") (**ADMIN**) \> **Services**\> **View** \> **Explore** view.

## Edit REST API Data SourceEdit REST API Data Source

To edit REST API data source for Context Hub:

1. Go to ![netwitness\_adminicon.png](https://mydev.netwitness.com/hs-fs/hubfs/Knowledge%20Base%20Import/413546i524A6598756418C8-Apr-28-2026-11-40-53-5805-AM.png?width=27&height=23&name=413546i524A6598756418C8-Apr-28-2026-11-40-53-5805-AM.png "netwitness_adminicon.png") (**Admin**) \> **Services**.
2. Select the Context Hub service and click ![netwitness\_actions\_icon.png](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/416335i1070CDCCC8C650BA-Apr-28-2026-11-39-01-3788-AM-Apr-28-2026-12-38-57-1137-PM.png "netwitness_actions_icon.png") \> **View** \> **Config**.
3. In the Data Sources tab, click ![netwitness\_edit\_icon.png](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/415606i00DEC8DE05322B68-Apr-28-2026-11-40-48-0257-AM-4.png "netwitness_edit_icon.png") \> **REST API**.
4. Edit the required fields.
5. Click **Test Connection** to test the connection between Context Hub and the data source.
6. In the **Meta and Field Mapping** and **Cache settings**, edit the required fields.
7. Click **Save** to save the settings.

## Delete REST API Data Source

To edit REST API data source for Context Hub:

1. Go to ![netwitness\_adminicon\_23x19.png](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/416095iE55233D96ED33EAC-Apr-28-2026-11-39-08-3667-AM-1.png "netwitness_adminicon_23x19.png") (**Admin**) \> **Services**.
2. Select the Context Hub service and click ![netwitness\_actions\_icon.png](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/416335i1070CDCCC8C650BA-Apr-28-2026-11-39-01-3788-AM-Apr-28-2026-12-38-57-1137-PM.png "netwitness_actions_icon.png") \> **View** \> **Config**.
3. In the **Data Sources** tab, select the data source you want to delete.
4. Click ![netwitness\_delete.png](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/412874iAF4C149EB0BD4EE2-Apr-28-2026-11-40-09-4298-AM-Apr-28-2026-12-38-58-2452-PM.png "netwitness_delete.png").

**Next steps**

After completing the configuration, you can view the contextual data in the Context Summary Panel of the Respond view or Investigate view. For more information, see the *NetWitness Respond User Guide* and the *NetWitness Investigate User Guide*.

[![Netwitness Logo](https://mydev.netwitness.com/hs-fs/hubfs/Quote%20Template%20-%20NW%20Logo/Netwitness%20Logo.png?width=158&height=42&name=Netwitness%20Logo.png "Netwitness Logo")](https://mydev.netwitness.com/?hsLang=en)

<https://www.linkedin.com/company/netwitness-platform/> <https://www.youtube.com/@netwitness>

Copyright © 2026, NetWitness LLC. All rights reserved.

[NetWitness Platform](https://www.netwitness.com/)

[Acceptable Use Policy](https://www.netwitness.com/wp-content/uploads/Acceptable-Use-Policy-092022.pdf) [Privacy Statement](https://www.netwitness.com/wp-content/uploads/NetWitness-Privacy-Statement-07292024.pdf)

![NetWitness Logo](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/netwitness-logo-RGB-white%201.png)

[![LinkedIn](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/linkedin.png)](https://www.linkedin.com/company/netwitness-platform/) [![YouTube](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/Youtube.jpg)](https://www.youtube.com/@netwitness)

© 2026 NetWitness LLC. All rights reserved.