Skip to main content

How to Get Projects

When you don't know Project ID

If you don't know the ID of your project you can fetch a list of projects that you have access to through the accounts.

query MyProjects {
me {
id
username
accounts(first: 1) {
totalCount
nodes {
id
name
projects(first: 2) {
totalCount
nodes {
id
name
}
}
}
}
}
}

Try in explorer

When you know your Project ID

If project ID is known (for example from URL) you can fetch the project directly.

query MyProjectById {
getProject(id: "TjAwN1Byb2plY3Q2MTMy") {
id
name
primaryDomain
}
}

Try in explorer