# Custom Attribute from Product

**URL:** <https://discuss.google.dev/t/custom-attribute-from-product/5949>\
**Category:** Apigee\
**Tags:** api-runtime\
**Created:** [September 18, 2014, 2:13pm UTC](https://discuss.google.dev/t/custom-attribute-from-product/5949 "2014-09-18T14:13:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [September 18, 2014, 2:13pm UTC](https://discuss.google.dev/t/custom-attribute-from-product/5949/1 "2014-09-18T14:13:30Z")

</div>

I’m trying to add a custom attribute from my products after the clients have passed in an apikey. I cannot seem to get the custom attribute from the product with that apikey. I cannot find anything in the support documents to do this, how do we get the custom attributes from our products?

I’m using this to try and add a custom attribute to my header but I only see a blank header for value:

```auto
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<AssignMessage async="false" continueOnError="false" enabled="true" name="Assign-Message-1">
    <DisplayName>Assign Message 1</DisplayName>
    <FaultRules/>
    <Properties/>
    <Remove>
    </Remove>
    <Add>
        <Headers>
          <Header name="Value">{apiproduct.Value}</Header>
      </Headers>
    </Add>
    <IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables>
    <AssignTo createNew="false" transport="http" type="request"/>
</AssignMessage>

```

I’ve also tried going with developer.app.Value and still not getting the custom values.

---

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [September 22, 2014, 1:00am UTC](https://discuss.google.dev/t/custom-attribute-from-product/5949/2 "2014-09-22T01:00:24Z")

</div>

After the VerifyAPIKey policy executes, variables will be automatically populated with information about the developer, developer app, API products, etc. Try referencing the following variable for API product info:

```auto
verifyapikey.{policy_name}.apiproduct.{custom_attribute_name}

```

where {policy\_name} is what you named the VerifyAPIKey policy.

Docs page for reference:

[http://apigee.com/docs/api-services/content/verify…](http://apigee.com/docs/api-services/content/verify-api-key-policy#variables)

---

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [September 22, 2014, 1:42pm UTC](https://discuss.google.dev/t/custom-attribute-from-product/5949/3 "2014-09-22T13:42:05Z")

</div>

I think an example should be given in the api docs something like “{verifiyapikey.your-policy-name.apiproduct.custom-variable}” in the yellow box like the previous examples.

---

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [September 26, 2019, 10:21pm UTC](https://discuss.google.dev/t/custom-attribute-from-product/5949/4 "2019-09-26T22:21:24Z")

</div>

With verifyapikey, I was able to grab the custom attributes for only the first products in the list. How can I get for each products?
