---
name: webhook-formatter
description: "Webhook Payload Formatter (Webhook Payload Formatter) via devops.majbase.com's free public API, no key required. Keywords: format webhook json payload, pretty print webhook."
---

# Webhook Payload Formatter

Webhook Payload Formatter. Calls devops.majbase.com's free public API — no API key or authentication required.

## Endpoint

```
POST https://devops.majbase.com/webhook-formatter/api
```

## Request / Response

```
API: POST /webhook-formatter/api
  headers=<string>  (optional — raw "Name: Value" lines, one per line)
  body=<string>      (optional — the webhook payload, usually JSON)
Returns {"provider", "headers", "pretty_body", "body_valid", "body_error",
"body_size_bytes"}.
```

## Example

```bash
curl -sS -X POST https://devops.majbase.com/webhook-formatter/api -H "Content-Type: application/json" \
  -d '{"headers":"X-GitHub-Event: push","body":"{\"ref\":\"refs/heads/main\"}"}'
```

## Notes

- No API key or authentication required.
- Full interactive tool: https://devops.majbase.com/webhook-formatter/
