Upload URLs via API

To add documents to an URL+Search node you can call the following endpoint


This endpoint requires the following variables:

  1. flow_id: the id displayed on the url of your flow.

  2. node_id: the id of the node where to upload the url (e.g. 'urlemb-0').

  3. org: your organization name.

Additionally, the request needs to be signed with your api key. Example of usage:

import requests

# API endpoint URL
url = f"https://stack-intext.onrender.com/index_urls_api?flow_id={'YOUR-FLOW-ID'}&node_id={'NODE-ID'}&org={'YOUR-ORGANIZATION'}"

# Request data
headers = {
    "Authorization": "Bearer PRIVATE-API-KEY",

# Make the API request
url_list = ['https://www.mixpanel.com', 'https://github.com/',]

response = requests.post(url, json={'urls': url_list}, headers=headers)

# Check the response
if response.status_code == 200:
    print("API request successful")
    print("API request failed:", response.text)

Last updated