Returns all ACL (Access Control List) roles defined in the system.
Reference
GET https://YOUR-NETWORK-DOMAIN/rest-api/aclrole/list.do
Returns all ACL (Access Control List) roles defined in the system. Each role includes its numeric ID and display name (e.g., 'publisher', 'advertiser'). These role IDs are used when registering new users via the /register-user or /user-sign-up endpoints to assign the appropriate permission set. Requires authentication.
Responses
200
JSON array of role objects, e.g. [{id: 1, name: 'publisher'}, ...]
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://YOUR-NETWORK-DOMAIN/rest-api/aclrole/list.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());