# Execute API Call

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

Available in: Page Flow and Cloud Flow

Toolbox Category: Connections

Block Type: [Regular](/app-editor/page-flow/block-anatomy.md#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="/files/48NiPE2Rsm34PUHq2hYL" alt="" width="438"><figcaption></figcaption></figure></div>

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

* *Connection Name:* [Value Parameter](/app-editor/page-flow/block-anatomy.md#value-parameters) that accepts a [*text*](/app-editor/page-flow/references/value-types.md) value representing the name of the [connection](/app-editor/connections.md) to use.
* *Data*: Optional [Value Parameter](/app-editor/page-flow/block-anatomy.md#value-parameters) that accepts an [object](/app-editor/page-flow/references/value-types.md) 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](/app-editor/connections/services/api-call.md#request-data).
* *Params*: Optional [Value Parameter](/app-editor/page-flow/block-anatomy.md#value-parameters) that accepts an [object](/app-editor/page-flow/references/value-types.md) 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](/app-editor/connections/services/api-call.md#request-parameters).
* *Success Tasks*: a [Flow Parameter](/app-editor/page-flow/block-anatomy.md#flow-parameters) where you connect blocks that specify what you want done when the operation completes successfully. The [Connection Data](/app-editor/page-flow/toolbox-blocks/connection-data.md) block can be used to access the output of the API call.
* *Fail Tasks*: a [Flow Parameter](/app-editor/page-flow/block-anatomy.md#flow-parameters) where you connect blocks that specify what you want done when the operation reports an error. The [Connection Error](/app-editor/page-flow/toolbox-blocks/connection-error.md) 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="/files/DhMOr6vntP6vS3g91sEO" alt=""><figcaption><p>Example of Execute API Call block</p></figcaption></figure>


---

# 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.zingy.ai/app-editor/page-flow/toolbox-blocks/execute-api-call.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.
