API requests without authentication fail. The following authentication methods are available:
Send credentials in the HTTP request Authorization header as a base64-encoded username:password string.
Replace username and password with your credentials:
For example, if your username is user and your password is pass, the encoded header looks like this:
Basic authentication is only available over SSL.
Send a GET request to whoami to confirm you can reach theItential Platform server API and view access associated with your user:
Obtain a token by sending a POST request to /login, then pass the token as a query parameter in subsequent requests.
Send a POST request to /login with the following JSON payload:
A successful login returns an authentication token:
Include the token as a query parameter in subsequent requests:
Replace your-auth-token-here with the token returned by /login:
Obtain a bearer token by sending a POST request to /oauth/token, then pass the token in the Authorization header of subsequent requests.
Send a POST request to /oauth/token with Content-Type: application/x-www-form-urlencoded and the following payload:
A successful request returns the bearer token and its expiration time:
Set the access_token value as your Authorization header:
Replace your-access_token-here with the token returned by /oauth/token: