GET
/dashboard/organizations/{id}/activity Get organization activity
Returns activity logs for the organization.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | integer | path | The organization ID |
page | integer | query | Page number
Default: 1 |
limit | integer | query | Items per page (max 100)
Default: 25 |
Response
200
403
successbooleandataobjectactivityarraypagesintegercurrent_pageintegerentriesintegertotalintegerRequest
curl -X GET "https://api.royalehosting.net/dashboard/organizations/{id}/activity" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-organization-id: YOUR_ORG_ID"Request
const response = await fetch("https://api.royalehosting.net/dashboard/organizations/{id}/activity", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
},
});
const data = await response.json();Request
import requests
response = requests.get(
"https://api.royalehosting.net/dashboard/organizations/{id}/activity",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
}
)
print(response.json())Response
{
"success": true,
"data": {
"activity": [
{
"id": 1,
"action": "invoice_paid",
"description": "string",
"created_at": "2024-01-15T10:30:00Z",
"user": {
"id": 123,
"first_name": "John",
"last_name": "Doe",
"email": "john@example.com"
},
"admin": {},
"invoice": {
"id": 0
}
}
],
"pages": 5,
"current_page": 1,
"entries": 25,
"total": 120
}
}