Skip to main content

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
}
}
}
}

Try in explorer

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
}
}
}

Try in explorer

or you can use getAccount query.

query getSpecificAccount($accountId: ObjectID!) {
getAccount(id: $accountId) {
... on Account {
id
name
}
}
}

Try in explorer