# HTTP Request Block

<figure><img src="/files/lYEuAlpeS1CDfVuCo6Wl" alt=""><figcaption></figcaption></figure>

This block makes an HTTP request. Five request methods are supported:

* GET - Used to request the contents of a specified resource
* POST - Used to transfer user data to a specified resource
* PUT - Used to load the contents of the request to the URI specified in the request
* PATCH - Similar to PUT, but applies only to a fragment of the resource
* DELETE - Deletes the specified resource

The screenshot below shows the block settings with a detailed description.

<figure><img src="/files/Fk62zinVFzkwVDXRJGr2" alt=""><figcaption></figcaption></figure>

1. Request method.
2. UrI specifies the path to the requested document.
3. Content type in queries (such as [POST](https://developer.mozilla.org/ru/docs/Web/HTTP/Methods/POST) or [PUT](https://developer.mozilla.org/ru/docs/Web/HTTP/Methods/PUT)), the client tells the server the type of data to send.
4. The request header can be added using the Add header button
5. Setting up a response from the server in the block:

* Response type. The response format can be in three options: json, text, base64. For json, the Data path setting is available
* The response data can be written to a variable or workflow table

**Data path**

<figure><img src="/files/rOzzF0D5DcuZmW1x76z1" alt=""><figcaption></figcaption></figure>

If you want to receive part of the json response data, you can use the Data path setting.For example, when the response returns this data:

{

"status": 200,

"data": {

"name": "Prices",

"values": \[

{ "id": 1, "value": 4000 },

{ "id": 2, "value": 24000 }

]

}

}

To obtain values array, write data.values as a path. And to get the first value of the array values, write data.values.0.

\\


---

# Agent Instructions: 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.goless.com/blocks/general/http-request-block.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.
