API Documentation
...
<POST> Model Analysis
Text

Text Classification

3min

The below parameters are for text classification attack types. To know more about the different attack input parameters see Text Classification

The values presented below are examples used in the reference implementation. It is important to customize these values to achieve the best performance for your particular model.

Extraction

POST
Request
Path Params
model id
required
String
Enter your model
Header Parameters
Org_id
required
String
Enter your organization id
x-api-key
required
String
Enter your API key
Python
Curl
Node.js
JS
Responses
200
401
400
412


Note: In the response, copy job_id. This value is required to trigger the GET APIs. See <GET> Job Metadata. The "job_id" is used to retrieve model analysis metadata and check the processing status of the request. It is also used for generating reports for the analyzed model. Copy the dashboard link from the response and open it in a new tab. This allows users to monitor the job progress and download reports.



For using Nodejs sample code, install npm package request

Given ample code for python is tested for Python version 3.7

Given Sample code for nodejs and javascript is tested for Node V20LTS