Search target logs
Requires the pentests:read API key scope.
Authentication
AuthorizationBearer
A workspace API key, sent as Authorization: Bearer.
OR
x-api-keystring
A workspace API key, sent as x-api-key.
Path parameters
targetId
Target UUID, from List pentest targets.
Request
This endpoint expects an object.
query
Case-insensitive text to find.
level
Allowed values:
role
Allowed values:
contextLines
Entries to include on each side of a match. Defaults to 3.
Response
Each match with its surrounding entries.
targetId
query
totalMatches
totalLogs
contextLines
matches
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error