Skip to main content
GET
/
targets
/
{id}
Get target by ID
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
}

Authorizations

Authorization
string
header
required

Use the "API key" from the profile page as the token

Path Parameters

id
integer
required

id of target to get

Response

OK

name
string
required
Example:

"example.org"

id
integer
type
enum<string>
Available options:
hostname,
ip_address,
url
Example:

"hostname"

description
string
Maximum string length: 500
workspace_id
integer