Skip to content

Quickstart

In about ten minutes you will have a project, an API key, and an event delivered to a URL of yours, with every attempt on the record.

  1. Get an instance

    Sign up at railhook.io/register. It is free right now on the Free plan: 10,000 events a month, 3 projects, 5 endpoints per project and 7 days of history. Paid plans with support and higher limits will come later.

    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, so copy it now.

  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. The sending happens afterwards, not during your request.

  5. See it delivered

    Open Deliveries. Each delivery shows its attempts and the status code and response body your endpoint returned. A 2xx marks it SUCCESS. Anything else is retried, and a delivery that runs out of attempts moves to Failed Messages.