# In the API policy \<api-policy.xml\>, I'm sending a request to retrieve the authenticationToken

**URL:** <https://discuss.hashicorp.com/t/in-the-api-policy-api-policy-xml-im-sending-a-request-to-retrieve-the-authenticationtoken/28883>\
**Category:** Terraform\
**Created:** [August 30, 2021, 9:44am UTC](https://discuss.hashicorp.com/t/in-the-api-policy-api-policy-xml-im-sending-a-request-to-retrieve-the-authenticationtoken/28883 "2021-08-30T09:44:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![khushbu.nagpal](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/khushbu.nagpal/32/18959_2.png) [@khushbu.nagpal](https://discuss.hashicorp.com/u/khushbu.nagpal)\
**Post date:** [August 30, 2021, 9:44am UTC](https://discuss.hashicorp.com/t/in-the-api-policy-api-policy-xml-im-sending-a-request-to-retrieve-the-authenticationtoken/28883/1 "2021-08-30T09:44:05Z")

</div>

In the API policy \<api-policy.xml\>, I’m sending a request to retrieve the authenticationToken.

${backend\_url}

I’m unable to set the value of the variable ${backend\_url} from the terraform script/deployment.yaml, this value is environment specific. Tried many different ways to set this variable but nothing worked. I’m new to APIM, any help?
