User authentication

All RESTful API for IBM Spectrum Connect requests must include an authorization token in their headers. This token ensures verification of the credentials of the connection attempt.

To obtain the authorization token for a specific user to be used in subsequent connection sessions, issue the POST command, followed by valid username and password values.

For example, POST /api/v1/users/get-auth-token sets a token for admin user, as illustrated below.
username  admin
password  admin1
returns

{
"token": "f931306e671938d3d6ccc61b3b40b6f8d44ef071"
}
After the token is set, you must use it as a value for the Authorization parameter in the header section for all subsequent RESTful API calls, see below.

Authorization "Token f931306e671938d3d6ccc61b3b40b6f8d44ef071"