# Call the API

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

<div align="left"><figure><img src="https://3976660509-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDgfvhQgmY9NbRK0Sln7j%2Fuploads%2FtQ5er17Duv0xrGmtMRl4%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202024-01-09%20%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE%202.43.10.png?alt=media&#x26;token=fc7d7b2a-bd24-4520-b26d-7eff51d100e4" 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
