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>'
[
  {
    "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

Maximum array length: 1000
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