list_principals
GET
/admin/principals
curl --request GET \ --url http://localhost:3001/admin/principals \ --header 'Authorization: Bearer <token>'import requests
url = "http://localhost:3001/admin/principals"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.json())use reqwest;
#[tokio::main]pub async fn main() { let url = "http://localhost:3001/admin/principals";
let mut headers = reqwest::header::HeaderMap::new(); headers.insert("Authorization", "Bearer <token>".parse().unwrap());
let client = reqwest::Client::new(); let response = client.get(url) .headers(headers) .send() .await;
let results = response.unwrap() .json::<serde_json::Value>() .await .unwrap();
dbg!(results);}Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”external_subject
required
string
Responses
Section titled “Responses”OK
Media typeapplication/json
Array<object>
object
code
required
string
created_at
required
string format: date-time
display_name
string
external_subject
string
id
required
string format: uuid
principal_type
required
string
status
required
string
updated_at
required
string format: date-time
Example generated
[ { "code": "example", "created_at": "2026-04-15T12:00:00Z", "display_name": "example", "external_subject": "example", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "principal_type": "example", "status": "example", "updated_at": "2026-04-15T12:00:00Z" }]