Monitoring
Get audit logs
Paginated audit trail for the org. Use **projectId** to scope to one project; **level=all** or **audit** for full activity feed. Each entry includes **activityTitle** and **activityDetail** for dashboard copy. Requires monitoring read permission.
GET
/api/monitoring/logsSDK setup
Create a client and set credentials (JWT and/or API key) before calling the API. Match the authentication type shown above.
import { Configuration, MonitoringApi } from 'mudbase-sdk';
const configuration = new Configuration({
basePath: 'https://cloud.mudbase.dev',
accessToken: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c3JfbW9yZ2FuX2RlIiwiZW1haWwiOiJtb3JnYW4uY2hlbkBub3J0aHdpbmQuZGV2IiwiZXhwIjoxODI1MTI5NjAwfQ.doc_preview_sig',
});
const monitoring = new MonitoringApi(configuration);import { Configuration, MonitoringApi } from 'mudbase-sdk';
const configuration = new Configuration({
basePath: 'https://cloud.mudbase.dev',
accessToken: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c3JfbW9yZ2FuX2RlIiwiZW1haWwiOiJtb3JnYW4uY2hlbkBub3J0aHdpbmQuZGV2IiwiZXhwIjoxODI1MTI5NjAwfQ.doc_preview_sig',
});
const monitoring = new MonitoringApi(configuration);Example request
Call this endpoint using the client from SDK setup. Use View HTTP for a raw cURL example.
const { data: result } = await monitoring.getMonitoringLogs();const { data: result } = await monitoring.getMonitoringLogs();Playground
liveTest this endpoint with your own credentials. Your requests will be sent to the live API.
Use the auth endpoints to obtain a JWT.
No Request Yet
Send a request to see the full inspector
Authentication
Requires JWT
Note
Include your JWT in the
Authorization: Bearer YOUR_TOKEN header (user-facing apps, RBAC). View authentication guide →Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
page | integer | No | — |
limit | integer | No | — |
projectId | string | No | Filter to this project (must belong to org) |
userId | string | No | Filter to this user's audit entries |
level | string | No | error|security|all|audit|low|medium|high|critical |
startDate | string | No | — |
endDate | string | No | — |
action | string | No | — |
resource | string | No | — |
Responses
200Audit logs with pagination
json
{
"logs": [
{
"id": "KvfpskoFVZ4eeTX5",
"timestamp": "2026-07-02T10:00:47.298Z",
"level": "monitor program",
"message": "Our zesty-inspired Shirt brings a taste of luxury to your concerned lifestyle",
"action": "array transmit",
"activityTitle": "Secured heuristic portal",
"activityDetail": "card compress",
"user": {
"id": "usr_MJPo2IRfEE1Cjd",
"email": "connie_altenwerth@northwind.dev"
},
"project": {},
"metadata": {}
}
],
"count": 136,
"page": 1,
"limit": 25,
"total": 219,
"totalPages": 1
}{
"logs": [
{
"id": "KvfpskoFVZ4eeTX5",
"timestamp": "2026-07-02T10:00:47.298Z",
"level": "monitor program",
"message": "Our zesty-inspired Shirt brings a taste of luxury to your concerned lifestyle",
"action": "array transmit",
"activityTitle": "Secured heuristic portal",
"activityDetail": "card compress",
"user": {
"id": "usr_MJPo2IRfEE1Cjd",
"email": "connie_altenwerth@northwind.dev"
},
"project": {},
"metadata": {}
}
],
"count": 136,
"page": 1,
"limit": 25,
"total": 219,
"totalPages": 1
}400Invalid userId format
401—
404Project not found
Errors
| Code | Meaning |
|---|---|
400 | Invalid userId format |
401 | — |
404 | Project not found |