Destination type
Mock API Destination
Use mock API destinations when you need a disposable receiver for route tests, demos, examples, screenshots, or safe delivery validation before a real consumer exists.
When to use this destination type
Choose MOCK_API when the receiver target is FastHook mock receiver. Destinations are outbound delivery targets: they do not decide whether a source request should be accepted, and they do not own connection filters or transformations. They own where the final delivery goes and how FastHook should authenticate, pace, disable, and inspect that delivery.
A destination can be reused by multiple connections when several source branches should feed the same receiver. Reuse keeps receiver capacity, credentials, and attempt evidence attached to one destination id.
FastHook dashboard fields
In the dashboard, create a destination, set Destination Type to MOCK_API, then fill the fields below.
Mock API URLRead-only endpoint set to https://mock.fasthook.io/.
HTTP methodMethod used when delivering to the mock endpoint.
Max delivery rateOptional pacing for test traffic.
API config fields
The REST API stores destination-specific behavior under config. Use PATCH for focused edits and PUT only when your request contains the full config you want to keep.
config.urlFixed mock receiver URL: https://mock.fasthook.io/.
config.http_methodOutbound method used for the mock delivery attempt.
config.rate_limitOptional pacing limit for mock deliveries.
config.rate_limit_periodRate-limit period: second, minute, or hour.
{
"name": "mock-delivery-target",
"type": "MOCK_API",
"config": {
"url": "https://mock.fasthook.io/",
"http_method": "POST"
}
}curl -X POST "https://api.fasthook.io/v1/destinations" \
-H "Authorization: Bearer $FASTHOOK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "mock-delivery-target",
"type": "MOCK_API",
"config": {
"url": "https://mock.fasthook.io/",
"http_method": "POST"
}
}'Authentication
Destination authentication is outbound. It helps the receiver trust or accept FastHook delivery, and it is separate from source authentication that verifies the original webhook producer.
- No destination auth
HTTP methods and rate limit
This destination type uses the methods below for delivery attempts. Rate limits apply at the destination boundary, so every connection that targets the same destination shares that capacity.
Rate limit: Optional. Useful for shaping demos and replay tests.
Delivery behavior
- The mock endpoint gives you a controlled target without configuring a production receiver.
- Mock destinations are useful for testing source auth, filters, transformations, retries, and metrics without external side effects.
- Because the endpoint is fixed, edits focus on name, method, status, and optional rate limit.
Setup checklist
- Create a destination and choose MOCK_API as the destination type.
- Keep the fixed mock URL.
- Choose the method you want FastHook to use in the delivery attempt.
- Connect a source to the mock destination and send a test event.
- Inspect request, event, and attempt evidence before switching the connection to a real receiver.
Troubleshooting
Mock attempts do not appear.Confirm the connection targets the mock destination and that the source request was accepted.
A test route later hits production.Keep mock, staging, and production destinations separate and review connection destination_id before replaying traffic.
The mock target is not editable.That is expected. Use HTTP when you need a custom receiver URL.