> For the complete documentation index, see [llms.txt](https://docs.offblocks.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.offblocks.xyz/developer-guides/step-by-step-guide/request-preparation.md).

# Request Preparation

{% hint style="info" %}
This step assumes you have successfully authenticated your API credentials using [Authentication](/developer-guides/step-by-step-guide/authentication.md)
{% endhint %}

{% hint style="info" %}
This step is not strictly required if you are using our Postman collection as request signatures, content digests and idempotency keys are generated automatically on every request provided that correct variables are set in your Postman environment.
{% endhint %}

Now that you can make authenticated requests to the API, you need to prepare your requests to be processed successfully by our API.

First, you need to sign your requests with HTTP message signatures and include content digest header for requests with request body. To do so, please follow [Request Signatures](/developer-guides/api-integration/request-signatures.md) guide where you can find details on how to generate signing key pairs and set up our API so that your public key is recognised by us.

Second, for all modification requests (`POST`, `PUT`, `PATCH` and `DELETE`) you need to provide a unique idempotency key to avoid duplicated processing of requests due to networking issues. To do so, please follow [Idempotency](/developer-guides/api-integration/idempotency.md)guide.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.offblocks.xyz/developer-guides/step-by-step-guide/request-preparation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
