Get Started
The Tight API uses access tokens to authenticate requests. To get started, simply exchange your client credentials and auserId for an access token:
Partner-level Authentication
TheuserId in the above request is optional. You can omit it to request a token that can access data across all of your users:
Bookkeeper Authentication
Passing theuserId of a bookkeeper returns a token that can access every company that bookkeeper is permitted to work on. To scope a bookkeeper’s token to a single company, add the apiCompanyId parameter alongside the bookkeeper’s userId:
apiCompanyId requires userId to be the ID of a bookkeeper who can access the given company.Token Scopes
You can pass an optionalscope field when requesting a token from POST /v6/auth/token to limit what the token can do:
readgives read-only accesswritegives read and write access- If omitted,
scopedefaults towrite
Using the Access Token
Include the returned token in theAuthorization header of any request to the Tight API:
access_token.
Authentication Scenarios
How the token was generated impacts what data the above request will return. For example, when using a token generated for a specific business owner (via theiruserId), the request will return bank transactions belonging to that user’s company.
The following table outlines what data is accessible based on the userId provided:
How the token was generated impacts how the Tight API audits changes to entities modified using that token. See the Audit Trail docs for more info.
Token Renewal
Instead of tracking token expiration, generate a new token for each user session.Tight Embedded Components automatically refresh tokens for you.