Docs Audit logs
API Reference

Audit logs

Every action in your SwiftProof account is recorded. Query the log to monitor activity, debug issues, and satisfy compliance requirements.

GET /v1/logs

Retrieve audit log entries for your project. Returns the 50 most recent entries by default, ordered newest first.

Query paramTypeDescription
limitintegerNumber of entries. Default 50, max 500.
chain_idstringFilter to a specific chain.
event_typestringFilter by event type. See event types below.
fromstringISO 8601 start time for the query window.
tostringISO 8601 end time for the query window.
beforestringCursor for pagination. Pass log_id of last result.

Log entry object

FieldTypeDescription
log_idstringUnique identifier for this log entry.
event_typestringThe type of event that occurred.
chain_idstringAssociated chain, if applicable.
handoff_idstringAssociated handoff, if applicable.
actorstringWho performed the action.
metadataobjectAdditional context specific to the event type.
created_atstringISO 8601 timestamp.

Event types

Event typeDescription
chain.createdA new chain was created via the API.
chain.completedAll handoffs confirmed. Chain is now closed.
chain.failedOne or more links expired before confirmation.
handoff.confirmedAn actor confirmed their step via the confirmation link.
handoff.expiredA confirmation link passed its expiry time unconfirmed.
handoff.resentA fresh confirmation link was issued to replace an old one.
link.openedAn actor opened a confirmation link without yet confirming.
verification.requestedA chain verification was performed via the API.
Audit logs are retained for 24 months. For compliance use cases requiring longer retention, contact hello@tryswiftproof.com.