# Guide: Why an Airnode response should stay a string until verification

Canonical: https://tokenprimer.com/news/a6f5c4ed-2535-4d75-9741-5996743b8b5f
Published: 2026-11-11T13:36:35.462Z
Publisher: Token Primer

The documented attestation format covers response text. Parsing and serializing the inner JSON can change that text, even when the application reads an equivalent value.

Keep an Airnode response as its original text until its attestation has been checked. Parsing the response into a JSON value and writing it back out can change the representation, even when an application treats the value as equivalent.

The [current attestation documentation](https://airnodehub-docs.api3.org/airnode/attestation), checked on November 11, defines the signed response input as UTF-8 text. The digest combines that text with the request hash and signing timestamp. A verifier therefore needs the received string, rather than a replacement produced by its own JSON serializer.

### The outer object and the inner response

For an envelope response from `POST /`, `data` is a string inside the outer JSON object. Reading that outer object is different from parsing and rewriting the JSON contained inside `data`. Preserve the resulting `data` string for verification; parse a separate value when the application needs to inspect its fields.

The documentation illustrates the distinction with `0.00000071234` and `7.1234e-7`. They express the same numeric value, but their text differs. It also explains why retaining the text preserves digits in integers beyond `2^53`. These are documented representation examples, not results from a test performed against a listing.

### Passthrough puts the text elsewhere

With the [documented passthrough interface](https://airnodehub-docs.api3.org/airnode/http-interface), the response body supplies that text. The signing address, request hash, timestamp and signature travel in `X-Airnode-*` headers. Reading the body as text before interpreting its contents preserves the input described by the verification procedure. Passthrough exposes only declared routes.

This describes the current string-based format. The attestation document separately specifies a `JSON.stringify(data)` fallback for non-string data signed by Airnodes before version 0.2.0; clients should distinguish those formats rather than treat every response as the newer one.

A request using `x-airnode-sign=false` is unsigned. Where a signature is present, its signer is the Airnode operator, which may be a third-party relay rather than the upstream provider. Checking an attestation does not establish factual accuracy, provider endorsement or investment safety.

## Sources

- [Airnode HTTP interface](https://airnodehub-docs.api3.org/airnode/http-interface) — API3 AirnodeHub
- [Attestation | AirnodeHub](https://airnodehub-docs.api3.org/airnode/attestation) — airnodehub-docs.api3.org

- [Editorial policy](https://tokenprimer.com/editorial-policy)
- [Request a correction](https://tokenprimer.com/corrections)
