5 months ago

4 months ago

Bluetrait MSP

127

API Examples

API Access is available on Standard & Professional accounts.

Create your API key in Settings -> API -> Add -> Access Level -> Admin

URL: https://yoursubdomain.bluetrait.io/api/

Body/Post:

{"api_key" : "your_api_key", "api_action" : "your_api_action_such_as_get_tickets", "api_version" : 1}

API Actions Include:

  • add_user
  • add_ticket
  • add_ticket_guest
  • get_ticket_priorities
  • get_ticket_departments
  • get_tickets
  • add_project
  • billing_get_invoice_lines
  • get_article
  • msp_get_agents
  • msp_get_agent
  • msp_edit_agent

Bulk Get MSP Agents

{"api_key" : "your_api_key", "api_action" : "msp_get_agents","api_version" : 1}

For warranty purposes the fields of interest are:

  • purchase_date
  • warranty_expires
  • hw_serial_number
  • hw_manufacturer
  • hw_model

Edit MSP Agent

The edit agent allows you to write back the purchase_date & warranty_expires values. Please ensure these are in YYYY-MM-DD format. You can not bulk update agents you must call the API request for each agent you wish to update.

{"api_key" : "your_api_key","api_action" : "msp_edit_agent","api_version" : 1,"id" : ***the agent id***,"columns" : {"purchase_date" : "2020-01-03","warranty_expires" : "2023-01-03"}}

Please contact us if you need additional API calls or assistance with integration