cURL
curl --request GET \ --url https://app.pentest-tools.com/api/v2/targets \ --header 'Authorization: Bearer <token>'
[ { "name": "example.org", "id": 123, "type": "hostname", "description": "<string>", "workspace_id": 123 } ]
Use the "API key" from the profile page as the token
ID of the workspace to show targets from
the type of target
hostname
ip_address
url
the maximum number of targets to return
1 <= x <= 1000
the page number to return
x >= 1
OK
1000
"example.org"
"hostname"
500
Was this page helpful?