This guide walks you through the complete API integration process for customers, from generating your API key to making your first authenticated request. Follow these steps to start building with Filed’s API.Documentation Index
Fetch the complete documentation index at: https://docs.filed.com/llms.txt
Use this file to discover all available pages before exploring further.
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 support@filed.com
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.Access Developer Settings
Log in to your Filed account and navigate to Settings → Developer Settings
Generate New API Key
Click Generate API Key and provide a descriptive name for your key (e.g., “Production Integration”, “Development Testing”)
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: support@filed.com
- Documentation: Browse our API documentation for more details