Request an evidence file

POSThttps://api.checkslip.com/api/audit/exports

API key

Builds an evidence file of the account for the chosen UTC days, for an auditor, a bank or a court. Answers 202 with status QUEUED; poll GET with the export_id until it is READY or FAILED. The file holds every activity record (AUDIT_EVENTS) of each day, each line as GET /api/audit/events gives it. Only closed days can be exported: not today, and yesterday only from 10 minutes after midnight UTC (schedule a nightly job after 00:10 UTC), at most 31 days per file. The file is deleted after expires_at, while the manifest stays; download it before then. Uses no credit. Send an Idempotency-Key; a retry with the same value returns the same file and builds nothing new. Needs an API key with both audit:read and audit:export, or the web app sign-in. Through the Checkslip assistant, confirm your password first and send the step_up_proof.

Parameters

FieldInTypeRequired
Idempotency-Keyheaderstringyes

Request body

application/json

FieldTypeRequired
from_daystring (date)yes
to_daystring (date)yes
streamsAUDIT_EVENTS[]no
step_up_proofstringno

Responses

202 application/json

FieldTypeRequired
export_idstring (uuid)yes
statusQUEUED | RUNNING | READY | FAILED | EXPIREDyes
from_daystring (date)yes
to_daystring (date)yes
streamsAUDIT_EVENTS[]yes
created_atstring (date-time)yes
created_byExportCreatorno
created_by.typeUSER | API_KEY | ASSISTANT | STAFF | SYSTEMyes
created_by.idstring (uuid) | nullno
ready_atstring (date-time) | nullno
expires_atstring (date-time) | nullno
manifestExportManifest | nullno

Possible errors

400401403409422429

An error as Problem Details. All codes are listed at Error codes