Skip to content

List audit events

GET
/orgs/{orgId}/audit
curl --request GET \
--url 'https://example.com/api/v1/orgs/example/audit?actorKind=member&category=link' \
--header 'Authorization: Bearer <token>'

Returns organization audit events in reverse chronological order. Requires owner or admin role, the audit entitlement, and a session or org-wide API token.

orgId
required

Organization ID.

string
actorKind

Filter events by actor kind.

string
Allowed values: member recipient system
category

Filter events by category.

string
Allowed values: link delivery access storage billing files
query

Case-insensitive substring search across actor, verb, target, and detail.

string
<= 200 characters
cursor

Opaque pagination cursor returned as nextCursor by the previous page.

string
<= 200 characters
limit

Maximum number of items to return (1–500).

integer
>= 1 <= 500

Paginated audit events

Media typeapplication/json
object
items
required
Array<object>

Immutable organization audit log entry.

object
actor
required

Display label or identifier of the actor.

string
actorEmail
required

Email of the member account that acted, at the time of the event. The display name in actor can change; this does not.

Any of:
string
actorKind
required

Category of actor that triggered an audit event (member, recipient, or system).

string
Allowed values: member recipient system
at
required

ISO-8601 UTC timestamp of the event.

string
category
required

Functional category of an audit event.

string
Allowed values: link delivery access storage billing files
detail
required

Additional event context.

string
id
required
string
ip
required

Client IP address, if recorded.

Any of:
string
place
required

Coarse location label, if available.

Any of:
string
target
required

Resource name or identifier acted upon.

string
ua
required

Client User-Agent string, if recorded.

Any of:
string
verb
required

Human-readable action description.

string
viaToken
required

Whether the member acted with an API token or MCP connection.

boolean
nextCursor
required
Any of:
string

Example

{
"items": [
{
"actor": "Alex Rivera",
"actorEmail": "alex@example.com",
"actorKind": "member",
"at": "2026-11-01T12:00:00.000Z",
"category": "link",
"detail": "Expires 2026-12-01 · password off · no open limit",
"id": "ae_01j9abc",
"ip": "203.0.113.10",
"place": null,
"target": "q4.pdf",
"ua": "Mozilla/5.0",
"verb": "created a Gated link to",
"viaToken": false
}
]
}

Invalid request input or rule violation.

Media typeapplication/json

Error returned when request input fails schema validation or violates a domain rule.

object
code
required
string
Allowed values: BAD_REQUEST
data
object
issues
required

Field-level validation failures, present when schema validation fails.

Array<object>
object
message
required
string
path
required

Dot-separated field path.

string
message
required

Human-readable error explanation.

string

Example

{
"code": "BAD_REQUEST"
}

Authentication required or credentials invalid.

Media typeapplication/json

Standard REST error envelope.

object
code
required

Machine-readable error code.

string
data

Optional structured error details.

message
required

Human-readable error explanation.

string

Example generated

{
"code": "example",
"data": "example",
"message": "example"
}

Insufficient role, bucket grant, or token scope.

Media typeapplication/json

Standard REST error envelope.

object
code
required

Machine-readable error code.

string
data

Optional structured error details.

message
required

Human-readable error explanation.

string

Example generated

{
"code": "example",
"data": "example",
"message": "example"
}

Unexpected server error. Quote data.requestId when you report it.

Media typeapplication/json

Error returned when Sendcrate or one of its providers fails (5xx).

object
code
required
string
Allowed values: INTERNAL_SERVER_ERROR PROVIDER_FAILED
data
object
debug

Error chain with stack traces. Present only when the server runs in development mode.

Array
requestId

Request reference to quote when you report the error.

string
message
required

Human-readable error explanation.

string

Example

{
"code": "INTERNAL_SERVER_ERROR"
}