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>'
{
  "data": {
    "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

data
object
required