The DevXP engineering team hosts office hours every Thursday at 11 a.m.
Pacific Time where we answer your questions live and help you get up and
running with Flatfile. Join
us!
The
accessToken
provided will remain valid for a duration of 24 hours.Retrieving a Personal Access Token
YourpublishableKey
and secretKey
are specific to an environment therefore, to interact at a higher level, you’ll have to use a personal access token.
- From the dashboard, open Settings
- Click to Personal Tokens
-
Retrieve your
clientId
andsecret
. - Using the key pair, call the auth endpoint:
- The response will include an
accessToken
. Present that as your Bearertoken
in place of thesecretKey
.
Retrieving Account-Level Objects
With the obtainedaccessToken
, you can use it as a Bearer token in place of the secretKey
to perform account-level queries. This allows you to access to every object across the Account.
By using the admin API key, you can query for all events across all environments, list all users and guests, determine the number of Spaces and their presence in different environments, and identify environments with agents deployed.