You can leverage your admin API key (personal access token) to query items outside of specific environments. This opens up possibilities for various use cases, including building audit logs, managing Spaces, and monitoring agents across environments.Documentation Index
Fetch the complete documentation index at: https://flatfileinc-feat-updatereactquickstart.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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
clientIdandsecret. - Using the key pair, call the auth endpoint:
- The response will include an
accessToken. Present that as your Bearertokenin 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.