Invoking Service APIs

Invocation of the external service api is similar to data service api. Using Curl, any api endpoint can be invoked via command-line as long as it is authenticated with the Trillo platform. A couple of samples are given below. Evidently, HTTP headers for workspace (org) and application are required along with valid Cookies credentials. These headers are 1) x-app-name and 2) x-org-name

API Examples

curl -X POST \
  'https://www.trillo.io/svc/quote/datacubes/api/companies' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'Cookie: *****' \
  -H 'x-app-name: quote' \
  -H 'x-org-name: insuretech' \
  -d '{
    "zip": 60609,
    "companyName": "FIRE JERK",
    "street_addr1": "750 W Garfield Blvd"
}'
curl -X GET \
  'https://www.trillo.io/svc/quote/datacubes/api/overview?company_id=111111111111&views=view1' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'Cookie: *****' \
  -H 'x-app-name: quote' \
  -H 'x-org-name: insuretech'