All Rulex APIs require an authentication token, which can be obtained through two different types of authentication:
Client ID & Secret
Signed JWT (JSON Web Token).
The authentication is requested through a dedicated API call, which a specific structure
The call does not require any headers, and its parameters depend on the type of authentication selected.
For details on the auth/token call see Auth Token.
Sample authentication request
The following is an example in cURL of an API request, using client-secret authentication
As with other API calls, the Auth API includes:
a status code, which is 200 if the request is successful.
response headers, which include the ID of the request, its timestamp, and the content type of the body, which should be JSON
response body, which includes information such as the requested token and its expiration, the refresh token and its expiration.
Sample authentication response
The following is an example of the response to the above API request, using client-secret authentication