---
title: "Rest-Extractor - Header value with static value and supported variable"
description: "The Rest-Extractor header value can include both static values and supported variables such as plainTextPassword, provided they are properly defined and populated. Variables must be plain text or encoded tokens, and unsupported types like stdAESPassword may cause errors."
url: "https://docs.itrsgroup.com/docs/faq/geneos/26061506571933-geneos-rest-extractor-header-value-with-static-value-and-supported-variable/index.html"
---
## Problem

How does the header value work with a static value and a supported variable?

## Examples

1. **Basic static header** - This sends a static `Authorization` header with a bearer token.

![Geneos - Rest-Extractor - Header value with static value and supported variable](https://docscdn.itrsgroup.com/faq/images/geneos/26061506571933-26590856592285-mceclip1.png)

Output:

![Geneos - Rest-Extractor - Header value with static value and supported variable](https://docscdn.itrsgroup.com/faq/images/geneos/26061506571933-26590856593821-mceclip2.png)

2. **Header with a supported variable** - Here, `$(restVariableOperatingEnv)` could be a variable of a supported type, such as `plainTextPassword`, provided it is properly defined and populated in your configuration.

![Geneos - Rest-Extractor - Header value with static value and supported variable](https://docscdn.itrsgroup.com/faq/images/geneos/26061506571933-26590941113117-mceclip6.png)

![Geneos - Rest-Extractor - Header value with static value and supported variable](https://docscdn.itrsgroup.com/faq/images/geneos/26061506571933-26590904974749-mceclip3.png)

Output:

![Geneos - Rest-Extractor - Header value with static value and supported variable](https://docscdn.itrsgroup.com/faq/images/geneos/26061506571933-26590919185309-mceclip4.png)

## Important note

1. The variables can be defined in managed entities, managed entity groups, types, environments, and operating environment: <https://docs.itrsgroup.com/docs/geneos/current/processing/gateway-administration/gateway_user_variables_and_environments/index.html#define-variables>

2. If you attempt to use something like:

![Geneos - Rest-Extractor - Header value with static value and supported variable](https://docscdn.itrsgroup.com/faq/images/geneos/26061506571933-26590919185949-mceclip5.png)

and `restValueEnv` is a `stdAESPassword`, it will not work and may result in an unauthorized error. To pass credentials securely, consider using supported variable types.

|  |  |
| --- | --- |
| Headers | HTTP headers to include. Provide headers in key-value pairs. Note: If you specify an HTTP `Content-Type` in the key-value pairs, then this content type overrides the content type you might specify in the HTTP method for `POST` and `PUT`. |

HTTP headers accept **key-value pairs**, meaning they must be in **plain text** or **encoded tokens**.

## Related articles

- <https://docs.itrsgroup.com/docs/geneos/current/collection/rest-extractor/index.html#overview>
- [docs.itrsgroup.com/docs/geneos/current/collection/rest-extractor/index.html#plugin-configuration](https://docs.itrsgroup.com/docs/geneos/current/collection/rest-extractor/index.html#plugin-configuration)
- <https://docs.itrsgroup.com/docs/geneos/current/processing/gateway-administration/gateway_user_variables_and_environments/index.html>
- <https://docs.itrsgroup.com/docs/geneos/current/processing/configuration/gateway_operating_environment/index.html#operatingenvironment--var>


