GET /dashboard/organizations

List organizations

Returns all organizations the user owns or is a member of.

Response

200
401
successboolean
dataobject
organizationsarray

Request

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

Response

{
  "success": true,
  "data": {
    "organizations": [
      {
        "id": 1,
        "name": "My Company",
        "description": "Main organization",
        "icon": "string",
        "business": true,
        "created_at": "2024-01-15T10:30:00Z",
        "role": "owner",
        "isOwner": true
      }
    ]
  }
}