All Collections
Versions 3.0 and 2.0
Implement
All Products
Using the Flatfile GraphQL API to retrieve a list of data templates
Using the Flatfile GraphQL API to retrieve a list of data templates
Elisa Dinsmore avatar
Written by Elisa Dinsmore
Updated over a week ago

This article is for Flatfile's Portal 2.0, Portal 3.0, and Workspaces. If you'd like to check out the latest version of the Flatfile Data Exchange Platform, click here!

In addition to being able to use the Flatfile GraphQL API to create data templates, you can also use the GraphQL API to retrieve information about the data templates that you have already created.

Our GraphQL API supports this feature using the `getSchemas` query (data templates are sometimes referred to as “schemas”). The query below is a good example of what you would need to return a list of templates that have been created:

query {
    getSchemas (teamId:XXXXXX) {
        data {
            id
            name
            embeds {
                id
                name
           }
            createdAt
            updatedAt
     }
   }
  }

This example would also return information about which data templates are associated with any Portals you may be using.

Remember that before you can use any GraphQL API features, you will need to create an API access key.

You can see our full GraphQL schema (and a code playground) here.

Did this answer your question?