> For the complete documentation index, see [llms.txt](https://docs.superdesk.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.superdesk.org/api-reference/readme/events.md). Agents can also search and read this documentation through its [MCP server](https://docs.superdesk.org/~gitbook/mcp).

# Events

## List events

> Get list of events with elastic search query support

```json
{"openapi":"3.0.2","info":{"title":"Superdesk Production API","version":"2.0"},"servers":[{"url":"/prodapi/v1","description":"Production API v1 Server"}],"security":[{"oauth2Auth":["EVENTS_READ"]}],"components":{"securitySchemes":{"oauth2Auth":{"type":"oauth2","description":"OAuth 2.0 client credentials flow via Superdesk Auth Server.\n\nSee: https://superdesk.readthedocs.io/en/latest/auth_server.html\n","flows":{"clientCredentials":{"tokenUrl":"/api/auth_server/token","scopes":{"ARCHIVE_READ":"Read archive items","DESKS_READ":"Read desks","PLANNING_READ":"Read planning items","CONTACTS_READ":"Read contacts","USERS_READ":"Read users and user availability","ASSIGNMENTS_READ":"Read assignments","EVENTS_READ":"Read events, event files and event history","CONTENT_LISTS_READ":"Read content lists and their items"}}}}},"schemas":{"Event":{"type":"object","description":"Calendar event from the unified planning resource. Fields depend on the\ncontent profile and stored data; optional values may be absent or null.\nCustom vocabulary values use subject.scheme and installation-specific\ndata may appear in extra. Lock fields, _etag, _created, _updated,\n_current_version and fields_meta are not returned.\n\ncoverages contains coverages stored directly on this event.\n_links.plannings contains primary linked planning items with compact\ncoverage summaries; fetch the linked Planning resource for full records.\n_links.assignments is omitted when exclude_assignments=true.\n","allOf":[{"$ref":"#/components/schemas/ItemEditorialMetadata"},{"$ref":"#/components/schemas/ItemDetails"}],"properties":{"_id":{"type":"string"},"guid":{"type":"string"},"name":{"type":"string"},"definition_short":{"type":"string"},"type":{"type":"string","enum":["event"]},"dates":{"$ref":"#/components/schemas/EventDates"},"occur_status":{"$ref":"#/components/schemas/OccurrenceStatus"},"news_coverage_status":{"$ref":"#/components/schemas/NewsCoverageStatus"},"_time_to_be_confirmed":{"type":"boolean"},"completed":{"type":"boolean"},"recurrence_id":{"type":"string","nullable":true},"previous_recurrence_id":{"type":"string","nullable":true},"planning_recurrence_id":{"type":"string","nullable":true},"state":{"type":"string","enum":["draft","active","ingested","scheduled","killed","cancelled","rescheduled","postponed","spiked"]},"state_reason":{"type":"string","nullable":true},"pubstatus":{"type":"string","nullable":true,"enum":["usable","cancelled",null]},"revert_state":{"type":"string","nullable":true},"version":{"type":"integer","nullable":true},"unique_id":{"type":"integer","nullable":true},"unique_name":{"type":"string","nullable":true},"profile":{"type":"string","nullable":true},"template":{"type":"string","nullable":true},"original_creator":{"type":"string","nullable":true},"version_creator":{"type":"string","nullable":true},"firstcreated":{"type":"string","format":"date-time"},"versioncreated":{"type":"string","format":"date-time"},"versionposted":{"type":"string","format":"date-time","nullable":true},"event_created":{"type":"string","format":"date-time","nullable":true},"event_lastmodified":{"type":"string","format":"date-time","nullable":true},"source":{"type":"string","nullable":true},"original_source":{"type":"string","nullable":true},"ingest_id":{"type":"string","nullable":true},"ingest_provider":{"type":"string","nullable":true},"ingest_provider_sequence":{"type":"string","nullable":true},"ingest_firstcreated":{"type":"string","format":"date-time","nullable":true},"ingest_versioncreated":{"type":"string","format":"date-time","nullable":true},"ingest_pubstatus":{"type":"string","nullable":true,"enum":["usable","cancelled",null]},"expiry":{"type":"string","format":"date-time","nullable":true},"expired":{"type":"boolean"},"featured":{"type":"boolean"},"flags":{"type":"object","properties":{"marked_for_not_publication":{"type":"boolean"},"overide_auto_assign_to_workflow":{"type":"boolean","description":"Field name retains the stored spelling"}}},"item_class":{"type":"string","nullable":true},"duplicate_from":{"type":"string","nullable":true},"duplicate_to":{"type":"array","nullable":true,"items":{"type":"string"}},"reschedule_from":{"type":"string","nullable":true},"reschedule_to":{"type":"string","nullable":true},"_reschedule_from_schedule":{"type":"string","format":"date-time","nullable":true},"actioned_date":{"type":"string","format":"date-time","nullable":true},"_planning_schedule":{"type":"array","items":{"type":"object","properties":{"scheduled":{"type":"string","format":"date-time"},"coverage_id":{"type":"string","nullable":true}}}},"_updates_schedule":{"type":"array","nullable":true,"items":{"type":"object","properties":{"scheduled":{"type":"string","format":"date-time"},"scheduled_update_id":{"type":"string","nullable":true}}}},"related_planning":{"type":"array","nullable":true,"items":{"type":"object","properties":{"_id":{"type":"string"},"link_type":{"type":"string","enum":["primary","secondary"]},"recurrence_id":{"type":"string","nullable":true}}}},"related_content":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/RelatedContent"}},"coverages":{"type":"array","nullable":true,"description":"Possible content coverages associated with the event","items":{"$ref":"#/components/schemas/Coverage"}},"_links":{"type":"object","description":"HATEOAS links to related resources","properties":{"assignments":{"type":"array","items":{"$ref":"#/components/schemas/HATEOASAssignment"}},"plannings":{"type":"array","items":{"$ref":"#/components/schemas/HATEOASPlanning"}}}}}},"ItemEditorialMetadata":{"type":"object","description":"Editorial fields shared by events, planning items and coverage planning","properties":{"slugline":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"headline":{"type":"string","nullable":true},"abstract":{"type":"string","nullable":true},"definition_short":{"type":"string","nullable":true},"definition_long":{"type":"string","nullable":true},"internal_note":{"type":"string","nullable":true},"ednote":{"type":"string","nullable":true},"language":{"type":"string"},"languages":{"type":"array","items":{"type":"string"}},"priority":{"type":"integer","nullable":true},"urgency":{"type":"integer","nullable":true},"keywords":{"type":"array","nullable":true,"items":{"type":"string"}},"subject":{"type":"array","nullable":true,"items":{"allOf":[{"$ref":"#/components/schemas/VocabularyItem"}],"properties":{"scheme":{"type":"string","nullable":true},"parent":{"type":"string","nullable":true}}}},"anpa_category":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/VocabularyItem"}},"calendars":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/VocabularyItem"}},"agendas":{"type":"array","nullable":true,"items":{"type":"string"}},"genre":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/VocabularyItem"}},"place":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/Place"}}}},"VocabularyItem":{"type":"object","properties":{"qcode":{"type":"string"},"name":{"type":"string"},"translations":{"type":"object","nullable":true,"description":"Field names mapped to language codes and translated values","additionalProperties":{"type":"object","additionalProperties":{"type":"string"}}}}},"Place":{"type":"object","description":"Geographic classification; distinct from the venue in location","properties":{"qcode":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"scheme":{"type":"string","nullable":true},"code":{"type":"string","nullable":true},"locality":{"type":"string","nullable":true},"state":{"type":"string","nullable":true},"country":{"type":"string","nullable":true},"world_region":{"type":"string","nullable":true},"group":{"type":"string","nullable":true},"locality_code":{"type":"string","nullable":true},"state_code":{"type":"string","nullable":true},"country_code":{"type":"string","nullable":true},"world_region_code":{"type":"string","nullable":true},"feature_class":{"type":"string","nullable":true},"rel":{"type":"string","nullable":true},"location":{"$ref":"#/components/schemas/GeoPoint"}}},"GeoPoint":{"type":"object","nullable":true,"required":["lat","lon"],"properties":{"lat":{"type":"number"},"lon":{"type":"number"}}},"ItemDetails":{"type":"object","description":"Event and planning logistics, contacts, attachments and custom data","properties":{"registration":{"type":"string","nullable":true},"registration_details":{"type":"string","nullable":true},"invitation_details":{"type":"string","nullable":true},"accreditation_info":{"type":"string","nullable":true},"accreditation_deadline":{"type":"string","format":"date","nullable":true},"reference":{"type":"string","nullable":true},"access_status":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/VocabularyItem"}},"links":{"type":"array","nullable":true,"items":{"type":"string"}},"files":{"type":"array","nullable":true,"description":"File IDs resolved through /events_files/{_id}","items":{"type":"string"}},"location":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/EventLocation"}},"event_contact_info":{"type":"array","nullable":true,"description":"Contact IDs; local IDs resolve through /contacts/{_id}, external IDs need not exist locally","items":{"type":"string"}},"participant":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/VocabularyItem"}},"participant_requirement":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/VocabularyItem"}},"organizer":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/VocabularyItem"}},"translations":{"type":"array","nullable":true,"items":{"type":"object","properties":{"field":{"type":"string"},"language":{"type":"string"},"value":{"type":"string"}}}},"relationships":{"type":"object","nullable":true,"properties":{"broader":{"type":"string","nullable":true},"narrower":{"type":"string","nullable":true},"related":{"type":"string","nullable":true}}},"company_codes":{"type":"array","nullable":true,"items":{"type":"object","properties":{"qcode":{"type":"string"},"name":{"type":"string"},"security_exchange":{"type":"string","nullable":true}}}},"word_count":{"type":"integer","nullable":true},"extra":{"type":"object","nullable":true,"additionalProperties":true}}},"EventLocation":{"type":"object","nullable":true,"description":"Venue, address and geographic coordinates","properties":{"name":{"type":"string"},"qcode":{"type":"string","nullable":true},"address":{"type":"object","nullable":true,"properties":{"line":{"type":"array","nullable":true,"items":{"type":"string"}},"city":{"type":"string","nullable":true},"locality":{"type":"string","nullable":true},"area":{"type":"string","nullable":true},"state":{"type":"string","nullable":true},"postal_code":{"type":"string","nullable":true},"country":{"type":"string","nullable":true},"boundingbox":{"type":"array","nullable":true,"items":{"type":"string"}},"title":{"type":"string","nullable":true},"type":{"type":"string","nullable":true},"extra":{"type":"object","nullable":true,"additionalProperties":true}}},"formatted_address":{"type":"string","nullable":true},"geo":{"type":"string","nullable":true},"location":{"$ref":"#/components/schemas/GeoPoint"},"details":{"type":"string","nullable":true},"extra":{"type":"object","nullable":true,"additionalProperties":true},"translations":{"type":"object","nullable":true,"additionalProperties":true}}},"EventDates":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time","nullable":true},"tz":{"type":"string","nullable":true,"description":"IANA timezone, e.g. Europe/Prague"},"all_day":{"type":"boolean","description":"Start and end are stored at UTC midnight for all-day events"},"no_end_time":{"type":"boolean","description":"End is a date at UTC midnight, not a known end time"},"recurring_rule":{"type":"object","nullable":true,"properties":{"frequency":{"type":"string","enum":["DAILY","WEEKLY","MONTHLY","YEARLY"]},"interval":{"type":"integer"},"endRepeatMode":{"type":"string","enum":["count","until"]},"count":{"type":"integer","nullable":true},"until":{"type":"string","format":"date-time","nullable":true},"byday":{"type":"string","description":"Space-separated weekdays, e.g. MO WE FR","nullable":true},"_created_externally":{"type":"boolean"}}}}},"OccurrenceStatus":{"type":"object","nullable":true,"properties":{"qcode":{"type":"string","enum":["eocstat:eos0","eocstat:eos1","eocstat:eos2","eocstat:eos3","eocstat:eos4","eocstat:eos5","eocstat:eos6"]},"name":{"type":"string"},"label":{"type":"string"}}},"NewsCoverageStatus":{"type":"object","nullable":true,"properties":{"qcode":{"type":"string","enum":["ncostat:int","ncostat:notint","ncostat:notdec","ncostat:onreq"]},"name":{"type":"string"},"label":{"type":"string"}}},"RelatedContent":{"type":"object","properties":{"guid":{"type":"string"},"type":{"type":"string"},"state":{"type":"string"},"version":{"type":"integer","nullable":true},"headline":{"type":"string","nullable":true},"slugline":{"type":"string","nullable":true},"versioncreated":{"type":"string","format":"date-time","nullable":true},"search":{"type":"string","nullable":true},"search_provider":{"type":"string","nullable":true},"pubstatus":{"type":"string","nullable":true},"language":{"type":"string","nullable":true},"word_count":{"type":"integer","nullable":true}}},"Coverage":{"type":"object","description":"A possible content coverage associated with an event or planning item","properties":{"coverage_id":{"type":"string","description":"Unique identifier of the coverage"},"profile":{"type":"string","nullable":true,"description":"ID of the coverage profile"},"original_coverage_id":{"type":"string","nullable":true},"guid":{"type":"string","nullable":true},"original_creator":{"type":"string","nullable":true},"version_creator":{"type":"string","nullable":true},"firstcreated":{"type":"string","format":"date-time"},"versioncreated":{"type":"string","format":"date-time"},"previous_status":{"type":"string","nullable":true},"_time_to_be_confirmed":{"type":"boolean"},"add_coverage_to_workflow":{"type":"boolean"},"flags":{"type":"object","properties":{"no_content_linking":{"type":"boolean"}}},"news_coverage_status":{"type":"object","description":"News coverage status","properties":{"qcode":{"type":"string","enum":["ncostat:int","ncostat:notint","ncostat:notdec","ncostat:onreq"]},"name":{"type":"string"},"label":{"type":"string"}}},"workflow_status":{"type":"string","description":"Workflow status of the coverage","enum":["draft","active","ingested","scheduled","killed","cancelled","rescheduled","postponed","spiked"]},"assigned_to":{"$ref":"#/components/schemas/CoverageAssignedTo"},"planning":{"$ref":"#/components/schemas/CoveragePlanning"},"scheduled_updates":{"type":"array","description":"Scheduled updates associated with the coverage","items":{"$ref":"#/components/schemas/CoverageScheduledUpdate"}}}},"CoverageAssignedTo":{"type":"object","nullable":true,"description":"Assignment and contact information for the coverage","properties":{"assignment_id":{"type":"string","nullable":true},"state":{"type":"string","enum":["draft","assigned","in_progress","completed","submitted","cancelled"]},"contact":{"type":"string","nullable":true},"user":{"type":"string","nullable":true},"desk":{"type":"string","nullable":true},"coverage_provider":{"$ref":"#/components/schemas/CoverageProvider"},"assignor_desk":{"type":"string","nullable":true},"assignor_user":{"type":"string","nullable":true},"assigned_date_desk":{"type":"string","format":"date-time","nullable":true},"assigned_date_user":{"type":"string","format":"date-time","nullable":true},"priority":{"type":"integer","nullable":true}}},"CoverageProvider":{"type":"object","nullable":true,"properties":{"qcode":{"type":"string"},"name":{"type":"string"},"translations":{"type":"object","nullable":true,"additionalProperties":{"type":"object","additionalProperties":{"type":"string"}}},"contact_type":{"type":"string","nullable":true}}},"CoveragePlanning":{"type":"object","allOf":[{"$ref":"#/components/schemas/ItemEditorialMetadata"}],"properties":{"scheduled":{"type":"string","format":"date-time"},"g2_content_type":{"type":"string","description":"Content type qcode; values depend on the installation's vocabulary"},"description_text":{"type":"string","description":"Legacy description alias included by the Planning endpoint"},"keyword":{"type":"array","description":"Legacy keywords alias included by the Planning endpoint","items":{"type":"string"}},"coverage_provider":{"$ref":"#/components/schemas/CoverageProvider"},"contact_info":{"type":"string","nullable":true},"workflow_status_reason":{"type":"string","nullable":true},"multiple_content":{"type":"boolean"},"fields":{"type":"array","nullable":true,"items":{"type":"object","properties":{"field":{"type":"string"},"value":{"type":"string"}}}},"location":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/EventLocation"}},"files":{"type":"array","nullable":true,"items":{"type":"string"}},"xmp_file":{"type":"string","nullable":true},"item_class":{"type":"string","nullable":true},"item_count":{"type":"integer","nullable":true},"service":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/VocabularyItem"}},"news_content_characteristics":{"type":"array","nullable":true,"items":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"}}}},"planning_ext_property":{"type":"array","nullable":true,"items":{"type":"object","properties":{"qcode":{"type":"string"},"name":{"type":"string"},"value":{"type":"string"}}}},"by":{"type":"array","nullable":true,"items":{"type":"string"}},"credit_line":{"type":"array","nullable":true,"items":{"type":"string"}},"dateline":{"type":"array","nullable":true,"items":{"type":"string"}}}},"CoverageScheduledUpdate":{"type":"object","description":"A scheduled update for a coverage","properties":{"coverage_id":{"type":"string"},"scheduled_update_id":{"type":"string"},"news_coverage_status":{"type":"object","properties":{"qcode":{"type":"string","enum":["ncostat:int","ncostat:notint","ncostat:notdec","ncostat:onreq"]},"name":{"type":"string"},"label":{"type":"string"}}},"workflow_status":{"type":"string","enum":["draft","active","ingested","scheduled","killed","cancelled","rescheduled","postponed","spiked"]},"previous_status":{"type":"string","nullable":true,"enum":["draft","active","ingested","scheduled","killed","cancelled","rescheduled","postponed","spiked",null]},"assigned_to":{"$ref":"#/components/schemas/CoverageAssignedTo"},"planning":{"type":"object","properties":{"scheduled":{"type":"string","format":"date-time"},"internal_note":{"type":"string","nullable":true},"genre":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/VocabularyItem"}},"contact_info":{"type":"string","nullable":true},"workflow_status_reason":{"type":"string","nullable":true},"multiple_content":{"type":"boolean"}}}}},"HATEOASAssignment":{"type":"object","description":"HATEOAS link to an Assignment resource","properties":{"title":{"type":"string"},"href":{"type":"string","description":"URL to the resource item"},"state":{"type":"string","enum":["draft","assigned","in_progress","completed","submitted","cancelled"],"description":"The state of the Assignment"},"scheduled":{"type":"string","format":"date-time","description":"The date & time the Assignment is due"},"content_type":{"type":"string","description":"Qcode of the type of content expected (g2_content_type)"},"content_href":{"type":"string","description":"The URL to the content (if any)"},"content_state":{"type":"string","description":"The state of the associated content"},"content_pubstatus":{"type":"string","description":"The pubstatus of the associated content"}}},"HATEOASPlanning":{"type":"object","description":"HATEOAS link to a Planning resource","properties":{"title":{"type":"string"},"href":{"type":"string","description":"URL to the resource item"},"coverages":{"type":"array","description":"Compact coverage summaries from the linked planning item; not full Coverage records","items":{"$ref":"#/components/schemas/CoverageSummary"}}}},"CoverageSummary":{"type":"object","description":"Compact summary included in _links.plannings[].coverages","properties":{"coverage_id":{"type":"string","nullable":true},"workflow_status":{"type":"string","nullable":true},"news_coverage_status":{"$ref":"#/components/schemas/NewsCoverageStatus"},"g2_content_type":{"type":"string","nullable":true}}},"Meta":{"type":"object","description":"Metadata about the response","properties":{"total":{"type":"integer","description":"Total number of items"},"page":{"type":"integer","description":"Current page number"},"max_results":{"type":"integer","description":"Maximum results per page"}}},"ErrorResponse":{"type":"object","required":["_status","_error"],"properties":{"_status":{"type":"string"},"_error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"integer"},"message":{"type":"string"}}},"_issues":{"type":"object","description":"Optional details about the error","additionalProperties":true}}}},"responses":{"Unauthorized":{"description":"Unauthorized - Invalid or missing access token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Forbidden":{"description":"Forbidden - Access token does not have the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"paths":{"/events":{"get":{"summary":"List events","description":"Get list of events with elastic search query support","tags":["Events"],"parameters":[{"name":"source","in":"query","description":"Elasticsearch query in JSON format","required":false,"schema":{"type":"string"}},{"name":"planning_source","in":"query","description":"Elasticsearch query over planning items; returns their primary related events","schema":{"type":"string"}},{"name":"exclude_assignments","in":"query","description":"Omit _links.assignments while retaining planning links and coverage summaries","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"List of events","content":{"application/json":{"schema":{"type":"object","properties":{"_items":{"type":"array","items":{"$ref":"#/components/schemas/Event"}},"_meta":{"$ref":"#/components/schemas/Meta"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}}}}}}
```

## Get event details

> Retrieve a specific event by its GUID

```json
{"openapi":"3.0.2","info":{"title":"Superdesk Production API","version":"2.0"},"servers":[{"url":"/prodapi/v1","description":"Production API v1 Server"}],"security":[{"oauth2Auth":["EVENTS_READ"]}],"components":{"securitySchemes":{"oauth2Auth":{"type":"oauth2","description":"OAuth 2.0 client credentials flow via Superdesk Auth Server.\n\nSee: https://superdesk.readthedocs.io/en/latest/auth_server.html\n","flows":{"clientCredentials":{"tokenUrl":"/api/auth_server/token","scopes":{"ARCHIVE_READ":"Read archive items","DESKS_READ":"Read desks","PLANNING_READ":"Read planning items","CONTACTS_READ":"Read contacts","USERS_READ":"Read users and user availability","ASSIGNMENTS_READ":"Read assignments","EVENTS_READ":"Read events, event files and event history","CONTENT_LISTS_READ":"Read content lists and their items"}}}}},"parameters":{"guid":{"name":"guid","in":"path","description":"Unique identifier (GUID)","required":true,"schema":{"type":"string"}}},"schemas":{"Event":{"type":"object","description":"Calendar event from the unified planning resource. Fields depend on the\ncontent profile and stored data; optional values may be absent or null.\nCustom vocabulary values use subject.scheme and installation-specific\ndata may appear in extra. Lock fields, _etag, _created, _updated,\n_current_version and fields_meta are not returned.\n\ncoverages contains coverages stored directly on this event.\n_links.plannings contains primary linked planning items with compact\ncoverage summaries; fetch the linked Planning resource for full records.\n_links.assignments is omitted when exclude_assignments=true.\n","allOf":[{"$ref":"#/components/schemas/ItemEditorialMetadata"},{"$ref":"#/components/schemas/ItemDetails"}],"properties":{"_id":{"type":"string"},"guid":{"type":"string"},"name":{"type":"string"},"definition_short":{"type":"string"},"type":{"type":"string","enum":["event"]},"dates":{"$ref":"#/components/schemas/EventDates"},"occur_status":{"$ref":"#/components/schemas/OccurrenceStatus"},"news_coverage_status":{"$ref":"#/components/schemas/NewsCoverageStatus"},"_time_to_be_confirmed":{"type":"boolean"},"completed":{"type":"boolean"},"recurrence_id":{"type":"string","nullable":true},"previous_recurrence_id":{"type":"string","nullable":true},"planning_recurrence_id":{"type":"string","nullable":true},"state":{"type":"string","enum":["draft","active","ingested","scheduled","killed","cancelled","rescheduled","postponed","spiked"]},"state_reason":{"type":"string","nullable":true},"pubstatus":{"type":"string","nullable":true,"enum":["usable","cancelled",null]},"revert_state":{"type":"string","nullable":true},"version":{"type":"integer","nullable":true},"unique_id":{"type":"integer","nullable":true},"unique_name":{"type":"string","nullable":true},"profile":{"type":"string","nullable":true},"template":{"type":"string","nullable":true},"original_creator":{"type":"string","nullable":true},"version_creator":{"type":"string","nullable":true},"firstcreated":{"type":"string","format":"date-time"},"versioncreated":{"type":"string","format":"date-time"},"versionposted":{"type":"string","format":"date-time","nullable":true},"event_created":{"type":"string","format":"date-time","nullable":true},"event_lastmodified":{"type":"string","format":"date-time","nullable":true},"source":{"type":"string","nullable":true},"original_source":{"type":"string","nullable":true},"ingest_id":{"type":"string","nullable":true},"ingest_provider":{"type":"string","nullable":true},"ingest_provider_sequence":{"type":"string","nullable":true},"ingest_firstcreated":{"type":"string","format":"date-time","nullable":true},"ingest_versioncreated":{"type":"string","format":"date-time","nullable":true},"ingest_pubstatus":{"type":"string","nullable":true,"enum":["usable","cancelled",null]},"expiry":{"type":"string","format":"date-time","nullable":true},"expired":{"type":"boolean"},"featured":{"type":"boolean"},"flags":{"type":"object","properties":{"marked_for_not_publication":{"type":"boolean"},"overide_auto_assign_to_workflow":{"type":"boolean","description":"Field name retains the stored spelling"}}},"item_class":{"type":"string","nullable":true},"duplicate_from":{"type":"string","nullable":true},"duplicate_to":{"type":"array","nullable":true,"items":{"type":"string"}},"reschedule_from":{"type":"string","nullable":true},"reschedule_to":{"type":"string","nullable":true},"_reschedule_from_schedule":{"type":"string","format":"date-time","nullable":true},"actioned_date":{"type":"string","format":"date-time","nullable":true},"_planning_schedule":{"type":"array","items":{"type":"object","properties":{"scheduled":{"type":"string","format":"date-time"},"coverage_id":{"type":"string","nullable":true}}}},"_updates_schedule":{"type":"array","nullable":true,"items":{"type":"object","properties":{"scheduled":{"type":"string","format":"date-time"},"scheduled_update_id":{"type":"string","nullable":true}}}},"related_planning":{"type":"array","nullable":true,"items":{"type":"object","properties":{"_id":{"type":"string"},"link_type":{"type":"string","enum":["primary","secondary"]},"recurrence_id":{"type":"string","nullable":true}}}},"related_content":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/RelatedContent"}},"coverages":{"type":"array","nullable":true,"description":"Possible content coverages associated with the event","items":{"$ref":"#/components/schemas/Coverage"}},"_links":{"type":"object","description":"HATEOAS links to related resources","properties":{"assignments":{"type":"array","items":{"$ref":"#/components/schemas/HATEOASAssignment"}},"plannings":{"type":"array","items":{"$ref":"#/components/schemas/HATEOASPlanning"}}}}}},"ItemEditorialMetadata":{"type":"object","description":"Editorial fields shared by events, planning items and coverage planning","properties":{"slugline":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"headline":{"type":"string","nullable":true},"abstract":{"type":"string","nullable":true},"definition_short":{"type":"string","nullable":true},"definition_long":{"type":"string","nullable":true},"internal_note":{"type":"string","nullable":true},"ednote":{"type":"string","nullable":true},"language":{"type":"string"},"languages":{"type":"array","items":{"type":"string"}},"priority":{"type":"integer","nullable":true},"urgency":{"type":"integer","nullable":true},"keywords":{"type":"array","nullable":true,"items":{"type":"string"}},"subject":{"type":"array","nullable":true,"items":{"allOf":[{"$ref":"#/components/schemas/VocabularyItem"}],"properties":{"scheme":{"type":"string","nullable":true},"parent":{"type":"string","nullable":true}}}},"anpa_category":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/VocabularyItem"}},"calendars":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/VocabularyItem"}},"agendas":{"type":"array","nullable":true,"items":{"type":"string"}},"genre":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/VocabularyItem"}},"place":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/Place"}}}},"VocabularyItem":{"type":"object","properties":{"qcode":{"type":"string"},"name":{"type":"string"},"translations":{"type":"object","nullable":true,"description":"Field names mapped to language codes and translated values","additionalProperties":{"type":"object","additionalProperties":{"type":"string"}}}}},"Place":{"type":"object","description":"Geographic classification; distinct from the venue in location","properties":{"qcode":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"scheme":{"type":"string","nullable":true},"code":{"type":"string","nullable":true},"locality":{"type":"string","nullable":true},"state":{"type":"string","nullable":true},"country":{"type":"string","nullable":true},"world_region":{"type":"string","nullable":true},"group":{"type":"string","nullable":true},"locality_code":{"type":"string","nullable":true},"state_code":{"type":"string","nullable":true},"country_code":{"type":"string","nullable":true},"world_region_code":{"type":"string","nullable":true},"feature_class":{"type":"string","nullable":true},"rel":{"type":"string","nullable":true},"location":{"$ref":"#/components/schemas/GeoPoint"}}},"GeoPoint":{"type":"object","nullable":true,"required":["lat","lon"],"properties":{"lat":{"type":"number"},"lon":{"type":"number"}}},"ItemDetails":{"type":"object","description":"Event and planning logistics, contacts, attachments and custom data","properties":{"registration":{"type":"string","nullable":true},"registration_details":{"type":"string","nullable":true},"invitation_details":{"type":"string","nullable":true},"accreditation_info":{"type":"string","nullable":true},"accreditation_deadline":{"type":"string","format":"date","nullable":true},"reference":{"type":"string","nullable":true},"access_status":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/VocabularyItem"}},"links":{"type":"array","nullable":true,"items":{"type":"string"}},"files":{"type":"array","nullable":true,"description":"File IDs resolved through /events_files/{_id}","items":{"type":"string"}},"location":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/EventLocation"}},"event_contact_info":{"type":"array","nullable":true,"description":"Contact IDs; local IDs resolve through /contacts/{_id}, external IDs need not exist locally","items":{"type":"string"}},"participant":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/VocabularyItem"}},"participant_requirement":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/VocabularyItem"}},"organizer":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/VocabularyItem"}},"translations":{"type":"array","nullable":true,"items":{"type":"object","properties":{"field":{"type":"string"},"language":{"type":"string"},"value":{"type":"string"}}}},"relationships":{"type":"object","nullable":true,"properties":{"broader":{"type":"string","nullable":true},"narrower":{"type":"string","nullable":true},"related":{"type":"string","nullable":true}}},"company_codes":{"type":"array","nullable":true,"items":{"type":"object","properties":{"qcode":{"type":"string"},"name":{"type":"string"},"security_exchange":{"type":"string","nullable":true}}}},"word_count":{"type":"integer","nullable":true},"extra":{"type":"object","nullable":true,"additionalProperties":true}}},"EventLocation":{"type":"object","nullable":true,"description":"Venue, address and geographic coordinates","properties":{"name":{"type":"string"},"qcode":{"type":"string","nullable":true},"address":{"type":"object","nullable":true,"properties":{"line":{"type":"array","nullable":true,"items":{"type":"string"}},"city":{"type":"string","nullable":true},"locality":{"type":"string","nullable":true},"area":{"type":"string","nullable":true},"state":{"type":"string","nullable":true},"postal_code":{"type":"string","nullable":true},"country":{"type":"string","nullable":true},"boundingbox":{"type":"array","nullable":true,"items":{"type":"string"}},"title":{"type":"string","nullable":true},"type":{"type":"string","nullable":true},"extra":{"type":"object","nullable":true,"additionalProperties":true}}},"formatted_address":{"type":"string","nullable":true},"geo":{"type":"string","nullable":true},"location":{"$ref":"#/components/schemas/GeoPoint"},"details":{"type":"string","nullable":true},"extra":{"type":"object","nullable":true,"additionalProperties":true},"translations":{"type":"object","nullable":true,"additionalProperties":true}}},"EventDates":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time","nullable":true},"tz":{"type":"string","nullable":true,"description":"IANA timezone, e.g. Europe/Prague"},"all_day":{"type":"boolean","description":"Start and end are stored at UTC midnight for all-day events"},"no_end_time":{"type":"boolean","description":"End is a date at UTC midnight, not a known end time"},"recurring_rule":{"type":"object","nullable":true,"properties":{"frequency":{"type":"string","enum":["DAILY","WEEKLY","MONTHLY","YEARLY"]},"interval":{"type":"integer"},"endRepeatMode":{"type":"string","enum":["count","until"]},"count":{"type":"integer","nullable":true},"until":{"type":"string","format":"date-time","nullable":true},"byday":{"type":"string","description":"Space-separated weekdays, e.g. MO WE FR","nullable":true},"_created_externally":{"type":"boolean"}}}}},"OccurrenceStatus":{"type":"object","nullable":true,"properties":{"qcode":{"type":"string","enum":["eocstat:eos0","eocstat:eos1","eocstat:eos2","eocstat:eos3","eocstat:eos4","eocstat:eos5","eocstat:eos6"]},"name":{"type":"string"},"label":{"type":"string"}}},"NewsCoverageStatus":{"type":"object","nullable":true,"properties":{"qcode":{"type":"string","enum":["ncostat:int","ncostat:notint","ncostat:notdec","ncostat:onreq"]},"name":{"type":"string"},"label":{"type":"string"}}},"RelatedContent":{"type":"object","properties":{"guid":{"type":"string"},"type":{"type":"string"},"state":{"type":"string"},"version":{"type":"integer","nullable":true},"headline":{"type":"string","nullable":true},"slugline":{"type":"string","nullable":true},"versioncreated":{"type":"string","format":"date-time","nullable":true},"search":{"type":"string","nullable":true},"search_provider":{"type":"string","nullable":true},"pubstatus":{"type":"string","nullable":true},"language":{"type":"string","nullable":true},"word_count":{"type":"integer","nullable":true}}},"Coverage":{"type":"object","description":"A possible content coverage associated with an event or planning item","properties":{"coverage_id":{"type":"string","description":"Unique identifier of the coverage"},"profile":{"type":"string","nullable":true,"description":"ID of the coverage profile"},"original_coverage_id":{"type":"string","nullable":true},"guid":{"type":"string","nullable":true},"original_creator":{"type":"string","nullable":true},"version_creator":{"type":"string","nullable":true},"firstcreated":{"type":"string","format":"date-time"},"versioncreated":{"type":"string","format":"date-time"},"previous_status":{"type":"string","nullable":true},"_time_to_be_confirmed":{"type":"boolean"},"add_coverage_to_workflow":{"type":"boolean"},"flags":{"type":"object","properties":{"no_content_linking":{"type":"boolean"}}},"news_coverage_status":{"type":"object","description":"News coverage status","properties":{"qcode":{"type":"string","enum":["ncostat:int","ncostat:notint","ncostat:notdec","ncostat:onreq"]},"name":{"type":"string"},"label":{"type":"string"}}},"workflow_status":{"type":"string","description":"Workflow status of the coverage","enum":["draft","active","ingested","scheduled","killed","cancelled","rescheduled","postponed","spiked"]},"assigned_to":{"$ref":"#/components/schemas/CoverageAssignedTo"},"planning":{"$ref":"#/components/schemas/CoveragePlanning"},"scheduled_updates":{"type":"array","description":"Scheduled updates associated with the coverage","items":{"$ref":"#/components/schemas/CoverageScheduledUpdate"}}}},"CoverageAssignedTo":{"type":"object","nullable":true,"description":"Assignment and contact information for the coverage","properties":{"assignment_id":{"type":"string","nullable":true},"state":{"type":"string","enum":["draft","assigned","in_progress","completed","submitted","cancelled"]},"contact":{"type":"string","nullable":true},"user":{"type":"string","nullable":true},"desk":{"type":"string","nullable":true},"coverage_provider":{"$ref":"#/components/schemas/CoverageProvider"},"assignor_desk":{"type":"string","nullable":true},"assignor_user":{"type":"string","nullable":true},"assigned_date_desk":{"type":"string","format":"date-time","nullable":true},"assigned_date_user":{"type":"string","format":"date-time","nullable":true},"priority":{"type":"integer","nullable":true}}},"CoverageProvider":{"type":"object","nullable":true,"properties":{"qcode":{"type":"string"},"name":{"type":"string"},"translations":{"type":"object","nullable":true,"additionalProperties":{"type":"object","additionalProperties":{"type":"string"}}},"contact_type":{"type":"string","nullable":true}}},"CoveragePlanning":{"type":"object","allOf":[{"$ref":"#/components/schemas/ItemEditorialMetadata"}],"properties":{"scheduled":{"type":"string","format":"date-time"},"g2_content_type":{"type":"string","description":"Content type qcode; values depend on the installation's vocabulary"},"description_text":{"type":"string","description":"Legacy description alias included by the Planning endpoint"},"keyword":{"type":"array","description":"Legacy keywords alias included by the Planning endpoint","items":{"type":"string"}},"coverage_provider":{"$ref":"#/components/schemas/CoverageProvider"},"contact_info":{"type":"string","nullable":true},"workflow_status_reason":{"type":"string","nullable":true},"multiple_content":{"type":"boolean"},"fields":{"type":"array","nullable":true,"items":{"type":"object","properties":{"field":{"type":"string"},"value":{"type":"string"}}}},"location":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/EventLocation"}},"files":{"type":"array","nullable":true,"items":{"type":"string"}},"xmp_file":{"type":"string","nullable":true},"item_class":{"type":"string","nullable":true},"item_count":{"type":"integer","nullable":true},"service":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/VocabularyItem"}},"news_content_characteristics":{"type":"array","nullable":true,"items":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"}}}},"planning_ext_property":{"type":"array","nullable":true,"items":{"type":"object","properties":{"qcode":{"type":"string"},"name":{"type":"string"},"value":{"type":"string"}}}},"by":{"type":"array","nullable":true,"items":{"type":"string"}},"credit_line":{"type":"array","nullable":true,"items":{"type":"string"}},"dateline":{"type":"array","nullable":true,"items":{"type":"string"}}}},"CoverageScheduledUpdate":{"type":"object","description":"A scheduled update for a coverage","properties":{"coverage_id":{"type":"string"},"scheduled_update_id":{"type":"string"},"news_coverage_status":{"type":"object","properties":{"qcode":{"type":"string","enum":["ncostat:int","ncostat:notint","ncostat:notdec","ncostat:onreq"]},"name":{"type":"string"},"label":{"type":"string"}}},"workflow_status":{"type":"string","enum":["draft","active","ingested","scheduled","killed","cancelled","rescheduled","postponed","spiked"]},"previous_status":{"type":"string","nullable":true,"enum":["draft","active","ingested","scheduled","killed","cancelled","rescheduled","postponed","spiked",null]},"assigned_to":{"$ref":"#/components/schemas/CoverageAssignedTo"},"planning":{"type":"object","properties":{"scheduled":{"type":"string","format":"date-time"},"internal_note":{"type":"string","nullable":true},"genre":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/VocabularyItem"}},"contact_info":{"type":"string","nullable":true},"workflow_status_reason":{"type":"string","nullable":true},"multiple_content":{"type":"boolean"}}}}},"HATEOASAssignment":{"type":"object","description":"HATEOAS link to an Assignment resource","properties":{"title":{"type":"string"},"href":{"type":"string","description":"URL to the resource item"},"state":{"type":"string","enum":["draft","assigned","in_progress","completed","submitted","cancelled"],"description":"The state of the Assignment"},"scheduled":{"type":"string","format":"date-time","description":"The date & time the Assignment is due"},"content_type":{"type":"string","description":"Qcode of the type of content expected (g2_content_type)"},"content_href":{"type":"string","description":"The URL to the content (if any)"},"content_state":{"type":"string","description":"The state of the associated content"},"content_pubstatus":{"type":"string","description":"The pubstatus of the associated content"}}},"HATEOASPlanning":{"type":"object","description":"HATEOAS link to a Planning resource","properties":{"title":{"type":"string"},"href":{"type":"string","description":"URL to the resource item"},"coverages":{"type":"array","description":"Compact coverage summaries from the linked planning item; not full Coverage records","items":{"$ref":"#/components/schemas/CoverageSummary"}}}},"CoverageSummary":{"type":"object","description":"Compact summary included in _links.plannings[].coverages","properties":{"coverage_id":{"type":"string","nullable":true},"workflow_status":{"type":"string","nullable":true},"news_coverage_status":{"$ref":"#/components/schemas/NewsCoverageStatus"},"g2_content_type":{"type":"string","nullable":true}}},"ErrorResponse":{"type":"object","required":["_status","_error"],"properties":{"_status":{"type":"string"},"_error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"integer"},"message":{"type":"string"}}},"_issues":{"type":"object","description":"Optional details about the error","additionalProperties":true}}}},"responses":{"Unauthorized":{"description":"Unauthorized - Invalid or missing access token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Forbidden":{"description":"Forbidden - Access token does not have the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"NotFound":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"paths":{"/events/{guid}":{"get":{"summary":"Get event details","description":"Retrieve a specific event by its GUID","tags":["Events"],"parameters":[{"$ref":"#/components/parameters/guid"},{"name":"exclude_assignments","in":"query","description":"Omit _links.assignments while retaining planning links and coverage summaries","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Event details with HATEOAS links","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}}}}}}
```

## List event files

> Get list of event files with MongoDB query support

```json
{"openapi":"3.0.2","info":{"title":"Superdesk Production API","version":"2.0"},"servers":[{"url":"/prodapi/v1","description":"Production API v1 Server"}],"security":[{"oauth2Auth":["EVENTS_READ"]}],"components":{"securitySchemes":{"oauth2Auth":{"type":"oauth2","description":"OAuth 2.0 client credentials flow via Superdesk Auth Server.\n\nSee: https://superdesk.readthedocs.io/en/latest/auth_server.html\n","flows":{"clientCredentials":{"tokenUrl":"/api/auth_server/token","scopes":{"ARCHIVE_READ":"Read archive items","DESKS_READ":"Read desks","PLANNING_READ":"Read planning items","CONTACTS_READ":"Read contacts","USERS_READ":"Read users and user availability","ASSIGNMENTS_READ":"Read assignments","EVENTS_READ":"Read events, event files and event history","CONTENT_LISTS_READ":"Read content lists and their items"}}}}},"schemas":{"EventFile":{"type":"object","description":"File attached to an event","properties":{"_id":{"type":"string"},"media":{"type":"string","description":"Media ID"},"mimetype":{"type":"string"},"filemeta":{"type":"object","properties":{"media_id":{"type":"string"},"filename":{"type":"string"},"content_type":{"type":"string"},"length":{"type":"integer","description":"File size in bytes"}}}}},"Meta":{"type":"object","description":"Metadata about the response","properties":{"total":{"type":"integer","description":"Total number of items"},"page":{"type":"integer","description":"Current page number"},"max_results":{"type":"integer","description":"Maximum results per page"}}},"ErrorResponse":{"type":"object","required":["_status","_error"],"properties":{"_status":{"type":"string"},"_error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"integer"},"message":{"type":"string"}}},"_issues":{"type":"object","description":"Optional details about the error","additionalProperties":true}}}},"responses":{"Unauthorized":{"description":"Unauthorized - Invalid or missing access token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Forbidden":{"description":"Forbidden - Access token does not have the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"paths":{"/events_files":{"get":{"summary":"List event files","description":"Get list of event files with MongoDB query support","tags":["Events"],"parameters":[{"name":"where","in":"query","description":"MongoDB query in JSON format","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of event files","content":{"application/json":{"schema":{"type":"object","properties":{"_items":{"type":"array","items":{"$ref":"#/components/schemas/EventFile"}},"_meta":{"$ref":"#/components/schemas/Meta"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}}}}}}
```

## Get event file details

> Retrieve a specific event file by its ID

```json
{"openapi":"3.0.2","info":{"title":"Superdesk Production API","version":"2.0"},"servers":[{"url":"/prodapi/v1","description":"Production API v1 Server"}],"security":[{"oauth2Auth":["EVENTS_READ"]}],"components":{"securitySchemes":{"oauth2Auth":{"type":"oauth2","description":"OAuth 2.0 client credentials flow via Superdesk Auth Server.\n\nSee: https://superdesk.readthedocs.io/en/latest/auth_server.html\n","flows":{"clientCredentials":{"tokenUrl":"/api/auth_server/token","scopes":{"ARCHIVE_READ":"Read archive items","DESKS_READ":"Read desks","PLANNING_READ":"Read planning items","CONTACTS_READ":"Read contacts","USERS_READ":"Read users and user availability","ASSIGNMENTS_READ":"Read assignments","EVENTS_READ":"Read events, event files and event history","CONTENT_LISTS_READ":"Read content lists and their items"}}}}},"parameters":{"_id":{"name":"_id","in":"path","description":"MongoDB Object ID","required":true,"schema":{"type":"string"}}},"schemas":{"EventFile":{"type":"object","description":"File attached to an event","properties":{"_id":{"type":"string"},"media":{"type":"string","description":"Media ID"},"mimetype":{"type":"string"},"filemeta":{"type":"object","properties":{"media_id":{"type":"string"},"filename":{"type":"string"},"content_type":{"type":"string"},"length":{"type":"integer","description":"File size in bytes"}}}}},"ErrorResponse":{"type":"object","required":["_status","_error"],"properties":{"_status":{"type":"string"},"_error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"integer"},"message":{"type":"string"}}},"_issues":{"type":"object","description":"Optional details about the error","additionalProperties":true}}}},"responses":{"Unauthorized":{"description":"Unauthorized - Invalid or missing access token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Forbidden":{"description":"Forbidden - Access token does not have the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"NotFound":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"paths":{"/events_files/{_id}":{"get":{"summary":"Get event file details","description":"Retrieve a specific event file by its ID","tags":["Events"],"parameters":[{"$ref":"#/components/parameters/_id"}],"responses":{"200":{"description":"Event file details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventFile"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}}}}}}
```

## List events history

> Get list of event history records with MongoDB query support

```json
{"openapi":"3.0.2","info":{"title":"Superdesk Production API","version":"2.0"},"servers":[{"url":"/prodapi/v1","description":"Production API v1 Server"}],"security":[{"oauth2Auth":["EVENTS_READ"]}],"components":{"securitySchemes":{"oauth2Auth":{"type":"oauth2","description":"OAuth 2.0 client credentials flow via Superdesk Auth Server.\n\nSee: https://superdesk.readthedocs.io/en/latest/auth_server.html\n","flows":{"clientCredentials":{"tokenUrl":"/api/auth_server/token","scopes":{"ARCHIVE_READ":"Read archive items","DESKS_READ":"Read desks","PLANNING_READ":"Read planning items","CONTACTS_READ":"Read contacts","USERS_READ":"Read users and user availability","ASSIGNMENTS_READ":"Read assignments","EVENTS_READ":"Read events, event files and event history","CONTENT_LISTS_READ":"Read content lists and their items"}}}}},"schemas":{"EventHistory":{"type":"object","description":"Event history record","properties":{"_id":{"type":"string"},"item_id":{"type":"string","description":"ID of the event whose history is recorded"},"item_type":{"type":"string","enum":["event"]},"user_id":{"type":"string","nullable":true},"operation":{"type":"string","description":"History action, including create, update and workflow actions"},"update":{"type":"object","description":"Changes made in this update"}}},"Meta":{"type":"object","description":"Metadata about the response","properties":{"total":{"type":"integer","description":"Total number of items"},"page":{"type":"integer","description":"Current page number"},"max_results":{"type":"integer","description":"Maximum results per page"}}},"ErrorResponse":{"type":"object","required":["_status","_error"],"properties":{"_status":{"type":"string"},"_error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"integer"},"message":{"type":"string"}}},"_issues":{"type":"object","description":"Optional details about the error","additionalProperties":true}}}},"responses":{"Unauthorized":{"description":"Unauthorized - Invalid or missing access token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Forbidden":{"description":"Forbidden - Access token does not have the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"paths":{"/events_history":{"get":{"summary":"List events history","description":"Get list of event history records with MongoDB query support","tags":["Events"],"parameters":[{"name":"where","in":"query","description":"MongoDB query in JSON format","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of event history records","content":{"application/json":{"schema":{"type":"object","properties":{"_items":{"type":"array","items":{"$ref":"#/components/schemas/EventHistory"}},"_meta":{"$ref":"#/components/schemas/Meta"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}}}}}}
```

## Get event history details

> Retrieve a specific event history record by its ID

```json
{"openapi":"3.0.2","info":{"title":"Superdesk Production API","version":"2.0"},"servers":[{"url":"/prodapi/v1","description":"Production API v1 Server"}],"security":[{"oauth2Auth":["EVENTS_READ"]}],"components":{"securitySchemes":{"oauth2Auth":{"type":"oauth2","description":"OAuth 2.0 client credentials flow via Superdesk Auth Server.\n\nSee: https://superdesk.readthedocs.io/en/latest/auth_server.html\n","flows":{"clientCredentials":{"tokenUrl":"/api/auth_server/token","scopes":{"ARCHIVE_READ":"Read archive items","DESKS_READ":"Read desks","PLANNING_READ":"Read planning items","CONTACTS_READ":"Read contacts","USERS_READ":"Read users and user availability","ASSIGNMENTS_READ":"Read assignments","EVENTS_READ":"Read events, event files and event history","CONTENT_LISTS_READ":"Read content lists and their items"}}}}},"parameters":{"_id":{"name":"_id","in":"path","description":"MongoDB Object ID","required":true,"schema":{"type":"string"}}},"schemas":{"EventHistory":{"type":"object","description":"Event history record","properties":{"_id":{"type":"string"},"item_id":{"type":"string","description":"ID of the event whose history is recorded"},"item_type":{"type":"string","enum":["event"]},"user_id":{"type":"string","nullable":true},"operation":{"type":"string","description":"History action, including create, update and workflow actions"},"update":{"type":"object","description":"Changes made in this update"}}},"ErrorResponse":{"type":"object","required":["_status","_error"],"properties":{"_status":{"type":"string"},"_error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"integer"},"message":{"type":"string"}}},"_issues":{"type":"object","description":"Optional details about the error","additionalProperties":true}}}},"responses":{"Unauthorized":{"description":"Unauthorized - Invalid or missing access token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Forbidden":{"description":"Forbidden - Access token does not have the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"NotFound":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"paths":{"/events_history/{_id}":{"get":{"summary":"Get event history details","description":"Retrieve a specific event history record by its ID","tags":["Events"],"parameters":[{"$ref":"#/components/parameters/_id"}],"responses":{"200":{"description":"Event history details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventHistory"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.superdesk.org/api-reference/readme/events.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
