Listing organizations

How to list the organizations in your account

You may want to know the ID or some other data of your organizations. For that, we have the following two queries:

  1. The organization query returns the data of your current organization:

query {
  organization {
    id
    name
    uuid
    cnpj
  }
}
  1. The organizations query returns the data of all your organizations:

query {
  organizations {
    id
    name
    uuid
    cnpj
  }
}
circle-info

You can check what each of these parameters means directly in the full GraphQL API documentation, in the Docs menu of Altairarrow-up-right. If you're not sure how to do that, check out our tutorial on Using Altair.

circle-info

If Altair doesn't help you integrate with the API, check out some examples of how to make these requests in other ways: https://graphql.org/graphql-js/graphql-clients/

Last updated