- Prerequisite Steps
- Request a Bearer Token
- Request the Org ID
- Make Further Requests
1. Prerequisite Steps
Before you make an authentication request to the gateway, you must generate a Personal Access Token (PAT) in Filevine. You will also need the client ID and secret.
- Generate a PAT: Generate an access token in Filevine’s Account Manager.
- Register your client ID and secret: Ensure that your client ID and secret are registered. You will need this information for authentication. Contact a Filevine representative for assistance if needed.
2. Request A Bearer Token
Make a POST request to the Filevine Identity endpoint below, using the information collected in the table and in step 1. You will receive a bearer token, its expiration time (listed in seconds), and the requested scopes.
| Method | POST |
| Content-Type | x-www-form-urlencoded |
| Endpoint/URI | https://identity.filevine.com/connect/token |
| token | Enter the PAT generated in step 1A |
| grant_type | personal_access_token |
| scope | API Access Only - fv.api.gateway.access tenant filevine.v2.api.* openid email fv.auth.tenant.read fv.identity.user.write Webhooks (add to the API Access scopes listed above) - filevine.v2.webhooks Bulk Data - fv.bulkdata.api.all fv.api.gateway.access tenant openid email fv.auth.tenant.read |
| client_id | Enter the client ID you’ve registered |
| client_secret | Enter the client secret you’ve registered |
Please note!
Your client secret should be treated like a password. - Store it securely - Don't share it with anyone outside of your company - Don't put it in any code on your website or in a URL
A Note on Scopes
When specifying scopes for this request, please separate them with spaces rather than commas. Each scope must match exactly as listed in the table above. For more details on each scope, see below:
fv.api.gateway.access: Provides general gateway access.tenant: Grants access to the FV Tenant (retrieve tenant ID).filevine.v2.api.*: Allows access to all Filevine API methods.openid: Enables retrieval of user information.email: Enables retrieval of user email.fv.auth.tenant.read: Allows the gateway to determine the correct base URL path from FV Auth (tenant URL).filevine.v2.webhooks: Enables the gateway to create and manage webhook subscriptions.fv.identity.user.write: Allows creation and management of user identities (required for the Create User Invite endpoint).fv.bulkdata.api.all: Grants access to the Bulk Data API (required for all Bulk Data endpoints).
3. Request the Org ID
Perform your first request to the API gateway to get your Org ID. You will use the bearer token (from step 2) and the Org ID as headers in all further requests.
| Method | POST |
| Endpoint/URI | https://api.filevineapp.com/fv-app/v2/utils/GetUserOrgsWithToken |
| Auth Type | Bearer Token |
| Token | Use the bearer token generated in step 2 |
In response, you will receive the User ID and Org ID.
4. Make Further Requests
Use the bearer token and provide the Org ID as a header in all further requests.
- Org ID header name:
x-fv-orgid