# What is an API gateway?

* An API gateway is the pathway traffic endpoint to an API. An API can be linked to multiple API gateways; however, one API gateway can use only one API at a time.&#x20;
* &#x20;In the API gateway, users can define the number of requests daily or monthly or the total amount of requests the API should accept.&#x20;
* API gateways can also have tags.&#x20;
* Suppose a Validation pipeline is to be applied to data before being updated in entities (during the execution of the API). In that case, the Validation pipeline can be configured in the API gateway in the Entities tab.&#x20;
* If a Flow is to be triggered, the Flow can be configured in the API gateway in the Entities tab.

{% embed url="<https://media.langstack.com/documentation/media/images/code/training_manual/chapter_2/ch2whatisanapigateway.png>" %}


---

# 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.langstack.com/welcome/get-started/learn-langstack/basics-and-essentials/what-is-an-api-gateway.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.
