> For the complete documentation index, see [llms.txt](https://docs.ohmyapp.io/main/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ohmyapp.io/main/guide/develop_app/command-execute-function/create-logic/flow_option/call-api.md).

# Call the API

내/외부 API를 호출하는 동작을 수행해요.

<div align="left"><figure><img src="/files/MKpzcGFr39TWavtTke7Z" alt="" width="375"><figcaption></figcaption></figure></div>

**Parameter** : 어떤 정보를 요청할 것인지에 대한 값을 보내주는 역할을 해요. API 문서를 참고해서 작성해 주세요.

**Request Header** : API 요청 시 필요한 숨은 정보를 담아서 같이 가져와주는 역할이에요. 예를 들어, 인증 정보(token) 등이에요.&#x20;

* 공공 API 사용 시에는 작성하지 않아도 되는 경우가 대부분이에요.
* 필수 값이 아니므로, 비워둬도 작동해요.&#x20;

**Targer URL** : API에 접속하기 위한 통로 역할을 해요.

**Post Type** : API를 호출하는 방식이에요. POST와 GET 타입이 있으며, 주로 GET을 사용해요.

{% hint style="info" %}
각 API마다 요구하는 값이 다르니 꼭 API 문서에 맞게 작성해 주세요.
{% endhint %}

2024.01.09 Jinny

**Invoke API**

This function facilitates the process of initiating calls to both internal and external APIs.

2023.08.11 Song
