---
updatedAt: 2026-04-22T17:08:46.000Z
agentTools:
  projectIndex: https://developer.vyasa.com/llms.txt
---

# Search for events

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Layar API Documentation",
    "version": "4.1.4",
    "contact": {
      "name": "Certara AI Support",
      "email": "AI-Support@Certara.com",
      "url": "https://vyasa.readme.io/"
    }
  },
  "servers": [
    {
      "url": "BASE_PATH"
    }
  ],
  "paths": {
    "/layar/event": {
      "get": {
        "operationId": "searchEvents",
        "parameters": [
          {
            "$ref": "#/components/parameters/start"
          },
          {
            "$ref": "#/components/parameters/rows"
          },
          {
            "$ref": "#/components/parameters/q"
          },
          {
            "$ref": "#/components/parameters/sort"
          },
          {
            "$ref": "#/components/parameters/sortOrder"
          },
          {
            "$ref": "#/components/parameters/fromDate"
          },
          {
            "$ref": "#/components/parameters/toDate"
          },
          {
            "in": "query",
            "name": "subjectId",
            "schema": {
              "type": "string"
            },
            "description": "limit results to those tagged with the given subject ID"
          },
          {
            "in": "query",
            "name": "projectId",
            "schema": {
              "type": "string"
            },
            "description": "limit results to those tagged with the given project ID"
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Total-Count": {
                "$ref": "#/components/headers/xTotalCount"
              }
            },
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Event"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Search for events",
        "tags": [
          "event"
        ]
      }
    }
  },
  "tags": [
    {
      "description": "Event",
      "name": "event"
    }
  ],
  "components": {
    "headers": {
      "xTotalCount": {
        "schema": {
          "type": "integer"
        },
        "description": "total number of results"
      }
    },
    "parameters": {
      "fromDate": {
        "in": "query",
        "name": "fromDate",
        "schema": {
          "type": "string",
          "format": "date"
        },
        "description": "beginning of date range to return"
      },
      "q": {
        "in": "query",
        "name": "q",
        "schema": {
          "type": "string"
        },
        "description": "the query string to search for"
      },
      "rows": {
        "in": "query",
        "name": "rows",
        "schema": {
          "type": "integer"
        },
        "description": "the number of rows to return"
      },
      "sort": {
        "in": "query",
        "name": "sort",
        "schema": {
          "type": "string"
        },
        "description": "sort results by the given property"
      },
      "sortOrder": {
        "in": "query",
        "name": "order",
        "schema": {
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ]
        },
        "description": "what order to return sorted results"
      },
      "start": {
        "in": "query",
        "name": "start",
        "schema": {
          "type": "integer"
        },
        "description": "the start offset for the row"
      },
      "toDate": {
        "in": "query",
        "name": "toDate",
        "schema": {
          "type": "string",
          "format": "date"
        },
        "description": "end of date range to return"
      }
    },
    "schemas": {
      "Event": {
        "properties": {
          "attributes": {
            "type": "object"
          },
          "createdByUser": {
            "format": "int64",
            "type": "integer"
          },
          "dateIndexed": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "projectId": {
            "type": "string"
          },
          "subjectId": {
            "type": "string"
          },
          "userId": {
            "format": "int64",
            "type": "integer"
          }
        },
        "title": "Event",
        "type": "object"
      }
    },
    "securitySchemes": {
      "oAuth2ClientCredentials": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "CONNECT_API_URL/oauth/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "oAuth2ClientCredentials": []
    }
  ]
}
```