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.
getMyAccountsTry in Explorer
GraphQL
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.
getAccountNodeTry in Explorer
GraphQL
query getAccountNode($accountId: ObjectID!) {
node(id: $accountId) {
... on Account {
id
name
}
}
}
or you can use getAccount query.
getSpecificAccountTry in Explorer
GraphQL
query getSpecificAccount($accountId: ObjectID!) {
getAccount(id: $accountId) {
... on Account {
id
name
}
}
}