Send a test webhook
curl --request POST \
--url https://advisor.redbark.com/api/v1/webhook-endpoints/{endpoint}/test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://advisor.redbark.com/api/v1/webhook-endpoints/{endpoint}/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://advisor.redbark.com/api/v1/webhook-endpoints/{endpoint}/test"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"object": "webhook_delivery",
"id": "<string>",
"endpoint_id": "<string>",
"event_id": "<string>",
"event_type": "<string>",
"status": "pending",
"attempts": 123,
"response_status": 123,
"response_ms": 123,
"response_body": "<string>",
"error": "<string>",
"last_attempt_at": "<string>",
"next_attempt_at": "<string>",
"delivered_at": "<string>",
"created_at": "<string>",
"payload": "<unknown>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}Webhooks
Send a test webhook
Sends a webhook.test event to this endpoint only, now, and returns the delivery with the endpoint’s answer. It is tried once. Only an admin can call this.
POST
/
webhook-endpoints
/
{endpoint}
/
test
Send a test webhook
curl --request POST \
--url https://advisor.redbark.com/api/v1/webhook-endpoints/{endpoint}/test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://advisor.redbark.com/api/v1/webhook-endpoints/{endpoint}/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://advisor.redbark.com/api/v1/webhook-endpoints/{endpoint}/test"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"object": "webhook_delivery",
"id": "<string>",
"endpoint_id": "<string>",
"event_id": "<string>",
"event_type": "<string>",
"status": "pending",
"attempts": 123,
"response_status": 123,
"response_ms": 123,
"response_body": "<string>",
"error": "<string>",
"last_attempt_at": "<string>",
"next_attempt_at": "<string>",
"delivered_at": "<string>",
"created_at": "<string>",
"payload": "<unknown>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}Authorizations
A firm API key, shown once when it is made, or a connected app’s OAuth access token. Each operation lists the scope it needs, such as clients:write.
Path Parameters
The webhook endpoint id, from list_webhook_endpoints.
Required string length:
1 - 60Body
application/json
The body is of type object.
Response
Success.
Available options:
webhook_delivery Available options:
pending, succeeded, failed The first 2 KB of what the endpoint answered.
An ISO 8601 time in UTC.
An ISO 8601 time in UTC.
An ISO 8601 time in UTC.
An ISO 8601 time in UTC.
The exact body the endpoint receives.

