Our API SDK is available in multiple languages, making it easy to integrate Flatfile regardless of your tech stack. Each library gives you the full power of our platform in patterns you’ll feel right at home with.

Setup

After installing the package, import the FlatfileClient and instantiate it by passing in your secret key as the token.

import { FlatfileClient } from "@flatfile/api";

const token = "sk_your_secret_key";
const api = new FlatfileClient({ token });

Make sure to keep your secret key safe, as it can be used to access potentially sensitive information.

Making API Calls

Make API calls by calling the appropriate method on the api object.
Note that responses are promises, so you’ll need to handle them accordingly.

Core API Methods