Title: wp-includes/php-ai-client/src/Providers/Http/DTO/ApiKeyRequestAuthentication.php | Developer.WordPress.org

---

# File: wp-includes/php-ai-client/src/Providers/Http/DTO/ApiKeyRequestAuthentication.php

 * method[ApiKeyRequestAuthentication::getJsonSchema()](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-dto-apikeyrequestauthentication/getjsonschema/)
 * {@inheritDoc}
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-dto-apikeyrequestauthentication/getjsonschema/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-dto-apikeyrequestauthentication/getjsonschema/#uses)
   | Source: [wp-includes/php-ai-client/src/Providers/Http/DTO/ApiKeyRequestAuthentication.php:88](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/php-ai-client/src/Providers/Http/DTO/ApiKeyRequestAuthentication.php#L88-L91)
 * method[ApiKeyRequestAuthentication::fromArray()](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-dto-apikeyrequestauthentication/fromarray/)
 * {@inheritDoc}
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-dto-apikeyrequestauthentication/fromarray/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-dto-apikeyrequestauthentication/fromarray/#uses)
   | Source: [wp-includes/php-ai-client/src/Providers/Http/DTO/ApiKeyRequestAuthentication.php:78](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/php-ai-client/src/Providers/Http/DTO/ApiKeyRequestAuthentication.php#L78-L82)
 * class[ApiKeyRequestAuthentication](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-dto-apikeyrequestauthentication/)
 * Class for HTTP request authentication using an API key.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-dto-apikeyrequestauthentication/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-dto-apikeyrequestauthentication/#uses)
   | Source: [wp-includes/php-ai-client/src/Providers/Http/DTO/ApiKeyRequestAuthentication.php:19](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/php-ai-client/src/Providers/Http/DTO/ApiKeyRequestAuthentication.php#L19-L92)
 * method[ApiKeyRequestAuthentication::__construct()](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-dto-apikeyrequestauthentication/__construct/)
 * Constructor.
 * Used by [3 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-dto-apikeyrequestauthentication/__construct/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-dto-apikeyrequestauthentication/__construct/#uses)
   | Source: [wp-includes/php-ai-client/src/Providers/Http/DTO/ApiKeyRequestAuthentication.php:33](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/php-ai-client/src/Providers/Http/DTO/ApiKeyRequestAuthentication.php#L33-L36)
 * method[ApiKeyRequestAuthentication::authenticateRequest()](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-dto-apikeyrequestauthentication/authenticaterequest/)
 * {@inheritDoc}
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-dto-apikeyrequestauthentication/authenticaterequest/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-dto-apikeyrequestauthentication/authenticaterequest/#uses)
   | Source: [wp-includes/php-ai-client/src/Providers/Http/DTO/ApiKeyRequestAuthentication.php:42](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/php-ai-client/src/Providers/Http/DTO/ApiKeyRequestAuthentication.php#L42-L46)
 * method[ApiKeyRequestAuthentication::getApiKey()](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-dto-apikeyrequestauthentication/getapikey/)
 * Gets the API key.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-dto-apikeyrequestauthentication/getapikey/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-dto-apikeyrequestauthentication/getapikey/#uses)
   | Source: [wp-includes/php-ai-client/src/Providers/Http/DTO/ApiKeyRequestAuthentication.php:54](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/php-ai-client/src/Providers/Http/DTO/ApiKeyRequestAuthentication.php#L54-L57)
 * method[ApiKeyRequestAuthentication::toArray()](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-dto-apikeyrequestauthentication/toarray/)
 * {@inheritDoc}
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-dto-apikeyrequestauthentication/toarray/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-dto-apikeyrequestauthentication/toarray/#uses)
   | Source: [wp-includes/php-ai-client/src/Providers/Http/DTO/ApiKeyRequestAuthentication.php:67](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/php-ai-client/src/Providers/Http/DTO/ApiKeyRequestAuthentication.php#L67-L70)