The API uses token-based authentication. The authentication token must be passed to SpectX in each request using the “Bearer” authentication scheme (as defined in RFC6750 Section 2.1).
curl -XPOST -G \ -H "Authorization: Bearer 4d055ad820051448" \ -d "scriptPath=%2Fuser%2Fexamples%2Faggr_functions.sx" \ http://localhost:8388/API/v1.0/
POST /API/v1.0/?scriptPath=%2Fuser%2Fexamples%2Faggr_functions.sx HTTP/1.1 Host: localhost:8388 Authorization: Bearer 4d055ad820051448
Alternatively, the authentication token can be provided in the
token query parameter.
The authentication token can be obtained from User Properties dialog, the token does not expire.
Note that groups referred to in read ACL descriptions of data stores which gets involved when performing the API call can only be sourced from a subset of SpectX internal groups. So-called external groups, which get provisioned by any of configured external authorization flows (IWA or SAML) during the UI login process are not available to the API submodule.