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.

Operation: query getMyAccounts { me { accounts(first: 5) { nodes { id name } } } }Response Example: { "data": { "me": { "username": "your.username@usually-email.com", "accounts": { "nodes": [ { "id": "TjAwN0FjY291bnQyMTkyMQ", "name": "Your Account Name" } ] } } } }
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.

Operation: query getAccountNode($accountId: ObjectID!) { node(id: $accountId) { ... on Account { id name } } }Variables: { "accountId": "TjAwN0FjY291bnQ3MTU" }Response Example: { "data": { "node": { "id": "TjAwN0FjY291bnQ3MTU", "name": "Your Account Name" } } }
getAccountNodeTry in Explorer
GraphQL
query getAccountNode($accountId: ObjectID!) {
node(id: $accountId) {
... on Account {
id
name
}
}
}

or you can use getAccount query.

Operation: query getSpecificAccount($accountId: ObjectID!) { getAccount(id: $accountId) { ... on Account { id name } } }Variables: { "accountId": "TjAwN0FjY291bnQ3MTU" }Response Example: { "data": { "getAccount": { "id": "TjAwN0FjY291bnQ3MTU", "name": "Your Account Name" } } }
getSpecificAccountTry in Explorer
GraphQL
query getSpecificAccount($accountId: ObjectID!) {
getAccount(id: $accountId) {
... on Account {
id
name
}
}
}