Create Target's Webhook
POSThttps://api.probely.com/targets/:target_id/webhooks/
Request
Path Parameters
Identifier of the target.
- application/json
- application/x-www-form-urlencoded
- multipart/form-data
Body
required
v1
- V1
Possible values: <= 255 characters
Name of the webhook.
If true, verify the HTTPS certificate of the webhook URL. Defaults to true.
Possible values: [v1
]
API version of the webhook.
Body
required
v1
- V1
Possible values: <= 255 characters
Name of the webhook.
If true, verify the HTTPS certificate of the webhook URL. Defaults to true.
Possible values: [v1
]
API version of the webhook.
Body
required
v1
- V1
Possible values: <= 255 characters
Name of the webhook.
If true, verify the HTTPS certificate of the webhook URL. Defaults to true.
Possible values: [v1
]
API version of the webhook.
Responses
- 200
- 400
- 401
- 404
- 500
- application/json
- Schema
- Example (from schema)
Schema
user_created
- User Createduser_deleted
- User Deletedtarget_created
- Target Createdtarget_deleted
- Target Deletedtarget_verification_failed
- Target Verification Failedscan_started
- Scan Startedscan_canceled
- Scan Canceledscan_completed
- Scan Completedscan_failed
- Scan Failedscan_paused
- Scan Pausedscan_under_review
- Scan Under Reviewfinding_detected
- Finding Detectedfinding_fixed
- Finding Fixed
A unique Base58 value identifying this object.
Possible values: [user_created
, user_deleted
, target_created
, target_deleted
, target_verification_failed
, scan_started
, scan_canceled
, scan_completed
, scan_failed
, scan_paused
, scan_under_review
, finding_detected
, finding_fixed
]
Type of event:
Date and time of when the event occurred, in ISO 8601 UTC format.
For example, "2023-08-09T13:27:43.8208302".
Type of object returned in the content of the event.
Can have one of the following strings: "user", "target", "scan", or "finding".
Content of the event.
Can have one of the following objects: User, Target, Scan, or Finding.
webhooks
object[]
required
{
"id": "string",
"event_type": "user_created",
"occurred_at": "2024-07-29T15:51:28.071Z",
"object_type": "string",
"content": "string",
"webhooks": [
{
"id": "string",
"api_version": "v1",
"status": "scheduled",
"next_try": "2024-07-29T15:51:28.071Z",
"retries": 0
}
]
}
- 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": "Not found."
}
- application/json
- Schema
- Example (from schema)
Schema
{
"detail": "Unexpected error while handling your request."
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://api.probely.com/targets/:target_id/webhooks/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: JWT <YOUR_API_TOKEN>' \
-d '{
"name": "string",
"url": "string",
"check_cert": true,
"api_version": "v1"
}'