> ## Documentation Index
> Fetch the complete documentation index at: https://docs.glorycloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Query API Logs

> Retrieve the API call logs associated with a specific API key within a specified time range.



## OpenAPI

````yaml get /go-api/v1/logs
openapi: 3.0.1
info:
  title: GoProxy API Documentation
  description: ''
  version: 1.0.0
servers: []
security: []
tags: []
paths:
  /go-api/v1/logs:
    get:
      tags: []
      summary: Query API Logs
      description: >-
        Retrieve the API call logs associated with a specific API key within a
        specified time range.
      parameters:
        - name: startTime
          in: query
          description: >-
            Start time for the logs in **yyyy-MM-dd HH:mm:ss** format. Please
            ensure that this time is converted to the UTC+8 timezone. If omitted
            or left blank, the earliest logs will be returned.
          required: false
          schema:
            type: string
            title: startTime
        - name: endTime
          in: query
          description: >-
            End time for the logs in **yyyy-MM-dd HH:mm:ss** format. Please
            ensure that this time is converted to the UTC+8 timezone. If omitted
            or left blank, the latest available logs will be returned.
          required: false
          schema:
            type: string
            title: endTime
        - name: apiKey
          in: header
          description: API key used for authentication.
          required: true
          example: ''
          schema:
            type: string
            title: apiKey
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAPICallLogsResponseModel'
          headers: {}
      deprecated: false
      security: []
components:
  schemas:
    GetAPICallLogsResponseModel:
      properties:
        logs:
          items:
            $ref: '#/components/schemas/APICallLogResponseModel'
          type: array
          title: logs
      type: object
      required:
        - logs
      title: GetAPICallLogsResponseModel
    APICallLogResponseModel:
      properties:
        id:
          type: string
          title: id
          description: Unique identifier for the log entry.
          example: log_id_1
        customerId:
          type: string
          title: customerId
          description: Identifier for the customer associated with the API key.
          example: customer_id
        url:
          type: string
          title: url
          description: The requested URL.
          example: /v1/resource
        method:
          type: string
          title: method
          description: HTTP method used for the request.
          example: GET
        success:
          type: boolean
          title: success
          description: Indicates if the request was successful.
          example: true
        requestBody:
          type: string
          title: requestBody
          description: The body of the request.
          example: '[]'
        response:
          type: string
          title: response
          description: The response returned by the server.
          example: '[]'
        createTime:
          type: string
          title: createTime
          description: >-
            Timestamp when the log entry was created, in **yyyy-MM-dd HH:mm:ss**
            format, in the timezone of UTC+8.
          example: 2024-12-01 14:30:00 UTC+8
      type: object
      required:
        - id
        - customerId
        - url
        - method
        - success
        - requestBody
        - response
        - createTime
      title: APICallLogResponseModel

````