Skip to main content
POST
/
targets
Create a target
curl --request POST \
  --url https://app.pentest-tools.com/api/v2/targets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data name=example.org \
  --data 'description=<string>' \
  --data workspace_id=123
{
  "created_id": 420323
}

Authorizations

Authorization
string
header
required

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

Body

application/x-www-form-urlencoded
name
string
required
Example:

"example.org"

description
string
Maximum string length: 500
workspace_id
integer

Response

Created

created_id
integer
Example:

420323