---
updatedAt: 2025-06-05T21:04:37.000Z
agentTools:
  projectIndex: https://lyyti.readme.io/llms.txt
---

# events

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api-settings",
    "version": "2"
  },
  "servers": [
    {
      "url": "https://api.lyyti.com/v2"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/events/EVENT_ID?PARAM1=123&PARAM2=456": {
      "get": {
        "summary": "events",
        "description": "",
        "operationId": "events",
        "parameters": [
          {
            "name": "event_id",
            "in": "path",
            "description": "If omitted, all authorized events are returned.",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "category",
            "in": "query",
            "description": "Only list events with a category ID that matches this parameter (including any sub-categories of the given category).",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "created_utc",
            "in": "query",
            "description": "This filter can be for example \"123456\" (exact second), \"-123456\" (before, inclusive), \"123456-\" (after, inclusive) or \"1230-1240\" (range, inclusive).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "modified_utc",
            "in": "query",
            "description": "This filter can be for example \"123456\" (exact second), \"-123456\" (before, inclusive), \"123456-\" (after, inclusive) or \"1230-1240\" (range, inclusive).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "start_time",
            "in": "query",
            "description": "This filter can be for example \"123456\" (exact second), \"-123456\" (before, inclusive), \"123456-\" (after, inclusive) or \"1230-1240\" (range, inclusive).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "start_time_utc",
            "in": "query",
            "description": "This filter can be for example \"123456\" (exact second), \"-123456\" (before, inclusive), \"123456-\" (after, inclusive) or \"1230-1240\" (range, inclusive).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "end_time",
            "in": "query",
            "description": "This filter can be for example \"123456\" (exact second), \"-123456\" (before, inclusive), \"123456-\" (after, inclusive) or \"1230-1240\" (range, inclusive).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "end_time_utc",
            "in": "query",
            "description": "This filter can be for example \"123456\" (exact second), \"-123456\" (before, inclusive), \"123456-\" (after, inclusive) or \"1230-1240\" (range, inclusive).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "enrollment_open",
            "in": "query",
            "description": "This filter can be for example \"123456\" (exact second), \"-123456\" (before, inclusive), \"123456-\" (after, inclusive) or \"1230-1240\" (range, inclusive).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "enrollment_open_utc",
            "in": "query",
            "description": "This filter can be for example \"123456\" (exact second), \"-123456\" (before, inclusive), \"123456-\" (after, inclusive) or \"1230-1240\" (range, inclusive).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "enrollment_deadline",
            "in": "query",
            "description": "This filter can be for example \"123456\" (exact second), \"-123456\" (before, inclusive), \"123456-\" (after, inclusive) or \"1230-1240\" (range, inclusive).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "enrollment_deadline_utc",
            "in": "query",
            "description": "This filter can be for example \"123456\" (exact second), \"-123456\" (before, inclusive), \"123456-\" (after, inclusive) or \"1230-1240\" (range, inclusive).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "canceling_deadline",
            "in": "query",
            "description": "This filter can be for example \"123456\" (exact second), \"-123456\" (before, inclusive), \"123456-\" (after, inclusive) or \"1230-1240\" (range, inclusive).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "cancelling_deadline_utc",
            "in": "query",
            "description": "This filter can be for example \"123456\" (exact second), \"-123456\" (before, inclusive), \"123456-\" (after, inclusive) or \"1230-1240\" (range, inclusive).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "editing_deadline",
            "in": "query",
            "description": "This filter can be for example \"123456\" (exact second), \"-123456\" (before, inclusive), \"123456-\" (after, inclusive) or \"1230-1240\" (range, inclusive).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "editing_deadline_utc",
            "in": "query",
            "description": "This filter can be for example \"123456\" (exact second), \"-123456\" (before, inclusive), \"123456-\" (after, inclusive) or \"1230-1240\" (range, inclusive).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "hide_custom_field_options",
            "in": "query",
            "description": "All event custom field options are included in every event for legacy reasons. When requesting a lot of events, this parameter should probably be set to 1, to hide the options. All custom field information can be found from the event_custom_fields resource.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "custom_field_id",
            "in": "query",
            "description": "Filter in events for which this custom event field has been answered",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "custom_field_answer",
            "in": "query",
            "description": "Filter in events for which this particular answer has been given to a custom field (NOTE: Also requires custom_field_id)",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "archived",
            "in": "query",
            "description": "Fetch archived events by setting this parameter to 1",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            },
            "required": false
          },
          {
            "name": "participant_count",
            "in": "query",
            "description": "The number of reserved participants.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "participant_capacity",
            "in": "query",
            "description": "The maximum participant capacity, empty if none is set.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "privacy_policies",
            "in": "query",
            "description": "Include event's privacy policies in the result by setting this parameter value to 1.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "optional_fields",
            "in": "query",
            "description": "valid options: 'website' (to fetch the event website link)",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": ""
            }
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": "0"
            },
            "description": "For pagination, combine with limit."
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": "10000"
            },
            "description": "How many participants to return. Defaults to 10k, but we recommend setting a lower value. Use with offset for pagination."
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"method\": \"GET\",\n    \"call\": \"events\",\n    \"parameters\": {},\n    \"results\": {\n        \"abc123\": {\n            \"eid\":123,\n            \"id\": \"abc123\",\n            \"event_id\":123,\n            \"event_code\":\"abc123\",\n            \"company_id\":456,\n            \"owner_id\":789,\n            \"owner\": \"clark.kent@dailyplanet.com\",\n            \"owner_name\":\"Clark Kent\",\n            \"relationship\":\"company\",\n            \"start_time_utc\":1583100000,\n            \"end_time_utc\":1717189200,\n            \"enrollment_open_utc\":1574460000,\n            \"enrollment_deadline_utc\":1760562000,\n            \"canceling_deadline_utc\":1760562000,\n            \"editing_deadline_utc\":1760389200,\n            \"timezone\":\"Europe/Helsinki\",\n            \"start_time\": 1460556000,\n            \"end_time\": 1460638800,\n            \"enrollment_open\": 1444338000,\n            \"enrollment_deadline\": 1459760400,\n            \"canceling_deadline\": 1456783140,\n            \"editing_deadline\": 1458338340,\n            \"created_utc\":1596430825,\n            \"modified_utc\":1622642701,\n            \"archived\": 0,\n            \"payable\": 0,\n            \"queue\":null,\n            \"enrollment_type\": \"single\",\n            \"open_code\":\"weekly_meeting_32_A123\",\n            \"enrollment_url\": \"https://www.lyyti.in/weekly_meeting_32_A123\",\n            \"eventsite_url\":null,\n            \"layout_id\":1234,\n            \"map_link\":\"https://www.google.com/maps/search/?api=1&query=address\",\n            \"participant_capacity\": null,\n            \"participant_count\": 12,\n            \"participant_counts\":{\"show\":6,\"noshow\":3,\"reactedyes\":3,\"reactedno\":0,\"notreacted\":0},\n            \"unconfirmed_count\":0,\n            \"group_capacity\":null,\n            \"group_count\":null,\n            \"participant_types\":null,\n            \"location_type\":\"hybrid\",\n            \"online_event_link\":\"https://www.lyyti.fi\",\n            \"reservation_time_limit\":20,\n            \"shared_rights\":null,\n            \"language\":[\"en\"],\n            \"name\": {\n                \"en\": \"Weekly Meeting 32\"\n            },\n            \"location\": {\n                \"en\": \"5th floor, meeting room\"\n            },\n            \"address\": {\n                \"en\": \"123 Street Av., 54321 Metropolis\"\n            },\n            \"homepage\":{\n                \"en\":\"\"\n            },\n            \"homepage_title\":{\n                \"en\":\"\"\n            },\n            \"participant_type_heading\":{\n                \"en\":\"Participant type\"\n            },\n            \"online_event_link_title\":{\n                \"en\":\"Lyyti\"\n            },\n            \"contact_person\":{\n                \"en\":{\n                    \"name\":\"Clark Kent\",\n                    \"email\":\"clark.kent@dailyplanet.com\"\n                }\n            },\n            \"has_participants\":1,\n            \"category\": {\n                \"1\": {\n                    \"id\": 555,\n                    \"title\": \"Private Calendar\"\n                },\n                \"2\": {\n                    \"id\": 567,\n                    \"title\": \"Internal Meetings\"\n                }\n            },\n            \"custom\": {\n                \"230\": {\n                    \"id\": 456,\n                    \"title\": \"Internal ID\",\n                    \"answer\": 9876\n                }\n            },\n\t\t\t\t\t\t\"webpage_url\": \"https://www.myeventsite.lyyti.com\",\n            \"participants\": \"https://api.lyyti.com/v2/events/abc123/participants\",\n            \"questions\":\"https://api.lyyti.com/v2/events/abc123/questions\",\n            \"url\": \"https://api.lyyti.com/v2/events/abc123\"\n        }\n    },\n    \"results_count\":1,\n    \"parent\": \"https://api.lyyti.com/v2\",\n    \"url\": \"https://api.lyyti.com/v2/events\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "method": {
                      "type": "string",
                      "example": "GET"
                    },
                    "call": {
                      "type": "string",
                      "example": "events"
                    },
                    "parameters": {
                      "type": "object",
                      "properties": {}
                    },
                    "results": {
                      "type": "object",
                      "properties": {
                        "abc123": {
                          "type": "object",
                          "properties": {
                            "eid": {
                              "type": "integer",
                              "example": 123,
                              "default": 0
                            },
                            "id": {
                              "type": "string",
                              "example": "abc123"
                            },
                            "event_id": {
                              "type": "integer",
                              "example": 123,
                              "default": 0
                            },
                            "event_code": {
                              "type": "string",
                              "example": "abc123"
                            },
                            "company_id": {
                              "type": "integer",
                              "example": 456,
                              "default": 0
                            },
                            "owner_id": {
                              "type": "integer",
                              "example": 789,
                              "default": 0
                            },
                            "owner": {
                              "type": "string",
                              "example": "clark.kent@dailyplanet.com"
                            },
                            "owner_name": {
                              "type": "string",
                              "example": "Clark Kent"
                            },
                            "relationship": {
                              "type": "string",
                              "example": "company"
                            },
                            "start_time_utc": {
                              "type": "integer",
                              "example": 1583100000,
                              "default": 0
                            },
                            "end_time_utc": {
                              "type": "integer",
                              "example": 1717189200,
                              "default": 0
                            },
                            "enrollment_open_utc": {
                              "type": "integer",
                              "example": 1574460000,
                              "default": 0
                            },
                            "enrollment_deadline_utc": {
                              "type": "integer",
                              "example": 1760562000,
                              "default": 0
                            },
                            "canceling_deadline_utc": {
                              "type": "integer",
                              "example": 1760562000,
                              "default": 0
                            },
                            "editing_deadline_utc": {
                              "type": "integer",
                              "example": 1760389200,
                              "default": 0
                            },
                            "timezone": {
                              "type": "string",
                              "example": "Europe/Helsinki"
                            },
                            "start_time": {
                              "type": "integer",
                              "example": 1460556000,
                              "default": 0
                            },
                            "end_time": {
                              "type": "integer",
                              "example": 1460638800,
                              "default": 0
                            },
                            "enrollment_open": {
                              "type": "integer",
                              "example": 1444338000,
                              "default": 0
                            },
                            "enrollment_deadline": {
                              "type": "integer",
                              "example": 1459760400,
                              "default": 0
                            },
                            "canceling_deadline": {
                              "type": "integer",
                              "example": 1456783140,
                              "default": 0
                            },
                            "editing_deadline": {
                              "type": "integer",
                              "example": 1458338340,
                              "default": 0
                            },
                            "created_utc": {
                              "type": "integer",
                              "example": 1596430825,
                              "default": 0
                            },
                            "modified_utc": {
                              "type": "integer",
                              "example": 1622642701,
                              "default": 0
                            },
                            "archived": {
                              "type": "integer",
                              "example": 0,
                              "default": 0
                            },
                            "payable": {
                              "type": "integer",
                              "example": 0,
                              "default": 0
                            },
                            "queue": {},
                            "enrollment_type": {
                              "type": "string",
                              "example": "single"
                            },
                            "open_code": {
                              "type": "string",
                              "example": "weekly_meeting_32_A123"
                            },
                            "enrollment_url": {
                              "type": "string",
                              "example": "https://www.lyyti.in/weekly_meeting_32_A123"
                            },
                            "eventsite_url": {},
                            "layout_id": {
                              "type": "integer",
                              "example": 1234,
                              "default": 0
                            },
                            "map_link": {
                              "type": "string",
                              "example": "https://www.google.com/maps/search/?api=1&query=address"
                            },
                            "participant_capacity": {},
                            "participant_count": {
                              "type": "integer",
                              "example": 12,
                              "default": 0
                            },
                            "participant_counts": {
                              "type": "object",
                              "properties": {
                                "show": {
                                  "type": "integer",
                                  "example": 6,
                                  "default": 0
                                },
                                "noshow": {
                                  "type": "integer",
                                  "example": 3,
                                  "default": 0
                                },
                                "reactedyes": {
                                  "type": "integer",
                                  "example": 3,
                                  "default": 0
                                },
                                "reactedno": {
                                  "type": "integer",
                                  "example": 0,
                                  "default": 0
                                },
                                "notreacted": {
                                  "type": "integer",
                                  "example": 0,
                                  "default": 0
                                }
                              }
                            },
                            "unconfirmed_count": {
                              "type": "integer",
                              "example": 0,
                              "default": 0
                            },
                            "group_capacity": {},
                            "group_count": {},
                            "participant_types": {},
                            "location_type": {
                              "type": "string",
                              "example": "hybrid"
                            },
                            "online_event_link": {
                              "type": "string",
                              "example": "https://www.lyyti.fi"
                            },
                            "reservation_time_limit": {
                              "type": "integer",
                              "example": 20,
                              "default": 0
                            },
                            "shared_rights": {},
                            "language": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "example": "en"
                              }
                            },
                            "name": {
                              "type": "object",
                              "properties": {
                                "en": {
                                  "type": "string",
                                  "example": "Weekly Meeting 32"
                                }
                              }
                            },
                            "location": {
                              "type": "object",
                              "properties": {
                                "en": {
                                  "type": "string",
                                  "example": "5th floor, meeting room"
                                }
                              }
                            },
                            "address": {
                              "type": "object",
                              "properties": {
                                "en": {
                                  "type": "string",
                                  "example": "123 Street Av., 54321 Metropolis"
                                }
                              }
                            },
                            "homepage": {
                              "type": "object",
                              "properties": {
                                "en": {
                                  "type": "string",
                                  "example": ""
                                }
                              }
                            },
                            "homepage_title": {
                              "type": "object",
                              "properties": {
                                "en": {
                                  "type": "string",
                                  "example": ""
                                }
                              }
                            },
                            "participant_type_heading": {
                              "type": "object",
                              "properties": {
                                "en": {
                                  "type": "string",
                                  "example": "Participant type"
                                }
                              }
                            },
                            "online_event_link_title": {
                              "type": "object",
                              "properties": {
                                "en": {
                                  "type": "string",
                                  "example": "Lyyti"
                                }
                              }
                            },
                            "contact_person": {
                              "type": "object",
                              "properties": {
                                "en": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "example": "Clark Kent"
                                    },
                                    "email": {
                                      "type": "string",
                                      "example": "clark.kent@dailyplanet.com"
                                    }
                                  }
                                }
                              }
                            },
                            "has_participants": {
                              "type": "integer",
                              "example": 1,
                              "default": 0
                            },
                            "category": {
                              "type": "object",
                              "properties": {
                                "1": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "integer",
                                      "example": 555,
                                      "default": 0
                                    },
                                    "title": {
                                      "type": "string",
                                      "example": "Private Calendar"
                                    }
                                  }
                                },
                                "2": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "integer",
                                      "example": 567,
                                      "default": 0
                                    },
                                    "title": {
                                      "type": "string",
                                      "example": "Internal Meetings"
                                    }
                                  }
                                }
                              }
                            },
                            "custom": {
                              "type": "object",
                              "properties": {
                                "230": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "integer",
                                      "example": 456,
                                      "default": 0
                                    },
                                    "title": {
                                      "type": "string",
                                      "example": "Internal ID"
                                    },
                                    "answer": {
                                      "type": "integer",
                                      "example": 9876,
                                      "default": 0
                                    }
                                  }
                                }
                              }
                            },
                            "webpage_url": {
                              "type": "string",
                              "example": "https://www.myeventsite.lyyti.com"
                            },
                            "participants": {
                              "type": "string",
                              "example": "https://api.lyyti.com/v2/events/abc123/participants"
                            },
                            "questions": {
                              "type": "string",
                              "example": "https://api.lyyti.com/v2/events/abc123/questions"
                            },
                            "url": {
                              "type": "string",
                              "example": "https://api.lyyti.com/v2/events/abc123"
                            }
                          }
                        }
                      }
                    },
                    "results_count": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "parent": {
                      "type": "string",
                      "example": "https://api.lyyti.com/v2"
                    },
                    "url": {
                      "type": "string",
                      "example": "https://api.lyyti.com/v2/events"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "php",
              "code": "<?php\n\n\t$events = lyyti_apiCall('events');\n    \n?>"
            }
          ],
          "samples-languages": [
            "php"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "public_key",
        "value": "apitesti"
      },
      {
        "key": "signature",
        "value": "apitesti"
      },
      {
        "key": "timestamp",
        "value": "1234567890"
      }
    ],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```