GET /dashboard/organizations/{id}/activity

Get organization activity

Returns activity logs for the organization.

Parameters

NameTypeInDescription
id*
integerpathThe organization ID
page
integerqueryPage number
Default: 1
limit
integerqueryItems per page (max 100)
Default: 25

Response

200
403
successboolean
dataobject
activityarray
pagesinteger
current_pageinteger
entriesinteger
totalinteger

Request

curl -X GET "https://api.royalehosting.net/dashboard/organizations/{id}/activity" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "x-organization-id: YOUR_ORG_ID"

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
  }
}