HTTP Loggers

Operations done on HTTP Loggers


Method
get
Path
/http_loggers

Query parameters

Property
workspace_id
Type
integer

ID of the workspace to show HTTP loggers from. If not set, all of them will be returned.

Responses

500Internal server error

Authorization

Use the "API key" from the profile page as the token

Bearer

Request

GET
/http_loggers
curl --request GET \
  --url https://app.pentest-tools.com/api/v2/http_loggers \
  --header 'accept: application/json' \
  --header 'authorization: Bearer {token}'

Method
post
Path
/http_loggers

Query parameters

Property
workspace_id
Type
integer

ID of the workspace to show HTTP loggers from. If not set, all of them will be returned.

Request parameters

Content type
application/x-www-form-urlencoded
object
Property
label
Type
string
required
Yes

A unique label for the HTTP request logger

Responses

400Invalid parameters
409A logger with the same label already exists
500Internal server error

Authorization

Use the "API key" from the profile page as the token

Bearer

Request

POST
/http_loggers
curl --request POST \
  --url https://app.pentest-tools.com/api/v2/http_loggers \
  --header 'accept: application/json' \
  --header 'authorization: Bearer {token}'

Method
get
Path
/http_loggers/{id}

Path parameters

Property
id
Type
integer
required
Yes

id of the logger

Responses

500Internal server error

Authorization

Use the "API key" from the profile page as the token

Bearer

Request

GET
/http_loggers/{id}
curl --request GET \
  --url https://app.pentest-tools.com/api/v2/http_loggers/{id} \
  --header 'accept: application/json' \
  --header 'authorization: Bearer {token}'

Method
delete
Path
/http_loggers/{id}

Path parameters

Property
id
Type
integer
required
Yes

id of the logger

Responses

204Deleted successfully
500Internal server error

Authorization

Use the "API key" from the profile page as the token

Bearer

Request

DELETE
/http_loggers/{id}
curl --request DELETE \
  --url https://app.pentest-tools.com/api/v2/http_loggers/{id} \
  --header 'accept: application/json' \
  --header 'authorization: Bearer {token}'

Method
get
Path
/http_loggers/{id}/data

Path parameters

Property
id
Type
integer
required
Yes

id of the logger

Responses

500Internal server error

Authorization

Use the "API key" from the profile page as the token

Bearer

Request

GET
/http_loggers/{id}/data
curl --request GET \
  --url https://app.pentest-tools.com/api/v2/http_loggers/{id}/data \
  --header 'accept: application/json' \
  --header 'authorization: Bearer {token}'

Method
delete
Path
/http_loggers/{id}/data

Path parameters

Property
id
Type
integer
required
Yes

id of the logger

Responses

204Deleted successfully
500Internal server error

Authorization

Use the "API key" from the profile page as the token

Bearer

Request

DELETE
/http_loggers/{id}/data
curl --request DELETE \
  --url https://app.pentest-tools.com/api/v2/http_loggers/{id}/data \
  --header 'accept: application/json' \
  --header 'authorization: Bearer {token}'