---
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.
---

# :fa-list-ul: Web API Scenarios

These scenarios show how to call the :Nodinite: [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.*  

## :fa-book-open: Available Scenarios

| Scenario | Authentication mode | What it solves |
| --- | --- | --- |
| :fa-key: [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 |
| :fab fa-windows: [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 |

>[!TIP]
>A quick start for a script: run the search you need in a [Log View][Log Views] and use [Copy API URL][]. It gives the exact Web API call for the search on screen, which you can try in [Scalar][] before you put it in code.

>[!TIP]
>Not sure the Web API is the right tool? Scripts and pipelines need the **deterministic** Web API. To explore your integration landscape with natural-language questions, connect an AI tool to the [MCP Endpoint][] instead. See [Web API or MCP Endpoint?][Web API or MCP Endpoint].

## :fa-hand-point-right: Next Steps

* :fa-key: [Call the Web API with OAuth 2.0 Client Credentials][OAuth 2.0]  
* :fab fa-windows: [Call the Web API with Windows Authentication][Windows Authentication]  

## :fa-link-horizontal: Related Topics

* :fa-screwdriver: [Manage the Web API][]  
* :fa-cloud-sun: [Web API][]  
* :fa-plug: [MCP Endpoint][]  
* :fa-list-check: [Set up the MCP Endpoint][AI Getting Started MCP]  
* :fa-sliders: [System Parameters in Manage the Web API][Web API System Parameters]  

[1]:{ndm}/Documentation%20Pictures/IM/CoreServices/WebAPI/WebAPI_Scenarios_Hub.gif

[AI Getting Started MCP]:{ndr}/AI/Getting%20Started.md#track-3
[Copy API URL]:{ndr}/Getting%20Started/2.%20Log/Copy%20API,%20Print,%20and%20Export%20to%20CSV.md#fa-clone-copy-api-url
[Log Views]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/What%20is%20a%20Log%20View.md
[Manage the Web API]:{ndr}/Core%20Services/Web%20API/Features/Managing%20the%20Web%20API.md
[MCP Endpoint]:{ndr}/AI/MCP%20Endpoint.md
[OAuth 2.0]:{ndr}/Core%20Services/Web%20API/Scenarios/Call%20the%20Web%20API%20with%20OAuth%202.0%20Client%20Credentials.md
[Scalar]:{ndr}/Core%20Services/Web%20API/Features/Managing%20the%20Web%20API.md#find-operations
[Web API]:{ndr}/Core%20Services/Web%20API/Overview.md
[Web API or MCP Endpoint]:{ndr}/Core%20Services/Web%20API/Features/Managing%20the%20Web%20API.md#web-api-or-mcp-endpoint
[Web API System Parameters]:{ndr}/Core%20Services/Web%20API/Features/Managing%20the%20Web%20API.md#system-parameters
[Windows Authentication]:{ndr}/Core%20Services/Web%20API/Scenarios/Call%20the%20Web%20API%20with%20Windows%20Authentication.md