Welcome to the Acrolinx API! This documentation helps you:
- use the API directly
- build your own integration
- understand how Acrolinx interacts with integrations.
The API reference describes all services and methods.
Contact Acrolinx support for consulting and getting your integration certified.
Acrolinx provides different SDKs and samples for building integrations.
Before you start building your own integration, you might want to read the following:
- Getting started with custom integrations
- How to integrate with Acrolinx
- Acrolinx SDKs
- Acrolinx demo projects.
You'll need the following:
- An Acrolinx URL
- A user on that Acrolinx instance
- A signature
Understand the following concepts:
To use the Authentication API, you'll need an access token.
Send the access token with the header parameter X-Acrolinx-Auth
for every API request.
X-Acrolinx-Auth:SOME_ACCESS_TOKEN_STRING
Access tokens are associated with a user and come in two forms:
- Access tokens that you get by signing in to Acrolinx Access tokens normally have a lifetime of 30 days. After that, you have to renew them.
- API tokens API tokens have a lifespan of 4 years.
The Acrolinx sign-in process is for individual users to sign in. An Acrolinx web application handles the authentication.
This is how it works:
-
Integration requests an access token:
POST: https://tenant.acrolinx.cloud/api/v1/auth/sign-ins
-
Acrolinx returns two URLs: an
interactive
and apoll
URL in a result like this:{ "data": { "state": "Started", "interactiveLinkTimeout": 900 }, "links": { "interactive": "https://tenant.acrolinx.cloud/dashboard.html?login=19901-2-8412998412", "poll": "https://tenant.acrolinx.cloud/api/v1/auth/sign-ins/185-0ijfgklejt2390tui" } }
-
Prompt the
interactive
URL for the user to authenticate. Poll with thepoll
URL until you get an http response (code 200).{ "data": { "state": "Success", "accessToken": "123579080a8d1fee12490a90dc3", "authorizedUsing": "ACROLINX_SIGN_IN", "privileges": [ "CheckingAndClients.checkingApplications", "CheckingAndClients.submitDictionaryEntry" ], "userId": "fred" }, "links": { "user": "https://tenant.acrolinx.cloud/api/v1/user/fred" } }
Creating an API token is easy:
- Sign in to Acrolinx.
- Go to your ‘Settings'.
- Click CREATE API TOKEN.
- Copy the API token.
Note After you generate an API token, save it somewhere secure (like a password manager) so that you can access it again. Once you leave the Settings page, the API token will no longer appear on screen.
A signature is a string that identifies an integration.
Inclue the signature as a header in every request you send to the Acrolinx API:
X-Acrolinx-Client: YOUR_SIGNATURE; VERSION_NUMBER
The VERSION_NUMBER
should follow the following pattern X.X.X.X
like 1.0.0.1
.
To get certified, your integration must send the version and build number.
Maintaining your integration in production is much easier with a version and build number.
Copyright 2018-present Acrolinx GmbH
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
For more information visit: https://www.acrolinx.com