Skip to content

Organization audit log, most recent first (owner or admin; cursor pagination)

GET
/v1/orgs/{org}/audit-log
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).

org
required
string
/^org_[a-z0-9]{26}$/

Example

org_01hx0000000000000000000000
limit
string
cursor
string
actorType
string
Allowed values: user api_key ai system flow import
actorId
string
<= 64 characters
action
string
<= 128 characters
targetType
string
<= 64 characters
targetId
string
<= 64 characters
brandId
string
<= 64 characters
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

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
nullable
actorType
required
string
Allowed values: user api_key ai system flow import
actorId
required
string
nullable
source
required
string
action
required
string
targetType
required
string
targetId
required
string
before
nullable
after
nullable
requestId
required
string
nullable
ip
required
string
nullable
userAgent
required
string
nullable
prevHash
required

Hex SHA-256 of the previous row; null for the first one

string
nullable
hash
required

Hex SHA-256 of prev_hash || canonical content

string
nextCursor
required
string
nullable

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"
}
}