DC 5.8 Getting an Access Key
Access keys allow you to access the Digizuite API.
Ā
Icon legend
This parameter is required
Deprecated
URL: /digizuitecore/loginservice/api/access-key
Method: POST
Auth required: NO
Request properties
Name | Example | Description |
---|---|---|
|
| The username of the member to authenticate with. The field is case-insensitive |
|
| The password of the user to authenticate with. The field is case-sensitive. The value can also be MD5 encoded if |
|
| How the passed password is encoded. Prefer The password is always stored securely in the database, no matter the encoding passed here. |
| {
"configId": "/0/",
"languageId": 3,
"persistLanguage": false,
"duration": "7.00:00:00"
} | Additional options to customize the created access key. It can be left out entirely. |
|
| If you want to use a specific config id. This mainly required if you are working with Search2 that are not defined in the DAM product. |
|
| The id of the language to authorize with. Ā If not specified, the access key will be created in the default language for that user. |
|
| If the users default language should be changed to the specified |
|
Ā or | A C# TimeSpan formatted string to override how long this access key should be valid for. If not specified the access key will follow the system configured default. In general it is not recommended to specify this, and instead integration should prefer to support automatic refreshing of access keys by looking at the This option has been removed entirely in 5.8.1. |
Ā
Response properties
Name | Example | Description |
---|---|---|
|
| The actual access to use for authorizing future requests. The value is an opaque string and should not be interpreted as the specified format might change. This is the only time this is returned and there is not way to get it again if lost. |
|
| A numeric id for this access key. Can be used to get information about this access key, such as which user it is authorizing. |
|
| A public key generated from the |
|
| A timestamp for when this key will stop working. |
| Ā | Information about the user this key is authorizing, such as who they are and what their roles are. |
|
| The id of the language this access key is authorized with. |
|
| The config version this access key is using if hitting |
|
| If the access key uses the specified |
Minimal example request
POST https://<my-dam>/digizuitecore/loginservice/api/access-key
Content-Type: application/json
{
"username": "lightuser",
"password": "test",
"passwordEncoding": "Plaintext"
}
Ā
Full example request
POST https://<my-dam>/digizuitecore/loginservice/api/access-key
Content-Type: application/json
{
"username": "lightuser",
"password": "test",
"passwordEncoding": "Plaintext",
"options": {
"configId": "/0/",
"languageId": 3,
"persistLanguage": false,
"duration": "7.00:00:00"
}
}
Ā
For both of the requests, the response looks like this: