# Outgoing API Calls

It's also quite common to want to send data to a third party API (perhaps even your own) at some point in a workflow execution. Fortunately, we've build a Custom API Block to handle just that. To add a Custom API Block, simple add it at any point in your workflow as seen below.

![Custom API Block is found under Utilities](/files/hsJbuW4JBmiIATEatC7S) ![Configure the Custom API Block method, authentication, etc](/files/gjGAt3xhJ47xjBP2Eydz)

You can easily configure the Custom API block authentication (if applicable), method, and any header or body parameters you want sent out. Of course, you can use any variable data exposed in previous blocks by using the variable selector.

If you're sending data to your own API, we've found it useful to be able to identify which workflow and user the incoming request is coming from. To alleviate that problem, whenever an outgoing API call is sent via the Custom API Block, we attach the following headers:

* `X-Alloy-ParentWorkflowId` - The Forge Parent Workflow Id
* `X-Alloy-WorkflowId` - The Forge Child Workflow Id
* `X-Alloy-UserId` - The Forge User Id


---

# 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://gregg.gitbook.io/alloy-developer/outgoing-api-calls.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.
