Wordlists

Operations done on Wordlists

Base URL

https://app.pentest-tools.com/api/v2

Authorization

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


Method
get
Path
/wordlists

Responses

500Internal server error

Request

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

Response

[
  {
    "id": 1,
    "name": "URL Fuzzer (default)",
    "description": "This is the standard wordlist used by URL Fuzzer",
    "num_words": 254,
    "predefined": true
  }
]

OK


Method
get
Path
/wordlists/{id}

Get wordlist information by ID

Get the details of a wordlist. For contents, use /wordlists/{id}/contents

Path parameters

Property
id
Type
integer
required
Yes

id of wordlist to get

Responses

500Internal server error

Request

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

Response

{
  "id": 1,
  "name": "URL Fuzzer (default)",
  "description": "This is the standard wordlist used by URL Fuzzer",
  "num_words": 254,
  "predefined": true
}

OK


Method
delete
Path
/wordlists/{id}

Path parameters

Property
id
Type
integer
required
Yes

id of wordlist to get

Responses

204OK
500Internal server error

Request

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

Response

No Body

OK


Method
get
Path
/wordlists/{id}/contents

Path parameters

Property
id
Type
integer
required
Yes

id of wordlist to get

Responses

500Internal server error

Request

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

Response

OK