{"method":"GET","path":"https://api.revcent.com/v2/site_logs","summary":"Get Site Logs","description":"Returns a list of site logs. The date_start, date_end, page, limit, site_filter and site_branch_filter URL parameters are required. The site_filter and site_branch_filter must contain exactly one value for each. The difference between date_start and date_end cannot exceed a 30 day period. View markdown documentation at https://revcent.com/documentation/markdown/mcp/operation/GetSiteLogs.md for an in-depth overview of this operation.","operationId":"GetSiteLogs","parameters":[{"description":"The date range start date as a unix timestamp in seconds.","in":"query","name":"date_start","required":true,"schema":{"type":"integer","format":"unix-time"},"style":"form"},{"description":"The date range end date as a unix timestamp in seconds.","in":"query","name":"date_end","required":true,"schema":{"type":"integer","format":"unix-time"},"style":"form"},{"description":"A limit on the number of objects to be returned. Limit can range between 1 and 25, and the default is 25.","in":"query","name":"limit","required":true,"schema":{"type":"integer","format":"int32","minimum":1,"maximum":25},"style":"form"},{"description":"Used for pagination, i.e. to skip to specific page of results.","in":"query","name":"page","required":true,"schema":{"type":"integer","format":"int32"},"style":"form"},{"name":"site_filter","in":"query","description":"When retrieving logs for a RevCent Site, this parameter is required and must contain a single site ID being the RevCent Site for which you want to retrieve logs. Only one site ID can be provided for this parameter as logs are retrieved for a single RevCent Site at a time.","required":true,"schema":{"type":"array","items":{"type":"string","description":"A 20 character site ID.","minLength":20,"maxLength":20},"maxItems":1,"minItems":1},"style":"form","explode":true},{"name":"site_branch_filter","in":"query","description":"When retrieving logs for a RevCent Site, this parameter is required and must contain a single site branch name being the RevCent Site branch for which you want to retrieve logs. Only one site branch name can be provided for this parameter as logs are retrieved for a single RevCent Site branch at a time.","required":true,"schema":{"type":"array","items":{"type":"string","description":"The branch name of the RevCent Site for which you want to retrieve logs. Must be one of the following values: 'main' or 'dev'.","enum":["main","dev"]},"maxItems":1,"minItems":1},"style":"form","explode":true}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"encoding":{},"schema":{"additionalProperties":false,"properties":{},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"description":"","properties":{"api_call_id":{"type":"string","description":"A 20 character API call ID.","minLength":20,"maxLength":20},"api_call_unix":{"description":"Unix timestamp of when the API call was initiated.","type":"integer","format":"unix-time"},"code":{"description":"API call response code.","type":"integer","format":"int32","enum":[1]},"current_count":{"description":"The current number of items in the results.","type":"integer"},"current_page":{"description":"The current page for the items in the results.","type":"integer"},"results":{"items":{"allOf":[{"type":"object","description":"A site log is created when code within the deployed site uses console.log/error/info/etc. Contains the timestamp, unique identifier, and the log entry/message itself.","additionalProperties":false,"properties":{"timestamp":{"description":"The ISO8601 date when the log entry was created.","type":"string","format":"date-time"},"id":{"type":"string","description":"The unique identifier for the log entry. This is not a RevCent ID, but a unique identifier for the log entry itself."},"entry":{"description":"The site log entry/message.","type":"string"}}}]},"type":"array"},"total_count":{"description":"The total number of items found given the date_start and date_end query parameters.","type":"integer"},"total_pages":{"description":"The total number of pages given the date_start, date_end and limit query parameters.","type":"integer"}},"type":"object","additionalProperties":false}}},"description":"Successful response."},"default":{"content":{"application/json":{"schema":{"description":"","properties":{"api_call_id":{"type":"string","description":"A 20 character API call ID.","minLength":20,"maxLength":20},"api_call_unix":{"description":"Unix timestamp of when the API call was initiated.","type":"integer","format":"unix-time"},"code":{"description":"This value indicates that there is an error. Will always be 0.","type":"integer","enum":[0]},"error_code":{"description":"The specific error code.","type":"string"},"message":{"description":"A human readable description of the error.","type":"string"},"result":{"description":"A description of the API call result.","type":"string"}},"title":"APIStandardErrors","type":"object","additionalProperties":false}}},"description":"Error response."}}}