Web API

Press shift + S to search API reference.

Endpoint

Get audit log request

gethttps://api.airtable.com/v0/meta/enterpriseAccounts/{enterpriseAccountId}/auditLogs/{enterpriseAuditLogTaskId}

NOTE: Use of this API is discouraged for new use cases. Prefer to use the audit log events API instead.

Retrieve a specific audit log request.

Requirements

AuthenticationPersonal access token, OAuth integration
Scopeenterprise.auditLogs:read
User role

Enterprise admin

Billing plansAll plans

Path parameters

enterpriseAccountId
string
enterpriseAuditLogTaskId
string

Response format

Audit log
Request (example)
Copy
$
curl "https://api.airtable.com/v0/meta/enterpriseAccounts/{enterpriseAccountId}/auditLogs/{enterpriseAuditLogTaskId}" \
-H "Authorization: Bearer YOUR_TOKEN"
200 – Response (example)
{
"createdByUserId": "usrL2PNC5o3H4lBEi",
"createdTime": "2021-01-01T00:00:00.000Z",
"data": {
"expirationTime": "2021-01-01T00:00:00.000Z",
"logFileUrls": [
"https://airtable-sensitive-customer-data-development.s3.amazonaws.com/..."
]
},
"id": "ealLvFqm3oJNxg30m",
"state": "done",
"timePeriod": "2021-01"
}
Request (example)
Copy
$
curl "https://api.airtable.com/v0/meta/enterpriseAccounts/{enterpriseAccountId}/auditLogs/{enterpriseAuditLogTaskId}" \
-H "Authorization: Bearer YOUR_TOKEN"
200 – Response (example)
{
"createdByUserId": "usrL2PNC5o3H4lBEi",
"createdTime": "2021-01-01T00:00:00.000Z",
"errorMessage": "error message",
"id": "ealLvFqm3oJNxg30m",
"state": "error",
"timePeriod": "2021-01"
}
Request (example)
Copy
$
curl "https://api.airtable.com/v0/meta/enterpriseAccounts/{enterpriseAccountId}/auditLogs/{enterpriseAuditLogTaskId}" \
-H "Authorization: Bearer YOUR_TOKEN"
200 – Response (example)
{
"createdByUserId": "usrL2PNC5o3H4lBEi",
"createdTime": "2021-01-01T00:00:00.000Z",
"filter": "appLkNDICXNqxSDhG",
"id": "ealLvFqm3oJNxg30m",
"state": "pending",
"timePeriod": "2021-01"
}
Request (example)
Copy
$
curl "https://api.airtable.com/v0/meta/enterpriseAccounts/{enterpriseAccountId}/auditLogs/{enterpriseAuditLogTaskId}" \
-H "Authorization: Bearer YOUR_TOKEN"
200 – Response (example)
{
"createdByUserId": "usrL2PNC5o3H4lBEi",
"createdTime": "2021-01-01T00:00:00.000Z",
"filter": "appLkNDICXNqxSDhG",
"id": "ealLvFqm3oJNxg30m",
"state": "processing",
"timePeriod": "2021-01"
}