Skip to content
Back to site

Quickstart

  1. Get an instance

    Sign up at railhook.io/register. The Free plan gives 10,000 events a month, 3 projects, 5 endpoints per project and 7 days of history.

    Your API base URL is https://railhook.io.

  2. Create a project and an API key

    In the dashboard, create a project, then open API Keys and create a key with the READ_WRITE scope. The key is shown once (only its hash is stored).

  3. Add an endpoint and subscribe it

    Open Endpoints and add the URL that should receive the webhook. Then open Subscriptions and subscribe that endpoint to the event type order.completed.

  4. Send an event

    Terminal window
    export RAILHOOK_URL=https://railhook.io # or your own instance, e.g. http://localhost or https://hooks.example.com
    export RAILHOOK_API_KEY=...
    curl -X POST "$RAILHOOK_URL/api/v1/events" \
    -H "X-API-Key: $RAILHOOK_API_KEY" \
    -H "Content-Type: application/json" \
    -H "Idempotency-Key: order-12345-completed" \
    -d '{"type":"order.completed","data":{"orderId":"ord_12345","amount":99.99}}'

    Railhook answers 201 with the eventId and deliveriesCreated (one delivery per matching subscription). Sending happens after the request returns.

  5. See it delivered

    Open Deliveries. Each delivery shows its attempts with your endpoint’s status code and response body. A 2xx marks it SUCCESS; anything else is retried, and a delivery out of attempts moves to Failed Messages.