All requests to the REST API require you to authenticate using HTTP basic auth to access the resource. The username is your Login Id. The password is either your password or your session key following the process as described below.
Authentication is a two step process, first login to a session using your Login Id and password as your credentials to retrieve a session key and then using the session key to access APIs. To get a session key do a GET from the Access API which will log you in, refresh your session key and validate you have accepted the current licensing agreement. Once you have logged in your password for the rest of the session for all APIs is the session key returned to you from Access.
In addition to your credentials you must also include your x-api-key value in the Header, your x-api-key validates your abiity to access the APIs and controls the APIs available to you.
Api calls are formatted as:
Data is partitioned into Instances. The API queries must designate the InstanceId in order to access the correct data warehouse. The InstanceId is in the format 999 and is assigned during setup.
APIs may have properties and functions specific to an Application, which is specified by an ApplicationId. The API queries must designate the ApplicationId in order to access the correct version of the API. The ApplicationId is added to the InstanceId in the format 999.9 and is assigned during setup.
The hierarchical structure of the data dictates that all REST calls are in an Account Context. One of the resources of the Account are SubAccounts, which are accessed by changing the Account Context to the SubAccount.
The Resource name is the name of the API you are accessing.
You can retrieve a representation of a resource by GETting its url with any required parameters.
Create or update a resource by performing an HTTP PUT OR POST and posting as form data the JSON structure specified for the resource. Not all resources support PUT/POST
To delete a resource make an HTTP DELETE request to the resource URI. Not all resources support DELETE.