Skip to main content

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:

  1. In the workspace where you added your collection, go to Collections.

  2. Click the OneAPI folder and then click AI Security > AI Infrastructure.

  3. Go to MCP Servers > List MCP Servers.

    The GET v1/assets/mcpservers request appears on the right-side pane.

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

  1. In the workspace where you added your collection, go to Collections.

  2. Click the OneAPI folder and then click AI Security > AI Red Teaming.

  3. Go to AiApp > Get AI App.

    The GET /api/v2/ai-apps/:aiAppId request appears on the right-side pane.

  4. Enter the aiAppId value under Params > Path Variables.

  5. Click Send.

When the request is successful, you receive a Status 200 OK message and a response body.