Organization audit log, most recent first (owner or admin; cursor pagination)
GET
/v1/orgs/{org}/audit-log
const url = 'https://api.replifier.com/v1/orgs/org_01hx0000000000000000000000/audit-log?actorType=user';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.replifier.com/v1/orgs/org_01hx0000000000000000000000/audit-log?actorType=user'Filters by actor, action, target, brand and dates (from inclusive, to exclusive).
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
Example
org_01hx0000000000000000000000Query Parameters
Section titled “Query Parameters”limit
string
cursor
string
actorType
string
actorId
string
action
string
targetType
string
targetId
string
brandId
string
from
From (inclusive), ISO 8601
string format: date-time
From (inclusive), ISO 8601
to
To (exclusive), ISO 8601
string format: date-time
To (exclusive), ISO 8601
Responses
Section titled “Responses”Audit log rows
Media typeapplication/json
object
data
required
Array<object>
object
id
required
string
seq
required
Position in the organization’s chain (1, 2, 3…)
integer
occurredAt
required
string
organizationId
required
string
brandId
required
string
actorType
required
string
actorId
required
string
source
required
string
action
required
string
targetType
required
string
targetId
required
string
before
after
requestId
required
string
ip
required
string
userAgent
required
string
prevHash
required
Hex SHA-256 of the previous row; null for the first one
string
hash
required
Hex SHA-256 of prev_hash || canonical content
string
nextCursor
required
string
Example
{ "data": [ { "actorType": "user" } ]}Invalid data
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Internal error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}