---
title: "get raw body · RUAL Documentation"
description: "Returns the request body exactly as received on the wire, as a string : the bytes an HMAC signature covers. Use this (never a re-serialized object) when…"
canonical: https://docs.rual.nl/block-types/http%20connection/httpconnection_get_body_raw
language: en
---

[Cluster](https://docs.rual.nl/cluster)

[Blocks](https://docs.rual.nl/block-types)

[Interfaces](https://docs.rual.nl/interfaces)

[Blueprints](https://docs.rual.nl/blueprints)

[Tutorials](https://docs.rual.nl/tutorials)

[Home automation](https://docs.rual.nl/home-automation)

[Examples](https://docs.rual.nl/examples)

[Reference](https://docs.rual.nl/reference)

[Architecture](https://docs.rual.nl/architecture)

[Troubleshooting](https://docs.rual.nl/troubleshooting)

Other

# get raw body

This block is part of the [`http connection`](https://docs.rual.nl/block-types/http%20connection) group and was last modified in core [`v15.0.0`](https://docs.rual.nl/core-versions/150000).

Returns the request body exactly as received on the wire, as a string : the bytes an HMAC signature covers. Use this (never a re-serialized object) when verifying signature headers like `X-Mssgs-Signature`.

- connection required `httpconnection`

- raw body `value`

Outputs the request body exactly as received on the wire, as a string : use this for HMAC/signature verification, never a re-serialized object. When no wire bytes exist (simulation or function-level call) it falls back to the JSON serialization of the parsed body; emits nil when there is no body at all.

A typical wiring for [get raw body](https://docs.rual.nl/block-types/http%2520connection/httpconnection_get_body_raw): the `value` out pin feeds [sha256](https://docs.rual.nl/block-types/value/value_sha256_hmac).

[![Studio canvas example for the get raw body block: typical wiring for get raw body.](https://docs.rual.nl/canvas-examples/httpconnection_get_body_raw.png)](https://docs.rual.nl/canvas-examples/httpconnection_get_body_raw.png?v=3)

## Commonly used with

In production blueprints, this block is most often wired together with:

- [sha256](https://docs.rual.nl/block-types/value/value_sha256_hmac): this block feeds into it. HMAC-SHA256 of the value keyed with the secret, as lowercase hex — e.g. to verify a webhook's X-Mssgs-Signature: sha256=&lt;hex&gt; header against the raw request body.

## Version history

Introduced in [`v15.0.0`](https://docs.rual.nl/core-versions/150000).

- [Back to `http connection`](https://docs.rual.nl/block-types/http%20connection): Return to the main group to view all sub-groups

- [Back to `http`](https://docs.rual.nl/block-types/http%20connection?group=http): Return to the group to view all blocks within this group

Was this page helpful? [Tell us what to improve](https://docs.rual.nl/support) · RUAL Docs is an integral component of the [RUAL ecosystem](https://rual.nl)
