---
title: Web API Scenarios – Call Nodinite from Scripts and Code
description: Hands-on scenarios for calling the Nodinite Web API from scripts, services, and CI/CD pipelines, with OAuth 2.0 client credentials or Windows Authentication.
---

# <i class="fal fa-list-ul" aria-hidden="true"></i> Web API Scenarios

These scenarios show how to call the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Web API][] for automation from your own scripts, services, scheduled jobs, and CI/CD pipelines. Pick the one that matches the authentication mode of your environment.

![Log View Contoso: Orders, Copy API URL showing the Web API call api/Search/FlowSearch with logViewId and searchJson, then Scalar for the Web API: Test Request, the copied values pasted, Send, and 200 OK with the same events as JSON, animated walkthrough (7.12)][1]  
*Animated walkthrough: in the [Log View][Log Views] *Contoso: Orders*, **Copy API URL** gives the Web API call behind the search on screen, `api/Search/FlowSearch` with `logViewId` and `searchJson`. Pasted into **Test Request** in [Scalar][] and sent, it returns `200 OK` and the same events as JSON, ready for a script or a reporting tool.*  

## <i class="fal fa-book-open" aria-hidden="true"></i> Available Scenarios

| Scenario | Authentication mode | What it solves |
| --- | --- | --- |
| <i class="fal fa-key" aria-hidden="true"></i> [Call the Web API with OAuth 2.0 Client Credentials][OAuth 2.0] | OpenID Connect / OAuth 2.0 | A script or service calls the Web API without a signed-in user. Register a client in Entra ID, give it a least-privilege Nodinite Role, and send a bearer token. Examples in curl, PowerShell, C#, Python, and Node.js |
| <i class="fab fa-windows" aria-hidden="true"></i> [Call the Web API with Windows Authentication][Windows Authentication] | Windows Authentication | A script runs as a Windows user or service account, with no token. Examples in PowerShell, Python, C#, and Node.js |

<aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
<div class="nodinite-note__content"><p>A quick start for a script: run the search you need in a <a href="https://docs.nodinite.com/administration/log-management/log-views/features/what-is-a-log-view/">Log View</a> and use <a href="https://docs.nodinite.com/getting-started/log/copy-api-print-and-export-to-csv/#fa-clone-copy-api-url">Copy API URL</a>. It gives the exact Web API call for the search on screen, which you can try in <a href="https://docs.nodinite.com/core-services/web-api/features/managing-the-web-api/#find-operations">Scalar</a> before you put it in code.</p></div>
</aside>

<aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
<div class="nodinite-note__content"><p>Not sure the Web API is the right tool? Scripts and pipelines need the <strong>deterministic</strong> Web API. To explore your integration landscape with natural-language questions, connect an AI tool to the <a href="https://docs.nodinite.com/ai/mcp-endpoint/">MCP Endpoint</a> instead. See <a href="https://docs.nodinite.com/core-services/web-api/features/managing-the-web-api/#web-api-or-mcp-endpoint">Web API or MCP Endpoint?</a>.</p></div>
</aside>

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-key" aria-hidden="true"></i> [Call the Web API with OAuth 2.0 Client Credentials][OAuth 2.0]  
* <i class="fab fa-windows" aria-hidden="true"></i> [Call the Web API with Windows Authentication][Windows Authentication]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-screwdriver" aria-hidden="true"></i> [Manage the Web API][]  
* <i class="fal fa-cloud-sun" aria-hidden="true"></i> [Web API][]  
* <i class="fal fa-plug" aria-hidden="true"></i> [MCP Endpoint][]  
* <i class="fal fa-list-check" aria-hidden="true"></i> [Set up the MCP Endpoint][AI Getting Started MCP]  
* <i class="fal fa-sliders" aria-hidden="true"></i> [System Parameters in Manage the Web API][Web API System Parameters]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/WebAPI/WebAPI_Scenarios_Hub.gif

[AI Getting Started MCP]:https://docs.nodinite.com/ai/getting-started/#track-3
[Copy API URL]:https://docs.nodinite.com/getting-started/log/copy-api-print-and-export-to-csv/#fa-clone-copy-api-url
[Log Views]:https://docs.nodinite.com/administration/log-management/log-views/features/what-is-a-log-view/
[Manage the Web API]:https://docs.nodinite.com/core-services/web-api/features/managing-the-web-api/
[MCP Endpoint]:https://docs.nodinite.com/ai/mcp-endpoint/
[OAuth 2.0]:https://docs.nodinite.com/core-services/web-api/scenarios/call-the-web-api-with-oauth-2-0-client-credentials/
[Scalar]:https://docs.nodinite.com/core-services/web-api/features/managing-the-web-api/#find-operations
[Web API]:https://docs.nodinite.com/core-services/web-api/overview/
[Web API or MCP Endpoint]:https://docs.nodinite.com/core-services/web-api/features/managing-the-web-api/#web-api-or-mcp-endpoint
[Web API System Parameters]:https://docs.nodinite.com/core-services/web-api/features/managing-the-web-api/#system-parameters
[Windows Authentication]:https://docs.nodinite.com/core-services/web-api/scenarios/call-the-web-api-with-windows-authentication/