Skip to main content

Getting started

Amplified Intelligence API uses OAuth 2.0 to secure API endpoints using a client_credentials grant. You'll need an attentionPLAN® account before you can begin using Amplified Intelligence API.

The account will be set up by us and the credentials will be sent to your email. If you don't yet have an account, please contact us here.

If you've had an attentionPLAN® account, you can log in here and follow the instructions below to generate an access token.

Creating an API application

Navigate to the Manage API application page on the attentionPLAN® platform and create a new API application.

Creating an application

Once your application is created, you’ll be provided with your OAuth client ID and OAuth client secret. These will be used via OAuth 2.0 to create an authenticated token and allow you to access the API endpoints.

Application created

It's important to note that this screen is only shown once upon creating an application for security purposes. Please store the client secret in a safe an secure location. You should never share your client secret with anyone.

Only one application is permitted at a time. In order to create a new one, you will need to delete any existing application first.

You’ll then need to create an access token using your newly created credentials.

Authentication

A valid and authenticated token is created by calling https://login.amplified.co/oauth/token along with passing over your:

  • Client ID: Your OAuth application client ID, retrieved from attentionPLAN
  • Client secret: Your OAuth application client secret, retrieved from attentionPLAN
  • Audience: Your OAuth application audience - https://integration.amplified.co

The token is passed over in the HEADER Request via Authorization: Bearer <token>

The token expires after 1 hour so it’s important that your application is properly set up to request a new token when necessary.

Getting an access token for attentionPLAN API

curl --request POST \
--url https://login.amplified.co/oauth/token \
--header 'content-type: application/json' \
--data '{"grant_type":"client_credentials","client_id":"{{your_oauth_application_id}}","client_secret":"{{your_oauth_application_secret}}","audience":"https://integration.amplified.co"}'

Request body

{
"grant_type": "client_credentials",
"client_id": "{{your_oauth_application_id}}",
"client_secret": "{{your_oauth_application_secret}}",
"audience": "https://integration.amplified.co"
}