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!
Generate API key with GraphQL
(update the licenseKey and teamID below with the appropriate values for the team you want to work with)
Sample GraphQL mutation: (see https://api.us.flatfile.io/graphql for more info as needed)
mutation { createAccessKey( licenseKey:"055f3544-1557-4895-8114-046d092a3ed5", memo:"Any memo", teamId:3323 ) { secretAccessKey {secret} accessKey {accessKeyId} } }
Deactivate API key with GraphQL
(update the accessKeyId below with the appropriate values for the team you want to work with)
Sample GraphQL mutation:
mutation { inactivateAccessKey( accessKeyId:"FF00S3SPHN6RRFQH8C4UF1GZ7KML2RVS85YPFZIB" ) { accessKeyId inactivatedAt inactivatedByUser {id, name} } }