> For the complete documentation index, see [llms.txt](https://cocktailcloud.gitbook.io/openapi-en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cocktailcloud.gitbook.io/openapi-en/api-information/api.md).

# API call

API call refers to the process of requesting a specific action from the Cocktail server.

## API call

> Set the Authorization header with the previously issued token

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

1. ```
   curl -X POST http://${API-GATEWAY}/api/pl/list/service/2 \
   ```
   * **${API-GATEWAY} :** Enter the domain or IP:port information to access the API gateway.
2. ```
   -H 'Content-Type: application/json' \
   ```
3. ```
   -H 'Authorization: Bearer [token]
   ```
   * **\[token] :** Enter "Bearer" followed by a space, then paste the issued token.
