> 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/skyone-studio/how-to/parametros-de-url-no-api-gateway.md).

# Parâmetros de URL no API Gateway

Em alguns casos, pode ser necessário coletar o conteúdo da URL de uma chamada de API. Isso pode ser feito usando os parâmetros de API Gateway do **Skyone Studio**.&#x20;

Para isso, siga os seguintes passos:

1. Acesse o menu "**API Gateway**", localizado na lateral esquerda da tela. A tela abaixo será exibida:

<figure><img src="https://2406186417-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlGHvosl2xodpQaXzCzxY%2Fuploads%2FPaLHBXzbIFNqPIi3eiFZ%2F30F9DD30-7DB7-472B-8962-B31017816435.png?alt=media&amp;token=d7851d24-18b3-40f3-9f52-c8e0f5c07f80" alt=""><figcaption></figcaption></figure>

2. Clique em "**Criar API Gateway**" ou selecione uma já existente para editar. Se for o seu primeiro API Gateway, [saiba como criá-lo aqui](https://docs.skyone.cloud/skyone-studio/api-gateway.md#criar-um-api-gateway).
3. Ao selecionar o API Gateway, a tela abaixo será exibida:

<figure><img src="https://2406186417-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlGHvosl2xodpQaXzCzxY%2Fuploads%2FXAuLIm4i6RJsA7vu7TZu%2F93B2D24C-6EFC-4DB0-9DF7-0100852228E8.png?alt=media&amp;token=fbf71d12-bebd-45dc-a6ab-511d5b9bf15f" alt=""><figcaption></figcaption></figure>

4. Clique no ícone de edição da versão. Caso não possua uma versão, [saiba como criá-lo aqui.](https://docs.skyone.cloud/skyone-studio/api-gateway.md#criacao-de-uma-versao)
5. Na tela de edição da versão, clique em "**Nova rota"**. Preencha os campos com os dados necessários. Em "**URL da Rota**", prefixe o parâmetro que deseja receber com **":"**, como no exemplo abaixo:&#x20;

<figure><img src="https://2406186417-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlGHvosl2xodpQaXzCzxY%2Fuploads%2FalMiPjv8w3ntkDPMgeh4%2F82A95673-E7F7-4176-9110-D9574A7B2987.png?alt=media&amp;token=e98c8ccd-34d1-4488-bfd9-2c1ed20d68d3" alt=""><figcaption></figcaption></figure>

6. Em seguida, salve as alterações. Dessa forma, o parâmetro **id** estará disponível no fluxo.
7. Na configuração do gatilho no fluxo, você pode definir um valor, por exemplo:

<figure><img src="https://2406186417-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlGHvosl2xodpQaXzCzxY%2Fuploads%2Fh0Tm5plVLzMWxW7zbCBf%2FCC173236-17AA-49FC-ABE8-E25BC858AF89.png?alt=media&amp;token=8b1b8ddc-f5c7-4dbf-8545-497074b2ca0b" alt=""><figcaption></figcaption></figure>

E pode trabalhar com os valores nos próximos componentes:<br>

<figure><img src="https://2406186417-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlGHvosl2xodpQaXzCzxY%2Fuploads%2FiNlxBeURgfb7OkCkOgJM%2F0D7B4B8A-9690-413B-98C6-ECFBC49F5C88.png?alt=media&amp;token=4097be9b-d1d7-4d1d-b7b9-6b4b649ef436" alt=""><figcaption></figcaption></figure>

Para fazer a chamada basta trocar a parte da URL prefixada com os ":" pelo valor real.&#x20;

Leia também:&#x20;

[Caso de uso: parâmetros de gatilho API Gateway](https://docs.skyone.cloud/skyone-studio/how-to/caso-de-uso-parametros-de-gatilho-api-gateway.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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.skyone.cloud/skyone-studio/how-to/parametros-de-url-no-api-gateway.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
