Skip to main content

Reference

Technical reference documentation for Hook0. These information-oriented materials provide comprehensive details about APIs, configuration, schemas, and other technical specifications.

API Documentation

API Reference

Complete REST API documentation with all endpoints, parameters, and response formats.

Includes:

  • Authentication endpoints
  • Application management
  • Event type operations
  • Subscription management
  • Event creation and querying
  • Webhook delivery status
  • OpenAPI/Swagger specification

Data Specifications

Event Schemas

Standardized event payload schemas and validation rules.

Includes:

  • Base event schema structure
  • Common event type schemas (user, order, payment, etc.)
  • Custom schema definition guidelines
  • Validation rules and examples

Error Codes

Comprehensive list of all error codes with descriptions and resolution steps.

Includes:

  • HTTP status codes
  • Hook0-specific error codes
  • Authentication errors
  • Validation errors
  • System errors

Configuration

Configuration

All configuration options for Hook0 server and worker processes.

Includes:

  • Environment variables
  • Configuration file options
  • Database settings
  • Security configuration
  • Performance tuning parameters

SDKs & Libraries

SDKs

Client libraries and SDKs for different programming languages.

Available SDKs:

  • JavaScript/TypeScript SDK
  • Rust SDK (in development)

Coming Soon:

  • Python SDK
  • Go SDK
  • PHP SDK
  • Ruby SDK
  • Java SDK
  • .NET SDK

Quick Reference Tables

HTTP Status Codes

CodeMeaningCommon Causes
200OKRequest successful
201CreatedResource created successfully
400Bad RequestInvalid request parameters
401UnauthorizedMissing or invalid authentication
403ForbiddenInsufficient permissions
404Not FoundResource does not exist
422Unprocessable EntityValidation errors
500Internal Server ErrorServer-side errors

Event Delivery Status

StatusDescription
waitingScheduled for future delivery (retry backoff)
pendingEvent queued for delivery
inprogressCurrently being delivered
successfulSuccessfully delivered
failedDelivery failed (will retry)

Configuration Sections

SectionPurpose
databasePostgreSQL connection settings
serverHTTP server configuration
workerBackground worker settings
securityAuthentication and encryption
loggingLog levels and output

API Specification Formats

Hook0's API is documented in multiple formats:

  • OpenAPI 3.0 Specification - Machine-readable API spec
  • Interactive Documentation - Built-in Swagger UI at /docs
  • Postman Collection - Ready-to-use API collection

For implementation examples and step-by-step instructions, see Tutorials and How-to Guides.