---
title: Requesting Passwords from Application Token
slug: kronpam-reference-guide-3-5-0/requesting-passwords-from-application-token
description: Learn how to request passwords using the Kron PAM AAPM RESTful API. This document provides detailed information on API parameters, including account tokens, password expiration time, request comment, password retrieval options, and more. Explore example r
docTags: 
createdAt: 2022-07-31T14:08:44.000Z
---

The Kron PAM Application Token RESTful API should be used to request passwords. Each Application Token account needs to authenticate itself using its token, which is revealed after the account creation. AAPM account tokens can also be displayed in the Application Token tab.

![](https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/brYAGkSegcGMrY4xhAsGs_image.png "Application Token Account Token")

RESTful API parameters used for Application Token password checkout:&#x20;

- **token**: The ***Application Token*** Account token
- **passwordExpirationInMinute**: Password expiration time&#x20;

Possible values are taken from the **aapm.show\.password.expiration.time.values** property in the System Config. Man. screen. If it is not defined, the possible values are taken from the **sapm.show\.password.expiration.time.values** property. The default value is **5m,30m,2h,24h**. Options are separated with commas (“,”), “m” stands for minutes, and “h” stands for hours

- **comment**: The password request comment
- **passwordChangeRequired**: Optional parameter with the default value set as “false”. If “true”, the password is changed before retrieval, otherwise, the password is changed after retrieval
- **SapmAccountPath**: The account path of the linked Account
- **SapmAccountName**: The account name of the linked  Account
- **responseType**: By default, it is the default response type (plain text for dynamic accounts). This value can also be set as “JSON” to receive the responses in JSON
- **pin**: The PIN code sent to the application for PIN authentication
- **tenantId:&#x20;**&#x49;f the multitenancy structure is active, it is specified from which tenant the request is sent.

***Application Token RESTful API Request Example***

***Basic Method***

The password is accessed as a result of the request sent with the correct parameters.

https\://single\_connect\_url:443/sc-aapm-ui/rest/aapm/password?passwordExpirationInMinute=30\&passwordChangeRequired=true\&comment=COMMENT\&token=c5838228-61ec-4b47-b72d-af0321db24b7\&sapmAccountPath=/test\&sapmAccountName=test\&responseType=JSON\&tenantId=HOST

***Pin Method***

**&#xD;The first request:**

**The first request:**

https\://single\_connect\_url:443/sc-aapm-ui/rest/aapm/password?passwordExpirationInMinute=30\&passwordChangeRequired=true\&comment=COMMENT\&token=c5838228-61ec-4b47-b72d-af0321db24b7\&sapmAccountPath=/test\&sapmAccountName=test\&responseType=JSON\&tenantId=HOST

**The second request:** (which is applicable for all Security Levels that require PIN authentication):

https\://single\_connect\_url:443/sc-aapm-ui/rest/aapm/password?passwordExpirationInMinute=30\&comment=COMMENT\&token=c5838228-61ec-4b47-b72d-af0321db24b7\&sapmAccountPath=/test\&sapmAccountName=test\&responseType=JSON\&pin=123456\&tenantId=HOST



***AAPM RESTful API Response Example***

x5#OKLE5 (the password)
