Export logs as CSV
Changed onReturns the logs matching the filters as a CSV file, newest first, up to 50,000 rows, within the history window the server's plan allows.
Columns: timestamp, log_id, log_type, log_name, summary, executor_id, executor_name, target_id, target_name, channel_id, channel_name, role, name, reason, count, content, content_after, delivered, delivery_reason.
Request
- Base URLhttps://quark.bot/api
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The server's ID. Must be the server the token was created for.
Query parameters
Text to search for. Matches whole words in message content, and parts of names, channels, roles and reasons.
Only entries after this time, in milliseconds since the Unix epoch. Limited to what the server's plan allows.
Only entries before this time, in milliseconds since the Unix epoch.
One or more categories. Repeat the parameter for each.
One or more log type IDs. Repeat the parameter for each.
A channel ID.
A user ID.
Whether member did the action, had it done to them, or either.
A role name, or part of one.
Language of the summary column.
Set to pro to act on the Quark Pro bot's configuration. Leave out for the main Quark bot.
Response
The CSV file.
Changes
- info
endpoint added
- info