# Example - Creating a Workflow in Aerofiler

In this example, we will demonstrate how to create an Aerofiler workflow using the API. We will begin with an Aerofiler workflow with three fields:

* Counterparty
* Start Date
* Purpose

In Aerofiler, this should appear as follows:

<figure><img src="/files/4mA8K9RnY8Ta0MbVX0vo" alt=""><figcaption></figcaption></figure>

Go to Settings -> Organization -> API Keys. If needed, generate an API key by clicking "Create API Key":

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

Then click "View API". To begin, click "Authorize" and then enter your API key:

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

Next, retrieve a list of available workflows:

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

Then, copy  the id from the NDA workflow:

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

Go to the following GET endpoint, click "Try it out" and paste the id:

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

The response will return the specific parameters used for the workflow:

![](/files/vjocYrtrBewQrUR4HIfO)

Then, go to the following POST endpoint, click "Try it out and paste the id:

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

This will initially return some boilerplate code:

<figure><img src="/files/7XUtPzWDRlb80KoSYFNz" alt=""><figcaption></figcaption></figure>

You can test the workflow in Aerofiler by completing the parameters from the GET request:

&#x20;

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

Clicking "Execute" should create the workflow in Aerofiler:

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

The output will also produce a `curl` command, including the endpoint you should use (boxed in red below) when integrating with other applications:

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

If there are errors, further details will be provided in the response:

<figure><img src="/files/bAa09HBsXT0t9yDWo0QK" alt=""><figcaption></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://adminguidesgitbook.aerofiler.com.au/general/api-keys/example-creating-a-workflow-in-aerofiler.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.
