Pushing Your Own Sources

You can create sources, to which you can then add articles using the NETVIBES Web Content API. This feature allows you to add content to Corpus Manager manually, for example when a source that publishes content you are interested in does not provide any RSS feeds.

Important: Complete all the tasks that this page discusses in the order listed.

This task shows you how to:


Before you begin:
  • Be familiar with REST APIs.
  • Know how to generate SHA-1 hashes.

Create a Source

Create a source, to which you can then add articles using the NETVIBES Web Content API.

  1. Expand the Personal Library section.
  2. Click 3 Add content for the Library for which you want to create a source.

    Note: You must have the Author responsibility for this Library to see this command.

  3. Select Push Your Own Source.
    The Push Your Own Source dialog box opens.
  4. In the Source name field, enter a name for your source.
  5. Click Create.

Result: The source is created. You can start adding articles to it using the API.

Get Authenticated

To start making API calls and add articles to your source, you need to obtain API keys for authentication and generate a SHA-1 hash.

  1. Expand the Personal Library section.
  2. Select the Library that contains the source that you created and want to add content to.
  3. Click View API Keys.
    The API Keys dialog box opens.
  4. From the API Keys dialog box, you can:
    • Copy the base URL for your platform by clicking Copy the base URL to your clipboard.
    • For each key, click Copy the [public|private] key to your clipboard to copy the key.
    • Generate a new private key by clicking Reset key.
  5. Generate a SHA-1 hash as follows:

    ("BaseURL" + "api/push" + "key" + $publicKey + "timestamp" + $currentTimestamp + $privateKey)

    Where BaseURL is the base URL for your platform that you can retrieve by clicking Copy the base URL to your clipboard in the API Keys dialog box.

    Important: Your SHA-1 hash has a 5-minute lifetime.

Result: You now have all the values for the parameters that you must pass in the URL when making your API calls:

  • key: The source's public key that you copied in step 3.
  • timestamp: The date you are making the API call.
  • sign: The SHA-1 hash that you generated in the last step.

For example:

?key=potato&timestamp=123456&sign=qwerty

For more information, see the Add Content to Your Source section below.

Add Content to a Source

You can add articles to your source by sending POST requests in JSON format.

Context:

  • NETVIBES Web Content API base path: [baseURL]/api where [baseURL] is the base URL for your platform, which you can retrieve by following the steps below.

    Base path example: https://r1132100503382-eu1-webcontent.3dexperience.3ds.com/api.

  • All the articles that you add to a source are subjected to the platform's retention rules and are automatically removed when they are older than the retention allows. For more information, see Reference Information: About the Number of Sources and Content Retrieval.

  1. Retrieve the NETVIBES Web Content API base URL for your platform:
    1. Expand the Personal Library section.
    2. Select the Library that contains the source that you created and you want to add content to.
    3. Click View API Keys to open the API Keys dialog box.
    4. Copy the base URL by clicking Copy the base URL to your clipboard.
  2. Call the following endpoint to add articles to your source:

    POST [baseURL]/api/push where [baseURL] is the URL that you retrieved in the previous step.

    The content type is Content-Type: application/json.

    • Parameters:
      Name Description
      key The source's public key.
      timestamp The date you are making the call.
      sign The SHA-1 hash you generated. For more information, see Get Authenticated above.
    • Body:
      Name Description
      link

      URL to the article.

      JSON data type: String.

      Format: URL.

      Mandatory.

      Important: Each link is unique within a platform. Reusing the same link overwrites the article with data from the latest request.

      title

      The title for the article.

      JSON data type: String.

      Optional.

      content

      The content for the article.

      JSON data type: String.

      Optional.

      publishedAt

      The publication date for the article.

      JSON data type: String.

      Format: ISO 8601 (for example, YYYY-MM-DDTHH:mm:SS+00:00).

      Optional. If you do not specify it, it is automatically filled in with the current datetime.

      Important:

      If the date you specify is either older than the platform retention, or in the future, the article will not be imported into the source.

      author

      The name of the author for the article.

      JSON data type: String.

      Optional.

      image

      URL to an image.

      JSON data type: String.

      Format: URL.

      Optional.

      metas

      Allows you to define Tags for your article. All the tags you define are added to the Metas predicate in the What category.

      JSON data type: Object.

      Format:

      "metas": {
        "tag": "facet"
      }

      You can define several tags for the same article:

      "metas": {
        "tag1": "facet1",
        "tag2": "facet2"
      }

      Optional.

    Notes:
    • You can include several articles in the same request.
      Recommendation: For optimal performances, send no more than 50 articles per request.
    • The request cannot exceed 7 MB.

Example

curl -X POST "[baseURL]/api/push?key=[publicKey]&timestamp=[timestamp]&sign=[sha1]" \
-H "Content-Type: application/json" \
--data-raw '[
  {
    "link": "myurl.com",
    "title": "Lorem Ipsum",
    "content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer mattis mi ac elit pretium porta. Ut nec odio commodo, luctus arcu in, rhoncus ex. Donec ut massa et sapien tristique pretium. Mauris sit amet enim facilisis, imperdiet nunc eu, semper magna. Etiam luctus tellus non magna accumsan venenatis. Integer lacinia tortor et nunc blandit, vel lacinia orci volutpat. Sed eleifend non purus ut semper.",
    "publishedAt": "2025-05-04 13:37:00",
    "author": "John DOE",
    "link": "https://blog-assets.3ds.com/uploads/2022/05/3ds_netvibes_logotype_rgb_white.png"
    "metas": {
      "foo": "bar"
    }
  }
]'