States

Infer mental state (focus, calm, load)

post
/states/infer
Authorizations
Body
model_idstringOptionalExample: focus-v1
Responses
200

Predicted states

application/json
post
/states/infer
POST /v1/states/infer HTTP/1.1
Host: api.haloproject.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 68

{
  "features": {
    "features": [
      1
    ],
    "names": [
      "text"
    ]
  },
  "model_id": "focus-v1"
}
200

Predicted states

{
  "probs": {
    "focus": 0.82,
    "calm": 0.12,
    "load": 0.06
  },
  "latency_ms": 120
}

Last updated

Was this helpful?