Skip to main content
GET
/
api
/
v1
/
network
/
events
/
{eventId}
/
code
Generate code from a captured request
curl --request GET \
  --url https://neo.api.projectdiscovery.io/api/v1/network/events/{eventId}/code \
  --header 'Authorization: Bearer <token>'
{
  "code": "<string>",
  "target": "<string>",
  "warnings": [
    "<string>"
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.neo.projectdiscovery.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

JWT authentication token

Path Parameters

eventId
string<uuid>
required

Event UUID

Query Parameters

chat_id
string
required

Chat/conversation ID

target
enum<string>
required

Code generation target

Available options:
shell/curl,
shell/httpie,
python/requests,
python/httpx,
node/fetch,
javascript/fetch,
go/native,
powershell/invoke-webrequest,
raw,
har
insecure
boolean

Skip TLS verification in generated code

Response

Generated code

code
string
required
target
string
required
warnings
string[]