> For the complete documentation index, see [llms.txt](https://docs.langstack.com/welcome/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.langstack.com/welcome/get-started/learn-langstack/basics-and-essentials/how-to-work-with-an-api-gateway.md).

# How to work with an API gateway

To create an API gateway directly:

* Click on APIs and integration>API gateway on the left side panel.

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

* Click the \[+ API gateway] button.

![](https://2351945889-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVoxOh7gdjWdmqooFdYBY%2Fuploads%2F8IItsJLmbgly3PhvcxlM%2FAddAPIgateway.png?alt=media\&token=ec8ae828-38df-4b6d-99a9-d5ab07812203)

* To create an API gateway in an API:

1. Go to the API.
2. In the “Select or add default API gateway” field, click the \[+] button.
3. Enter the API gateway name and click the \[Save] button.

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

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

* To select an API gateway in an API:

1. Click on the drop-down menu in the “Select or add default API gateway” field
2. Select the required API gateway.

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