API Reference

Complete reference for the Web-Hookify REST API. All endpoints, parameters, and response formats.

Base URL

https://api.webhookify.dev/v1

All API requests should be made to this base URL with the appropriate endpoint path.

Authentication

Web-Hookify uses API key authentication. Include your API key in the Authorization header.

Authorization Header

Authorization: Bearer wh_live_1234567890abcdef

API Key Types

  • wh_test_ - Test environment keys
  • wh_live_ - Production environment keys

Webhooks

Manage your webhook endpoints with these API endpoints.

POST/webhooks

Create a new webhook endpoint

Request Body

{
  "service": "stripe",
  "description": "Payment notifications",
  "events": ["payment.succeeded", "payment.failed"],
  "metadata": {
    "environment": "production",
    "team": "payments"
  }
}

Response

{
  "id": "wh_1234567890",
  "url": "https://api.webhookify.dev/v1/hooks/stripe-abc123",
  "service": "stripe",
  "description": "Payment notifications",
  "events": ["payment.succeeded", "payment.failed"],
  "metadata": {
    "environment": "production",
    "team": "payments"
  },
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-15T10:30:00Z",
  "status": "active"
}
GET/webhooks

List all webhook endpoints

Query Parameters

ParameterTypeDescription
limitintegerNumber of results to return (1-100)
offsetintegerNumber of results to skip
servicestringFilter by service name
GET/webhooks/{id}

Retrieve a specific webhook endpoint

PUT/webhooks/{id}

Update a webhook endpoint

DELETE/webhooks/{id}

Delete a webhook endpoint

Events

Retrieve and manage webhook events and delivery logs.

GET/events

List webhook events and delivery attempts

Response

{
  "data": [
    {
      "id": "evt_1234567890",
      "webhook_id": "wh_1234567890",
      "type": "payment.succeeded",
      "data": {
        "id": "pi_1234567890",
        "amount": 2000,
        "currency": "usd",
        "status": "succeeded"
      },
      "created_at": "2024-01-15T10:30:00Z",
      "delivered_at": "2024-01-15T10:30:01Z",
      "status": "delivered",
      "attempts": 1
    }
  ],
  "has_more": false,
  "total_count": 1
}

Rate Limits

Understanding API rate limits and best practices for handling them.

Rate Limit Tiers

Free Tier100 requests/hour
Professional1,000 requests/hour
Enterprise10,000 requests/hour

Rate Limit Headers

X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 999
X-RateLimit-Reset: 1642262400

Rate Limit Exceeded

When you exceed the rate limit, you'll receive a 429 Too Many Requests response. Implement exponential backoff in your retry logic.

Error Handling

Understanding error responses and how to handle them properly.

HTTP Status Codes

CodeDescription
200OK - Request successful
201Created - Resource created successfully
400Bad Request - Invalid request parameters
401Unauthorized - Invalid or missing API key
404Not Found - Resource not found
429Too Many Requests - Rate limit exceeded
500Internal Server Error - Server error