Add a webhook to an incoming domain
POST/v1/inbound/relay_webhook
This endpoint adds a webhook to a specified incoming domain
Request
- application/json
Body
required
Incoming Domain Payload
domain stringrequired
headers
object
property name* string
method stringrequired
Possible values: [GET, POST, PUT, DELETE, PATCH]
url stringrequired
Responses
- 200
- 400
- 500
Webhook added successfully
- application/json
- Schema
- Example (from schema)
Schema
message string
success boolean
{
"message": "webhook created",
"success": true
}
error: Invalid Payload
- application/json
- Schema
- Example (from schema)
Schema
error string
success boolean
{
"error": "string",
"success": false
}
error: Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
error string
success boolean
{
"error": "string",
"success": false
}
Loading...