An API that will accept inquirer referrals.
When making API calls to CRMLead API, each request requires a JWT token in the 'Bearer' header.
$.ajax({
url: "https://dev-saas.atriacom.com/crmlead/api/lead",
type: 'POST',
contentType: "application/json",
data: JSON.stringify(new Object()),
headers: {"Authorization": 'Bearer ' + my_jwt_token}
});
To get a token, send a Basic user credential to the Token endpoint. The JWT Token does have an expiration, so you can re-use it until it expires. Be sure to keep your token and credential secure!
$.ajax({
url: "https://dev-saas.atriacom.com/crmlead/api/token",
type: 'POST',
headers: {"Authorization": 'Basic ' + btoa(username + ':' + password)}
});
The API uses HTTP response codes to indicate the success or failure of an API request. Codes in the 2xx range indicate success. Codes in the 4xx range indicate client input failed requirement (e.g. missing a required parameter). Codes in the 5xx range indicate server error.
POST - https://dev-saas.atriacom.com/crmlead/api/lead
POST - https://dev-saas.atriacom.com/crmlead/api/token