Retrieving your Lumar accounts
To begin fully using the API you will need access to account with an active subcription.
To find out which accounts do you have access to you can run following GraphQL query.
query getMyAccounts {
me {
accounts(first: 5) {
nodes {
id
name
}
}
}
}
When you have an account id that you want to access to you can skip going through me and query directly to get a specific account.
query getAccountNode($accountId: ObjectID!) {
node(id: $accountId) {
... on Account {
id
name
}
}
}
or you can use getAccount query.
query getSpecificAccount($accountId: ObjectID!) {
getAccount(id: $accountId) {
... on Account {
id
name
}
}
}
Seat limits
An account's subscription caps how many users may be connected to it. Two fields on Account report the numbers the API itself enforces:
usersLimit-- the maximum number of users the account may hold. This is0when the account's package sells no seats;0never means "unlimited".usersCount-- the users currently connected to the account, which is whatusersLimitis compared against. Pending user invites are not counted, so seats already promised to open invites still read as free.
Gate an "invite user" action on usersCount < usersLimit rather than deriving the limit from accountSettings: once the two numbers meet, connecting another user through the API fails with ACCOUNT_USER_LIMIT_REACHED.
Users provisioned by SSO login are added outside this check, so on an SSO account usersCount may exceed usersLimit. Read the remaining seats as max(0, usersLimit - usersCount).