Skip to content

API Reference

MXHook provides a REST API for managing domains, routes, messages, and the dead letter queue.

Base URL

http://localhost:8080

Authentication

All endpoints (except /health and /openapi.yaml) require an API key when one is configured:

X-API-Key: your-api-key

See Authentication for details.

Endpoints

Domains

MethodPathDescription
GET/domainsList domains
POST/domainsCreate domain
DELETE/domains/{id}Delete domain

Routes

MethodPathDescription
GET/routesList routes
POST/routesCreate route
DELETE/routes/{id}Delete route

Messages

MethodPathDescription
GET/messagesList messages
GET/messages/{id}Get message

Dead Letter Queue

MethodPathDescription
GET/dlqList DLQ entries
DELETE/dlq/{id}Remove DLQ entry

Replay

MethodPathDescription
POST/replay/{id}Replay message

System

MethodPathDescription
GET/healthHealth check (no auth required)
GET/openapi.yamlOpenAPI 3.1 specification (no auth required)

Error Format

All errors return a JSON object:

json
{
  "error": "description of what went wrong"
}

OpenAPI Specification

The full OpenAPI 3.1 spec is available at /openapi.yaml on any running MXHook instance.

Released under the Apache 2.0 License.