# HTTP Post

{% hint style="info" %}
**Block Information**

Available in: Page Flow and Cloud Flow

Toolbox Category: HTTP/REST

Block Type: [Regular](https://docs.zingy.ai/app-editor/block-anatomy#regular-block)
{% endhint %}

The **`HTTP Post`** block is used to send a [HTTP Post request](https://en.wikipedia.org/wiki/POST_\(HTTP\)) from your page or form to a specified URL.

<div align="left"><figure><img src="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2Fz3pt3GKtQT9zmq4lqkOy%2Fimage.png?alt=media&#x26;token=c0b48a0c-1d8a-4012-97fe-b4d8035a4377" alt="" width="383"><figcaption><p>HTTP Post block</p></figcaption></figure></div>

{% hint style="danger" %}
NOTE:

Create a [API Call](https://docs.zingy.ai/app-editor/connections/services/api-call) [Connection](https://docs.zingy.ai/app-editor/connections) and use the [Execute API Call](https://docs.zingy.ai/app-editor/page-flow/toolbox-blocks/execute-api-call) block instead, if any of the following apply:

* Sensitive or secret information needs to be sent in the *Data* value parameter.
* The server you want to communicate with requires setting specific HTTP headers and or use authentication.
  {% endhint %}

The block consists of the following (from top to bottom):

* *URL:* [Value Parameter](https://docs.zingy.ai/app-editor/block-anatomy#value-parameters) that accepts a [*text*](https://docs.zingy.ai/app-editor/page-flow/references/value-types) value representing the URL where you want the request to be sent.
* *Data*: Optional [Value Parameter](https://docs.zingy.ai/app-editor/block-anatomy#value-parameters) that accepts an [object](https://docs.zingy.ai/app-editor/page-flow/references/value-types) value representing the data to be sent.
* *Success Tasks*: a [Flow Parameter](https://docs.zingy.ai/app-editor/block-anatomy#flow-parameters) where you connect blocks that specify what you want done when the operation completes successfully. The [HTTP Data](https://docs.zingy.ai/app-editor/page-flow/toolbox-blocks/http-data) block can be used to access the output (if any).
* *Fail Tasks*: a [Flow Parameter](https://docs.zingy.ai/app-editor/block-anatomy#flow-parameters) where you connect blocks that specify what you want done when the operation reports an error. The [HTTP Error](https://docs.zingy.ai/app-editor/page-flow/toolbox-blocks/http-error) block can be used to access the error information.
