Title: rest_get_authenticated_app_password
Published: March 9, 2021
Last modified: May 20, 2026

---

# rest_get_authenticated_app_password(): string|null

## In this article

 * [Return](https://developer.wordpress.org/reference/functions/rest_get_authenticated_app_password/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/rest_get_authenticated_app_password/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/rest_get_authenticated_app_password/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/rest_get_authenticated_app_password/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/rest_get_authenticated_app_password/?output_format=md#wp--skip-link--target)

Gets the Application Password used for authenticating the request.

## 󠀁[Return](https://developer.wordpress.org/reference/functions/rest_get_authenticated_app_password/?output_format=md#return)󠁿

 string|null The Application Password UUID, or null if Application Passwords was
not used.

## 󠀁[Source](https://developer.wordpress.org/reference/functions/rest_get_authenticated_app_password/?output_format=md#source)󠁿

    ```php
    function rest_get_authenticated_app_password() {
    	global $wp_rest_application_password_uuid;

    	return $wp_rest_application_password_uuid;
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/rest-api.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/rest-api.php#L1214)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/rest-api.php#L1214-L1218)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/rest_get_authenticated_app_password/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_REST_Application_Passwords_Controller::get_current_item()](https://developer.wordpress.org/reference/classes/wp_rest_application_passwords_controller/get_current_item/)`wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php` |

Retrieves the application password being currently used for authentication of a user.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/rest_get_authenticated_app_password/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.7.0](https://developer.wordpress.org/reference/since/5.7.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Frest_get_authenticated_app_password%2F)
before being able to contribute a note or feedback.