JavaScript
import { createCognitioClient } from "@cognitio/sdk
const client = createCognitioClient()
await client.experimental.console.listOrgs({
...
}){
"orgs": [
{
"accountID": "<string>",
"accountEmail": "<string>",
"accountUrl": "<string>",
"orgID": "<string>",
"orgName": "<string>",
"active": true
}
]
}API Reference
List switchable Console orgs
Get the available Console orgs across logged-in accounts, including the current active org.
GET
/
experimental
/
console
/
orgs
JavaScript
import { createCognitioClient } from "@cognitio/sdk
const client = createCognitioClient()
await client.experimental.console.listOrgs({
...
}){
"orgs": [
{
"accountID": "<string>",
"accountEmail": "<string>",
"accountUrl": "<string>",
"orgID": "<string>",
"orgName": "<string>",
"active": true
}
]
}