Legacy Authentication

THE APPROACH EXPLAINED BELOW SHOULD NOT BE USED BY NEW API INTEGRATIONS. IT IS PROVIDED FOR LEGACY API INTEGRATIONS ONLY.

Older API integrations to FieldAgent authenticated with the Sentera GraphQL API by sending an HTTP POST request to the https://api.sentera.com/v1/sessions endpoint.

{
  "session": {
    "email": "cecil@example.com",
    "password": "password1234",
    "platform_id": "API",
    "version_id": "1.0.0"
  }
}
{
  "auth_token": "add94235-e799-415d-94c7-55ddaab6d1a5",
  "user_sentera_id": "1v0dykn_US_m01aCecilOrg_CV_deve_27da362a_171018_114020",
  "user_email": "cecil@example.com",
  "status": "active",
  "device_id": "afh53nb"
}

The auth_token returned in the response JSON should be sent in the Authorization header of subsequent GraphQL API HTTP requests.