API Logs

The API Logs allow you to view the logs of the API, including information such as request ID, response code, URL, Amazon ID, IP address, and method. This helps users understand API performance, identify which APIs are generating errors, and improve the API.

To View the API Logs

  • Click on Reports in the side navigation > Logs > API Logs.

Filters

  • You can also filter the report based on the fields listed below:
    1. Enter or select the field.
    2. Click Search.

Field

Description

Request Id

Unique Identifier of API request.

Response Code

Response of the API.

100: The client should continue the request or ignore the response if the request is already finished.200: The request succeeded.300: The request has more than one possible response.400: The server could not understand the request due to invalid syntax. 500: The server has encountered a situation it does not know how to handle. 502: This error response means that the server, while working as a gateway to get a response needed to handle the request, got an invalid response.

Method

Type of request:

Get: To ReadPost: To CreatePut: To Update/replacePatch: To Update Delete: To Delete

IP

IP of device from where the request has been generated.

URL

URL of API.

Amazon ID

AWS gateway request id to check logs.

Operator

Filter with respect to total response time by the below operator:

Equal: Equal to total response time.Greater than: Greater than to total response time.Greater than Equal To: Greater than equal to total response time. Less Than: Less than to total response time. Less Than Equal to: Less than equal to total response time.

Total Response Time(ms)

Total time taken to respond to the request

Date-Time

Date and time of instance when the request came to the servers.

📘

The Request ID field in the API Logs section is a clickable link. When clicked, it redirects to a detailed view of the specific API request.

Detailed View of the API Request

  • The detailed view of the API request appears as a table with the following fields:
FieldDescription
IDUnique identifier for the API request.
Amazon IDSpecific identifier for the Amazon Web Service, if applicable.
User IDThe unique identifier of the user making the request.
StartTimestamp indicating when the API request started.
URLThe endpoint to which the API request was made.
Response CodeStatus code returned by the API (e.g., 200 for success).
Response TimeTime taken by the server to respond to the API call (in seconds).
MethodHTTP method used for the request (e.g., POST or GET).
IPIP address of the client making the request.

Header Section

FieldDescription
JSON FormatMetadata for the API request, including content type, authorization, and additional headers required by the API.

Body Section

FieldDescription
JSON FormatPayload sent along with the API request, including the data or parameters required for processing the API request.

Response Section

FieldDescription
JSON FormatServer's response to the API request, including status messages, returned data, or error details if unsuccessful.