Logs

Export logs as CSV

Changed on

Returns 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.

get/servers/{guild_id}/logs/export

Request

Path parameters

guild_idstring required
Example:301655085954367490

The server's ID. Must be the server the token was created for.

Query parameters

searchstring

Text to search for. Matches whole words in message content, and parts of names, channels, roles and reasons.

afterinteger

Only entries after this time, in milliseconds since the Unix epoch. Limited to what the server's plan allows.

beforeinteger

Only entries before this time, in milliseconds since the Unix epoch.

categorystring[]

One or more categories. Repeat the parameter for each.

typeinteger[]

One or more log type IDs. Repeat the parameter for each.

channelstring

A channel ID.

memberstring

A user ID.

memberRole'executor' | 'target' | 'either'

Whether member did the action, had it done to them, or either.

rolestring

A role name, or part of one.

locale'en' | 'de' | 'ja'

Language of the summary column.

bot'pro'

Set to pro to act on the Quark Pro bot's configuration. Leave out for the main Quark bot.

Response

The CSV file.

Changes