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.
FieldDescription
Request IdUnique Identifier of API request.
Response CodeResponse 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: The server, while working as a gateway, got an invalid response while handling the request.
MethodType of request:

- GET: To Read.
- POST: To Create.
- PUT: To Update/Replace.
- PATCH: To Update.
- DELETE: To Delete.
IPIP of the device from where the request has been generated.
URLURL of the API.
Amazon IDAWS gateway request ID to check logs.
OperatorFilter with respect to total response time using the below operators:

- Equal: Equal to total response time.
- Greater than: Greater than total response time.
- Greater than Equal To: Greater than or equal to total response time.
- Less Than: Less than total response time.
- Less Than Equal To: Less than or equal to total response time.
Total Response Time (ms)Total time taken to respond to the request.
Date-TimeDate and time of the instance when the request reached 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.