Audit log

Audit log

What happened in an org, and who did it.

An SDK signs every request with your key: Authentication. To sign one yourself, see Calling the API without an SDK.

On this page
  1. audit.list

audit.list

Show what happened in an org.

POST/v1/audit.list

Admin or owner

Parameters

  • limitintegeroptional

    How many rows to return, 1 to 200.

    Default 50. From 1 to 200.

  • actorstringoptional

    Who did it: a whole address, or part of one.

    At most 254 characters.

  • kindstringoptional

    Only events of this kind, such as member_invited.

    At most 64 characters.

  • sinceinteger or stringoptional

    From this moment on: milliseconds, an ISO time, or a day (YYYY-MM-DD, from its start in UTC).

  • untilinteger or stringoptional

    Up to this moment: milliseconds, an ISO time, or a day (YYYY-MM-DD, to its end in UTC).

  • beforestringoptional

    The id of the last row you have, for the rows before it.

Beside input

  • orgstringoptional

    The org this is about. Needed when the caller is in more than one.

Returns

data is a list of objects, each with:

  • idstring
  • kindstring
  • targetstring
  • actornullable string
  • atnumber
  • ipnullable string

    Where it was done from, for the events that record that.

  • locationnullable string

In the CLIErrors

import { Mailset } from 'mailset';

// Reads MAILSET_TOKEN from the environment.
const mailset = new Mailset();

const answer = await mailset.audit.list({
	actor: "moc.elpmaxe@neb",
	since: "2026-11-01",
});
console.log(answer);
from mailset import Mailset

# Reads MAILSET_TOKEN from the environment.
mailset = Mailset()

answer = mailset.audit.list(
    {"actor": "moc.elpmaxe@neb", "since": "2026-11-01"}
)
print(answer)
package main

import (
	"context"
	"fmt"
	"log"

	mailset "mailset.app/go"
)

func main() {
	// Reads MAILSET_TOKEN from the environment.
	client, err := mailset.NewClient()
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()
	params := &mailset.AuditListParams{
		Actor: mailset.String("moc.elpmaxe@neb"),
		Since: "2026-11-01",
	}
	answer, err := client.Audit.List(ctx, params)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(answer)
}
require 'mailset'

# Reads MAILSET_TOKEN from the environment.
mailset = Mailset::Client.new

answer = mailset.audit.list(
  actor: 'moc.elpmaxe@neb',
  since: '2026-11-01'
)
p answer
<?php

require 'vendor/autoload.php';

// Reads MAILSET_TOKEN from the environment.
$mailset = new Mailset\Client();

$answer = $mailset->audit->list([
    'actor' => 'moc.elpmaxe@neb',
    'since' => '2026-11-01',
]);
echo json_encode($answer, JSON_PRETTY_PRINT), PHP_EOL;
import app.mailset.Mailset;
import app.mailset.model.Audit;
import app.mailset.model.AuditListParams;
import java.util.List;

// Reads MAILSET_TOKEN from the environment.
Mailset mailset = Mailset.fromEnv();

var params = AuditListParams.builder()
        .actor("moc.elpmaxe@neb")
        .since("2026-11-01")
        .build();
List<Audit> answer = mailset.audit().list(params);
System.out.println(answer);
use mailset::types::AuditListParams;

// Reads MAILSET_TOKEN from the environment.
let mailset = mailset::Client::from_env()?;

let answer = mailset
    .audit()
    .list(AuditListParams {
        actor: Some("moc.elpmaxe@neb".into()),
        since: Some("2026-11-01".into()),
        ..Default::default()
    })
    .await?;
println!("{answer:?}");
curl https://mailset.app/v1/audit.list \
  -H "Authorization: Bearer $TOKEN" \
  -H "ms-time: $MS_TIME" \
  -H "ms-proof: $MS_PROOF" \
  -H "Content-Type: application/json" \
  -d '{"input":{"actor":"moc.elpmaxe@neb","since":"2026-11-01"},"org":"org_3f9a1c0e7b2d"}'

curl can’t sign a request. $TOKEN is your credential’s token, and $MS_TIME and $MS_PROOF sign this exact body: Calling the API without an SDK shows how.

mailset audit list --actor moc.elpmaxe@neb --since 2026-11-01
Response
{
  "ok": true,
  "data": [
    {
      "id": "out_3f9a1c0e7b2d",
      "kind": "text",
      "target": "text",
      "actor": "text",
      "at": 1796048940000,
      "ip": "text",
      "location": "text"
    }
  ]
}