For the complete documentation index, see llms.txt. This page is also available as Markdown.

Authentication

The iAdvize authentication mechanism uses temporary tokens that have a 12-hour lifetime.

You can generate your own tokens with a user email & password.

Please note the following policy on authentication:

  • 10 logins per minute per user

  • 100 logins per minute per IP address

Create an Access Token

You have make a POST call on the following endpoint: https://api.iadvize.com/oauth2/token and send the following parameters:

Parameter

Description

Type

Mandatory

username

User email

String

Yes

password

User password

String

Yes

grant_type

Oauth2 grant type (only password is supported)

String

Yes

Examples:

curl  --request POST \
      --url https://api.iadvize.com/oauth2/token \
      --data "username={EMAIL}&password={PASSWORD}&grant_type=password"
const axios = require('axios');
const querystring = require('querystring');

const authEndpoint = 'https://api.iadvize.com/oauth2/token';
const username = 'YOUR_IADVIZE_USER_EMAIL';
const password = 'YOUR_PASSWORD'

axios
  .post(
    authEndpoint,
    querystring.stringify({
      grant_type: 'password',
      username,
      password
    })
  )
  .then(function (response) {
    console.log(response);
  });

Response (example):

Authenticate your API calls

To authenticate an API call just pass the access token in an authorization header.

Check the validity of an access_token

You can verify token validity with the authenticated route below.

If your token is valid, you will receive a response that looks like this:

If your token is expired or invalid, you will receive the following response:

Last updated