cURL
curl --request GET \ --url https://app.pentest-tools.com/api/v2/targets/{id} \ --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 target to get
OK
"example.org"
hostname
ip_address
url
"hostname"
500
Was this page helpful?