Table of Contents | ||
---|---|---|
|
...
Name | Type | Description |
---|---|---|
username (mandatory) | String | The username that should be used to login. |
password (mandatory) | String | The password that should be used to login. |
organisation (mandatory) | String | The organization on which the user will login |
unit (optional) | String | The unit ID that the user will use during login. If not specified then the default unit for that user is used |
...
POST authentication/token/release
Tip |
---|
This method releases an authentication token in order to make it not usable by any other subsequent Web API calls
...
Parameters
Name | Type | Description |
---|---|---|
token (mandatory) | String | The authentication token which will be released |
...
Expand | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||
HTTP Method: POST Request:
Post Data:
Response:
|
POST authentication/web_api_key/token
Tip |
---|
Available from CRM.COM R10.0.0 |
This method returns an authentication token which can subsequently be used by all other Web API method to access the system. Note that the authentication token expires after two hours.
Note |
---|
Token expires after two hours, regardless of if the token is used or not, and a new one should be retrieved |
Resource URL
Parameters
Name | Type | Description |
---|---|---|
key | String | The key should be passed via HTTP Basic Auth, as the basic auth username. The basic auth password should be left empty |
unit (optional) | String | The unit ID that the user will use during login. If not specified then the default unit for that user is used |
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
Expand | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||
HTTP Method: POST Request: Headers:
Post Data:
Response:
|