GET
/dashboard/organizations/{id}/members List organization members
Returns all members of the organization.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | integer | path | The organization ID |
Response
200
403
successbooleandataobjectmembersarrayRequest
curl -X GET "https://api.royalehosting.net/dashboard/organizations/{id}/members" \
-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}/members", {
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}/members",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
}
)
print(response.json())Response
{
"success": true,
"data": {
"members": [
{
"id": 1,
"user_id": 123,
"role_id": 1,
"role_name": "Admin",
"user": {
"id": 123,
"first_name": "John",
"last_name": "Doe",
"email": "john@example.com"
},
"created_at": "2024-01-15T10:30:00Z"
}
]
}
}