> For the complete documentation index, see [llms.txt](https://docs.skyone.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.skyone.cloud/english/skyone-studio/integrations/flows/triggers-of-a-flow/api-gateway-triggers-adding-and-setting.md).

# API Gateway Triggers: Adding and Setting

This trigger, unlike the others, executes the flow in conjunction with an API Gateway configured within Skyone Studio.

Learn how to add and configure an API Gateway Trigger below:

* [Add API Gateway Trigger](#add-api-gateway-trigger)
  * [Settings](#settings)

### Add API Gateway Trigger <a href="#add-api-gateway-trigger" id="add-api-gateway-trigger"></a>

To add an API Gateway trigger, follow these steps:

1. Click on "**Start with a trigger".**
2. Click on the plus sign of the "**API Gateway"** option. You will then open the modal to configure it and view more information.
3. This modal is divided into two areas: **Header** and **Settings**.

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

{% hint style="info" %}
[Find out about the Module Header here](/english/skyone-studio/integrations/flows/module-header.md).
{% endhint %}

#### Settings <a href="#settings" id="settings"></a>

Select the **API Gateway**, **Version** and **Route** fields previously registered.

{% hint style="warning" %}
It is not possible to use the same route in more than one API Gateway Trigger.
{% endhint %}

In addition, the settings screen has more items:

* **Trigger URL**: After selecting the previous settings, the Trigger URL will be displayed.
* **OAuth2 Token URL:** This field is shown for OAuth2 types and allows generating the OAuth2 token. To do so, make a POST request to the displayed URL using the provided request example. [Read more](/english/skyone-studio/api-gateway.md#oauth2).
* **Use JSON Schema in the request (optional):** Enables you to send a JSON Schema for validation by the API Gateway.
* **Request Specification:** The Body and Query fields are optional.

{% hint style="info" %}
The BODY and QUERY data entered here will appear, respectively, as the **body** and **query** parameters of the API Gateway Trigger in the configuration of subsequent modules.
{% endhint %}

To finalize the trigger settings, click on "**Save**".

Read also:

* [Edit trigger](/english/skyone-studio/integrations/flows/editing-triggers-and-modules.md)
* [Use case: API Gateway trigger parameters](/english/skyone-studio/how-to/use-case-api-gateway-trigger-parameters.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.skyone.cloud/english/skyone-studio/integrations/flows/triggers-of-a-flow/api-gateway-triggers-adding-and-setting.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
