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.

Get projects from accounts you have access to
query MyProjects {
me {
id
username
accounts(first: 1) {
totalCount
nodes {
id
name
projects(first: 2) {
totalCount
nodes {
id
name
}
}
}
}
}
}
Show example response Show cURL example Try in explorer

When you know your Project ID‚Äč

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

Get a specific project by ID
query MyProjectById {
getProject(id: "TjAwN1Byb2plY3Q2MTMy") {
id
name
primaryDomain
}
}
Show example response Show cURL example Try in explorer