Prerequisites
Before you begin, ensure you have:- An active Filed account
- Access to Developer Settings in your workspace
- GraphQL endpoint:
https://gateway.filed.com/graphql
If you need assistance accessing Developer Settings or have questions about API access, please contact [email protected]
Overview
The API integration process consists of three simple steps:- Generate API Key from Developer Settings
- Exchange API Key for an access token
- Make authenticated requests to the Filed API
Step 1: Generate API Key
Navigate to Developer Settings in your Filed workspace to generate your API key.1
Access Developer Settings
Log in to your Filed account and navigate to Settings → Developer Settings
2
Generate New API Key
Click Generate API Key and provide a descriptive name for your key (e.g., “Production Integration”, “Development Testing”)
3
Save Your API Key
Copy and securely store your API key immediately - you won’t be able to see it again
Step 2: Exchange API Key for Access Token
Use your API key to obtain an access token that will authenticate all your API requests.GraphQL Mutation
Implementation Notes
- Store the
accessTokensecurely and use it in theAuthorizationheader for all subsequent requests - Access tokens are valid for a limited time; implement token refresh logic as needed
- Format:
Authorization: Bearer <accessToken> - Include a
source-platformheader with a custom identifier for your integration (e.g.,tax-firm-a,my-sample-platform,qount). This header is used to uniquely identify API requests for analytical purposes and does not affect rate limits or any other API functionality.
Step 3: Verify Your Connection
Make a test request to verify your API key works correctly. Theme query returns information about the authenticated user.
GraphQL Query
Implementation Notes
- The
mequery returns information about the currently authenticated user - A successful response confirms your API integration is working correctly
- The
idfield uniquely identifies the authenticated user
Success! If you receive a valid response with your user information, your API integration is working correctly and you’re ready to start building.
Complete Integration Example
Here’s a complete example showing all three steps together:Best Practices
Security
- Never expose API keys: Store API keys in environment variables or secure secret management systems
- Use HTTPS: Always make API requests over HTTPS
- Validate inputs: Always validate user inputs before making API calls
Error handling
- Handle authentication errors: Implement retry logic for expired tokens
- Validate responses: Check for errors in GraphQL responses
- Log errors: Maintain error logs for debugging and monitoring
Next Steps
Now that you’ve successfully integrated with Filed’s API, you can:- Explore the API: Browse the full API reference to discover available queries and mutations
- Build features: Start implementing features using Filed’s GraphQL API
- Monitor usage: Track your API usage and monitor for errors
Support
Need help with your integration?- Email: [email protected]
- Documentation: Browse our API documentation for more details