List Targets
GET/users/:user_id/targets/
Request
Path Parameters
Query Parameters
and
- andor
- orNone
- Not applicable.0
- No risk.10
- Low risk.20
- Medium risk.30
- High risk.
Names of the teams to exclude from results, as a query string.
For example, "exclude_team=Frontend" or "exclude_team=Frontend&exclude_team=Backend".
Target labels to filter results, as a query string.
For example, "label=Production" or "label=Production&label=QA".
Possible values: [and
, or
]
Logical operator to apply between target labels.
(Defaults to or
)
Number of results to return per page.
Which field to use when ordering the results.
A page number within the paginated result set.
Possible values: [0
, 10
, 20
, 30
, null
]
Target risk to filter results:
Identifiers of the scan profiles to filter results, separated by commas.
A search term.
Names of the teams to filter results, as a query string.
For example, "team=Frontend" or "team=Frontend&team=Backend".
If true, filter results by targets with unlimited scans.
If false, filter results by targets that use credits.
Responses
- 200
- 400
- 401
- 500
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Total number of results.
Total number of pages.
Number of the current page.
The first page is 1.
Defaults to 1 if no specific page is requested.
Number of results returned per page.
results
object[]
A unique Base58 value identifying this object.
site
object
required
Core settings of the target.
Includes basic target information like the name and URL.
A unique Base58 value identifying this object.
Name of the target or extra host.
The maximum length is 255 characters.
URL of the target.
Date and time of the last change, in ISO 8601 UTC format.
For example, "2023-08-09T13:27:43.8208302".
changed_by
object
required
User who last made changes.
A unique Base58 value identifying this object.
Possible values: <= 254 characters
Email of the user.
Possible values: <= 60 characters
Name of the user.
Date and time of the last change, in ISO 8601 UTC format.
For example, "2023-08-09T13:27:43.8208302".
changed_by
object
required
User who last made changes.
A unique Base58 value identifying this object.
Possible values: <= 254 characters
Email of the user.
Possible values: <= 60 characters
Name of the user.
{
"count": 6,
"page_total": 1,
"page": 1,
"length": 10,
"results": [
{
"id": "string",
"site": {
"id": "string",
"name": "string",
"url": "string",
"changed": "2024-07-29T15:51:28.071Z",
"changed_by": {
"id": "string",
"email": "[email protected]",
"name": "string"
}
},
"user_roles": "string",
"changed": "2024-07-29T15:51:28.071Z",
"changed_by": {
"id": "string",
"email": "[email protected]",
"name": "string"
}
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
{
"<field name>": [
"Errors related to field <field name>."
],
"non_field_errors": [
"Errors not related to any field specific field."
]
}
- application/json
- Schema
- Example (from schema)
Schema
{
"detail": "Incorrect authentication credentials."
}
- application/json
- Schema
- Example (from schema)
Schema
{
"detail": "Unexpected error while handling your request."
}