Tenant admin
What an app builder does with the management API, on the demo’s own tenant. The server reads it with a read-only org API key that never reaches your browser, so nothing here can be changed.
-
api_key.expired -
user.created -
discord_role.recognized -
api_key.expired -
brand.deleted -
brand.deleted -
api_key.revoked -
app.created -
file.uploaded -
file.uploaded -
file.uploaded -
app.created -
file.uploaded -
file.uploaded -
app.created -
file.uploaded -
file.uploaded -
app.created -
file.uploaded -
file.uploaded -
file.uploaded -
token_gate.updated -
app.created -
brand.updated -
brand.updated
src/examples/admin/AuditLog.tsximport { demoOrg } from '../../lib/management'
// The org's audit log, newest first: every change anyone made through the
// dashboard or the API, and every sign-in event, with who did it. The same
// rows reach the org's webhooks as events.
export async function AuditLog() {
const tenant = await demoOrg()
if (!tenant) return <p>The demo tenant isn’t set up.</p>
const { data } = await tenant.synq.get('/v1/orgs/{org}/audit-log', {
path: { org: tenant.org.id },
query: { limit: 25 },
})
return (
<ol aria-label="Audit log" className="space-y-2">
{data.map((event) => (
<li key={event.id}>
<time dateTime={event.created_at}>{new Date(event.created_at).toUTCString()}</time>{' '}
<code>{event.action}</code>
</li>
))}
</ol>
)
}