{
  "openapi" : "3.1.0",
  "info" : {
    "title" : "Access Log Entries REST API",
    "description" : "API for querying Access Log Entries",
    "version" : "v1"
  },
  "servers" : [ {
    "url" : "https://apis.objectsgrid.com"
  } ],
  "paths" : {
    "/accesslogentries" : {
      "get" : {
        "summary" : "Query Access Log Entries",
        "operationId" : "queryAccessLogEntries",
        "description" : "This operation supports Elastic Search Query DSL query format\n",
        "security" : [ {
          "accessTokenAuth" : [ ]
        } ],
        "parameters" : [ {
          "in" : "header",
          "name" : "X-ObjectsGrid-AccessPoint",
          "description" : "EU or US depending on where your Organization Account is located",
          "schema" : {
            "type" : "string",
            "enum" : [ "EU", "US" ]
          },
          "required" : true
        }, {
          "in" : "query",
          "name" : "query",
          "schema" : {
            "type" : "string"
          },
          "description" : "Elastic Search Query DSL for querying service Accounts.",
          "example" : "{ \"query\": { \"match_all\": {} } }"
        }, {
          "in" : "query",
          "name" : "from",
          "schema" : {
            "type" : "integer"
          },
          "description" : "Defines the starting record number for retrieval."
        }, {
          "in" : "query",
          "name" : "size",
          "schema" : {
            "type" : "integer"
          },
          "description" : "Defines the number of records to retrieve."
        }, {
          "in" : "header",
          "name" : "X-ObjectsGrid-RestApiVersion",
          "description" : "This header allows targeting an API version.\nIf you want to target the latest API version set its value to 'latest'\nIf you want to target the latest stable API version set its value to 'stable'\n",
          "schema" : {
            "type" : "string"
          },
          "required" : false
        }, {
          "in" : "header",
          "name" : "X-ObjectsGrid-SessionID",
          "description" : "This header allows you to provide a Session ID to be traced through the request stack and returned in the response.\n",
          "schema" : {
            "type" : "string"
          },
          "required" : false
        } ],
        "responses" : {
          "200" : {
            "description" : "Successfully listed the Access Log Entries",
            "headers" : {
              "X-ObjectsGrid-CorrelationID" : {
                "description" : "The Correlation ID is a unique value generated by ObjectsGrid and used for troubleshooting issues",
                "schema" : {
                  "type" : "string"
                }
              },
              "X-ObjectsGrid-SessionID" : {
                "description" : "If your request contained this header, it will be included in the response",
                "schema" : {
                  "type" : "string"
                }
              }
            },
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "https://objectsgrid.com/.well-known/objects-catalog/AccessLogEntry/v1/schema.json"
                  }
                }
              }
            }
          },
          "400" : {
            "description" : "Bad request",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "https://objectsgrid.com/.well-known/objects-catalog/ErrorResponse/v1/schema.json"
                }
              }
            }
          },
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "https://objectsgrid.com/.well-known/objects-catalog/ErrorResponse/v1/schema.json"
                }
              }
            }
          },
          "429" : {
            "description" : "Too Many Requests - rate limited",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "https://objectsgrid.com/.well-known/objects-catalog/ErrorResponse/v1/schema.json"
                }
              }
            }
          },
          "500" : {
            "description" : "Internal Server Error",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "https://objectsgrid.com/.well-known/objects-catalog/ErrorResponse/v1/schema.json"
                }
              }
            }
          }
        }
      }
    }
  },
  "components" : {
    "securitySchemes" : {
      "accessTokenAuth" : {
        "type" : "http",
        "scheme" : "bearer",
        "bearerFormat" : "Bearer JWT",
        "description" : "An ObjectsGrid access token (a JWT), sent as 'Authorization: Bearer <token>': from POST /oauth2/token, valid 1 hour, or an API key: a service account's from the bootstrap of an Organization Account created without signing in, valid 90 days; a public service account's (POST /serviceaccounts/{id}/apikey, or the bootstrap's anonymous one), without expiry, until its account is disabled or deleted."
      }
    }
  }
}