Skip to main content
GET
/
targets
Get all targets
curl --request GET \
  --url https://app.pentest-tools.com/api/v2/targets \
  --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

Query Parameters

workspace_id
integer

ID of the workspace to show targets from

type
enum<string>

the type of target

Available options:
hostname,
ip_address,
url
limit
integer
default:1000

the maximum number of targets to return

Required range: 1 <= x <= 1000
page
integer
default:1

the page number to return

Required range: x >= 1

Response

OK

data
object[]
required
Maximum array length: 1000