List the audit log
curl --request GET \
--url https://api.peel.sh/v1/audit-events \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.peel.sh/v1/audit-events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.peel.sh/v1/audit-events"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"events": [
{
"id": "<string>",
"at": "2023-11-07T05:31:56Z",
"actor": {
"type": "session",
"user_id": "<string>",
"email": "<string>",
"key_id": "<string>"
},
"action": "<string>",
"target": "<string>",
"status": 123
}
],
"next_cursor": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"instance": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"retry": "same_key",
"docs_url": "<string>",
"details": {}
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"instance": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"retry": "same_key",
"docs_url": "<string>",
"details": {}
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"instance": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"retry": "same_key",
"docs_url": "<string>",
"details": {}
}Account
List the audit log
Who changed what on the account, newest first: API, login, key, webhook and team changes, and MCP tools that change something. Calls and runs are in the runs log instead. Kept 90 days. Needs the team:manage permission.
GET
/
v1
/
audit-events
List the audit log
curl --request GET \
--url https://api.peel.sh/v1/audit-events \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.peel.sh/v1/audit-events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.peel.sh/v1/audit-events"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"events": [
{
"id": "<string>",
"at": "2023-11-07T05:31:56Z",
"actor": {
"type": "session",
"user_id": "<string>",
"email": "<string>",
"key_id": "<string>"
},
"action": "<string>",
"target": "<string>",
"status": 123
}
],
"next_cursor": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"instance": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"retry": "same_key",
"docs_url": "<string>",
"details": {}
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"instance": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"retry": "same_key",
"docs_url": "<string>",
"details": {}
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"instance": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"retry": "same_key",
"docs_url": "<string>",
"details": {}
}⌘I