# API Issuance History

## 1. API Issuance History

1\) Once you receive an API token, you can check the status, expiration date, and API scope for the current token in \[External APIs] - \[History].

<figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2F0zjXWfY5nyNJRd8L5phA%2Fimage.png?alt=media&#x26;token=c1e203d9-496f-4419-8b19-8eac46984914" alt=""><figcaption><p>[Screen] API Issuance History</p></figcaption></figure>

2\) By selecting the API scope icon, you can view a list of APIs available for the current token.

<figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2Fgit-blob-eeee71a78bba59f4f39a2faa26959dd908afdd8e%2Fimage%20(28).png?alt=media" alt=""><figcaption><p>[Screen] API Query Scope</p></figcaption></figure>

## 2. API Invocation

> Set the Authorization Header with the previously issued token.

{% code title="#CURL Command Sample" overflow="wrap" %}

```
curl -X POST http://${API-GATEWAY}/api/pl/list/service/2 \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer [token]
```

{% endcode %}

1. ```
   curl -X POST http://${API-GATEWAY}/api/pl/list/service/2 \
   ```

{% hint style="info" %}

* **${API-GATEWAY} :** Enter the domain or IP:port information to connect to the API gateway.
  {% endhint %}

2. <pre><code><strong>-H 'Content-Type: application/json' \
   </strong></code></pre>
3. <pre><code><strong>-H 'Authorization: Bearer [token]
   </strong></code></pre>

{% hint style="info" %}
**\[token] :** Enter 'Bearer' followed by a space, then paste the issued token.
{% endhint %}

## 3. API Types

1\) Available API types can be checked below

{% embed url="<https://cocktailcloud.gitbook.io/openapi-en/>" %}
\[Available API List]
{% endembed %}
