POST authentication/device_application_key/token

Available from CRM.COM R15.0.0

This method returns an authentication token, which can subsequently be used by all other Web API methods for a device to access the system and retrieve data that are owned only by the device's owner Accounts Receivable that was identified through the provided access token

The Authentication Token expires after two hours, regardless of if the token is used or not, and a new one should be retrieved. The token is returned in JWT structure and the length of the token will be more that 32 characters

More information for authenticating using Consumer Application Keys can be found in API Authentication

Resource URL

Parameters

Name

Type

Description

installed_item_identifier

(mandatory)

Installed Item Identifier

The identifier of the installed item that will be authenticated. The allowed installed item identifier fields are the following

Name

Type

Description

id

(semi-optional)

String

The ID of the installed item

serial_number

(semi-optional)

String

The serial number of the installed item

alternative_code

(semi-optional)

String

The alternative code of  a installed item

jwt_token

(mandatory)

StringThe JWT token provided through the middle-ware for the specified installed item

Response Data

Name

Type

Description

token

String

The authentication token which can be used to access CRM.COM. The token expires after two hours

Examples

 Example 1

HTTP Method: POST

 

 Request

 

Post Data

 

 

Response

 

Related pages