Bearer Authorization

Obtain Access Token

Obtain a token for accessing other 1NCE API resources by using a POST request with a valid username and password combination for a 1NCE user account that has the permission to use the API.

post/oauth/token

Request

  • Base URL
    https://api.1nce.com/management-api
  • Auth
    HTTP basic

Request body

grant_typestring required

Grant Type of the requested access token. The default value is "client_credentials".

Response

OK

status_code200

Response HTTP status code for the executed request towards the 1NCE API. Status 200 indicates a successful request and response.

access_tokenstring

The generated Access Token for using as authentication token for other 1NCE API requests.

token_typestring

The type of token returned. The 1NCE API used Bearer tokens for general authentication.

expires_ininteger

Time in seconds until the returned 1NCE API Bearer Token is expired and a new token has to be queryied.

userIdstring

User ID type of the returned token.

scopestring

Scope access level of the returned token.

Example response

{
  "access_token": "eyJpZHRva2V..."
}

Changes

No recorded changes to this operation across all 1 revision of this API.