# Viewing Real-time API Logs

If there is the need to confirm all data transferred during the calling of APIs, they can be viewed via the online console to make it easier for developers to debug, and to provide detailed information for developers to perform analysis. Users can view all data transmitted during API calls in the Online Console. This feature is useful for developers for debugging and data analysis.

### Enabling Setting File for Tracking Logs <a href="#toc164347066" id="toc164347066"></a>

1. Go to **System Configs** > **Setting** to view the list of all configurations.
2. Enter **TSMP\_ONLINE\_CONSOLE** in the keyword field to search. If the returned value is *false*, click on the ![](/files/9i0fyoPmSWZyQ9ClWSA4) icon to access the update page.

![](/files/MUTXJUEI60wr5XVxUCcq)

3. Update the value to *true*, and click **Update** to apply the changes and enable tracing.

![](/files/FDlgCkFOOnRIIWoxNPyu)

### Calling APIs <a href="#toc164347067" id="toc164347067"></a>

A new tab with the online console page opened needs to be prepared in advance before calling; you can go to 10.3 first to refer to the steps.

1. Go to **API Management** > **API List**, select an API and click on the ![](/files/rXFpauJmc3oZbGKioVI1) icon to access the API Test area.

![](/files/qz6l76mcIYkQ9PufeEgy)

2. In the **Authorization** field, select **No Auth**, then click **Test**.
3. Review the response. A status code of *200* indicates a successful API call.

![](/files/nbHuJypDTlPJPfRzCYIS)

### Tracking Logs through Admin Console <a href="#toc164347068" id="toc164347068"></a>

1. Go to **System Configs** > **Online Console** to enter the page.
2. Verify that the **state** field is set to **OPEN** to view the API logs. The example is shown below.

![](/files/Xkc3Gy9UwKBdoDIA92YR)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tpi.dev/most-common-use-cases/viewing-real-time-api-logs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
