OpenAPI operations
Send one real request to a saved destination without recording a delivery
const url = 'https://api.hooks.events/v1/destinations/example/test-connection';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.hooks.events/v1/destinations/example/test-connection \ --header 'Authorization: Bearer <token>'Requires the endpoints:write scope.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”Success
object
Whether the target answered with a 2xx status
Time from request start to response, in milliseconds
Response body, capped at 64 KiB and with destination secrets redacted
OUTBOUND_REQUEST_INVALID, OUTBOUND_REQUEST_BLOCKED, OAUTH_TOKEN_FAILED, GCP_TOKEN_FAILED or OUTBOUND_REQUEST_FAILED
Example generated
{ "ok": true, "status": 1, "durationMs": 1, "responseBody": "example", "request": { "url": "example", "method": "example", "headers": { "additionalProperty": "example" }, "hasBody": true }, "errorCode": "example", "errorMessage": "example"}Validation error
object
object
Machine-readable error code
Request id, also echoed in x-request-id
Example generated
{ "error": { "code": "example", "message": "example", "requestId": "example" }}Missing or invalid credentials
object
object
Machine-readable error code
Request id, also echoed in x-request-id
Example generated
{ "error": { "code": "example", "message": "example", "requestId": "example" }}The credential lacks the required scope, or the workspace is not writable
object
object
Machine-readable error code
Request id, also echoed in x-request-id
Example generated
{ "error": { "code": "example", "message": "example", "requestId": "example" }}Resource not found
object
object
Machine-readable error code
Request id, also echoed in x-request-id
Example generated
{ "error": { "code": "example", "message": "example", "requestId": "example" }}Rate limited
object
object
Machine-readable error code
Request id, also echoed in x-request-id
Example generated
{ "error": { "code": "example", "message": "example", "requestId": "example" }}Headers
Section titled “Headers”Requests allowed per window
Seconds until the window resets