# Execute API Call

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

Available in: Page Flow and Cloud Flow

Toolbox Category: Connections

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

The **`Execute API Call`** block is used to communicate with other apps including third-party software services.

<div align="left"><figure><img src="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2F3taXDjoqCdbOO6RwFYcO%2Fimage.png?alt=media&#x26;token=158167c0-aca2-4529-aa93-aa3f94d07363" alt="" width="438"><figcaption></figcaption></figure></div>

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

* *Connection Name:* [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 name of the [connection](https://docs.zingy.ai/app-editor/connections) to use.
* *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 request data to be used for the API Call. The properties of the provided object will be combined with the [Request Data setting in the connection](https://docs.zingy.ai/connections/services/api-call#request-data).
* *Params*: 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 request parameters to be used for the API Call. The properties of the provided object will be combined with the [Request Parameters setting in the connection](https://docs.zingy.ai/connections/services/api-call#request-parameters).
* *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 [Connection Data](https://docs.zingy.ai/app-editor/page-flow/toolbox-blocks/connection-data) block can be used to access the output of the API call.
* *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 [Connection Error](https://docs.zingy.ai/app-editor/page-flow/toolbox-blocks/connection-error) block can be used to access the error information.

***

## Usage Example

The image below shows an example of the **`Execute API Call`** block.

<figure><img src="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2FDTM42bHaqxWDslT9AHyq%2Fimage.png?alt=media&#x26;token=e1dd798b-7a6e-4eeb-b8aa-04a052be0e7d" alt=""><figcaption><p>Example of Execute API Call block</p></figcaption></figure>
