When authenticating requests to the Formitize API, you may encounter errors relating to your API token, authentication method or permissions.
The following table outlines common API token errors and how to resolve them.
| Error Message | What it means and how to resolve it |
|---|---|
Invalid token. | The token is incorrect, has been deleted or is incomplete. Check that you have copied the entire token. |
Invalid company/user/password. | When using a token, this means the API did not recognise it. Check that Bearer starts with a capital B. If using Basic authentication, ensure the token is entered exactly as provided (lowercase, no spaces) and the password is x. |
No permission. | The token's profile does not have the required permissions for the requested action. Review and update the profile's permissions as required. |
If you receive a permission error, review the permissions assigned to the API token's profile.
In the Web Portal, go to Admin > API > API Tokens > Select the relevant Token Profile > Review Permissions.
Ensure the profile has the appropriate permissions for the information your integration needs to access or modify.
Please Note: Updating a profile's permissions will affect every API token associated with that profile.Authentication errors should stop the integration until the issue has been resolved. Requests that fail due to incorrect credentials or insufficient permissions should not be repeatedly retried.
If you require further assistance, contact Formitize Support with the relevant error message and details of the issue.
Never include your API token in a Support request. Formitize Support will never ask you to provide your token.