Skip to main content
POST

Authorizations

x-magnific-api-key
string
header
required

Your Magnific API key. Required for authentication. Learn how to obtain an API key

Body

application/json

Range and filters of an audit-log export. Every property is optional.

from
string<date>

First day of the export (YYYY-MM-DD, UTC, inclusive). Cannot be earlier than 2026-07-01 nor later than to. Defaults to 14 days before to.

Example:

"2026-07-01T00:00:00.000Z"

to
string<date>

Last day of the export (YYYY-MM-DD, UTC, inclusive). Defaults to today. There is no upper bound: a later day is accepted and the export holds the events that exist when it is generated.

Example:

"2026-09-30T00:00:00.000Z"

filters
object

Narrows the export. An event must match every filter that is set; within one filter, any of its values. Repeated values are ignored. An absent or empty filter does not narrow.

Response

Accepted - the report was created and its generation queued.

id
string<uuid>
required

Reference of the report. Use it as reference to poll its status and to get its download URL.

Example:

"0b6f1c9e-4a57-4d0e-9d55-7c1e2f3a4b5c"