# How to connect to the FreeAgent API

Apideck enables you to build a native integration with FreeAgent. This explains guide explains how to configure the FreeAgent connnector. 

## Before you start, you’ll need:

To create your FreeAgent Developer account, follow the steps below.

1. Navigate to [dev.freeagent.com](https://dev.freeagent.com/)
2. On the menu bar click Sign up, which will open the Create your account form.
3. Fill out the form and click __Create Account__, which redirects you to developer homepage.
4. To create a new app, navigate to Navigate to [My Apps](https://dev.freeagent.com/apps) and click on Create New app. 
5. Add the Apideck Redirect URI `https://unify.apideck.com/vault/callback`.
6. Copy the Client ID and Secret shown after creation.
7. Go back to Apideck to configure the [FreeAgent connector](https://platform.apideck.com/configuration/accounting/freeagent) with your Client ID and Secret.

## Do your first API call to the FreeAgent API

- Connect your FreeAgent account through [Vault](https://platform.apideck.com/vault) with a test session.

- To test the access token, make a query to get your [`Invoices`](https://developers.apideck.com/apis/accounting/reference#operation/invoicesAll) endpoint using the [Accouting API](https://developers.apideck.com/apis/accounting/reference#operation/invoicesAll).

```
curl --location --request GET 'https://unify.apideck.com/accounting/invoices' \
--header 'x-apideck-consumer-id: test-consumer' \
--header 'x-apideck-app-id: {APIDECK_APP_ID}' \
--header 'x-apideck-service-id: freeagent' \
--header 'Authorization: Bearer {APIDECK_API_KEY}'
--header 'Content-Type: application/json' \
```

## Start building with the FreeAgent API

Learn what else you can [build with the FreeAgent API](https://developers.apideck.com/apis/accounting/freeagent).

Interested in a personalized demo? [Let us know](https://www.apideck.com/demo-request?from=guide).
