The activity-logs endpoint can be used to retrieve the data from the Company Activity Log.
You can obtain the company_id from MyKinsta > username > Company settings > Billing details.
The company_id is also shown in the URL in MyKinsta, for example in the URL https://my.kinsta.com/?idCompany=bdd25d71-5706-4890-870f-1adda17c505d the company_id is bdd25d71-5706-4890-870f-1adda17c505d.
Successfully found activity logs
No or invalid API key provided to the request
Could not find the activity logs or the user does not have permissions to retrieve data
Error occurred while retrieving activity logs
{- "company": {
- "activity_logs": {
- "items": [
- {
- "id": 34181968,
- "site_id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "created_at": 1665382600770,
- "is_done": true,
- "has_failed": false,
- "has_warning": false,
- "type": "deleteSite",
- "public_error": "The environment is blocked by another process. Please try again a bit later.",
- "ip_address": "203.0.113.42",
- "initiated_by": {
- "id": "admin-user",
- "role": "admin",
- "full_name": "Jane",
- "first_name": "Smith"
}, - "user_agent_info": {
- "browser_name": "Chrome",
- "browser_version": "126.0.0",
- "os_name": "macOS"
}, - "api_key_info": {
- "id": "cf5b98a0-6fdd-4997-9c1f-e73d566533be",
- "name": "Public API Key"
}, - "descriptions": [
- "Delete site \"Test ABC\""
]
}
], - "total": 42
}
}
}