Example request to AI Security API
The following section provides an example request to the AI Infrastructure endpoints within the AI Security API, sent using Zscaler's Postman Collection.
AI Infrastructure
The following example shows how to retrieve the list of discovered Model Context Protocol (MCP) servers using GET /assets/mcpservers:
-
In the workspace where you added your collection, go to Collections.
-
Click the OneAPI folder and then click AI Security > AI Infrastructure.
-
Go to MCP Servers > List MCP Servers.
The
GET v1/assets/mcpserversrequest appears on the right-side pane. -
Click Send.
When the request is successful, you receive a Status 200 OK message and a response body.
AI Red Teaming
The following example shows how to retrieve an AI app using GET /api/v2/ai-apps/:aiAppId:
-
In the workspace where you added your collection, go to Collections.
-
Click the OneAPI folder and then click AI Security > AI Red Teaming.
-
Go to AiApp > Get AI App.
The
GET /api/v2/ai-apps/:aiAppIdrequest appears on the right-side pane. -
Enter the
aiAppIdvalue under Params > Path Variables. -
Click Send.
When the request is successful, you receive a Status 200 OK message and a response body.