1. Home
  2. V3 (AVP)
  3. API
  4. API Authentication

API Authentication

Authorization Token

All request to the AVP API must contain a valid authorization token, which can be located in a request dependent manor or as a HTTP header. Failure of the first located token will trigger authentication failure of the request.

For GET AND DELETE requests the order of precedent is as follows:

  1. HTTP X-Auth-Token header
  2. HTTP query parameter called ‘auth_token’, ie: http:/api.avpnet.us/v1/accounts/\{account_id}?auth_token=123456

For PUT AND POST requests the order of precedent is as follows:

  1. HTTP ‘X-Auth-Token’ header
  2. AVPAC envelope ‘auth_token’ parameter, in the HTTP body of the request

 

Exceptions

The authenticate modules will allow you to retrieve a AVPAC authorization token using one of the available methods, such as by user credentials.

 

Some modules can be used without valid credentials, these modules are:

signup, This module is used to on-board new accounts and as such they would not yet be able to authenticate

http://api.avpnet.us:{PORT}/v1/signup

 

user_auth, This module validates user credential hashes (username and password), returning an authorization token if valid.

http://api.avpnet.us:{PORT}/v1/user_auth

 

api_auth, This module validates an accounts api_key, returning an authorization token if valid.

Updated on June 15, 2017

Was this article helpful?

Related Articles

Not the solution you were looking for?
Click the link below to submit a support ticket
Submit Ticket

Leave a Comment