POST
/
v1
/
template
/
ai
Generate AI Template
curl --request POST \
  --url https://api.projectdiscovery.io/v1/template/ai \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "prompt": "<string>",
  "retest": true,
  "disableAutoSave": false,
  "images": [
    "<string>"
  ]
}'
{
  "template_id": "<string>",
  "message": "<string>",
  "completion": "<string>",
  "name": "<string>",
  "canRun": true,
  "comment": "<string>",
  "is_valid": true,
  "retry_count": 123,
  "feedback": "<string>",
  "targets": [
    "<string>"
  ],
  "retest": [
    {
      "target": "<string>",
      "matched": true,
      "vuln_id": "<string>"
    }
  ]
}

Authorizations

X-API-Key
string
header
required

Headers

X-Team-Id
string

Body

application/json

Response

200
application/json

Example response

The response is of type object.