# REST Allow ArcScript in URL?

**URL:** <https://community.cdata.com/t/rest-allow-arcscript-in-url/718>\
**Category:** CData Arc\
**Tags:** question, rest\
**Created:** [May 17, 2024, 4:30pm UTC](https://community.cdata.com/t/rest-allow-arcscript-in-url/718 "2024-05-17T16:30:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![russell-jerseypost](https://avatars.discourse-cdn.com/v4/letter/r/439d5e/32.png) [@russell-jerseypost](https://community.cdata.com/u/russell-jerseypost)\
**Post date:** [May 17, 2024, 4:30pm UTC](https://community.cdata.com/t/rest-allow-arcscript-in-url/718/1 "2024-05-17T16:30:01Z")

</div>

Hi

In the REST Connector, under Advanced, there is the Option “Allow ArcScript in URL”.

I have two questions

1. Does this also apply to the Access Token URL when using OAuth2.0 ?
2. Would it support dynamic endpoints and formatters like this

```auto
[Vault('ENVIRONMENT') | equals('TEST', 'https://test-api.domain.com/api/SendTracking', 'https://api.domain.com/api/SendTracking')]

```

---

<div class="post-metadata">

**Author:** ![TR3X](https://avatars.discourse-cdn.com/v4/letter/t/34f0e0/32.png) [@TR3X](https://community.cdata.com/u/TR3X)\
**Post date:** [May 21, 2024, 6:36am UTC](https://community.cdata.com/t/rest-allow-arcscript-in-url/718/2 "2024-05-21T06:36:11Z")

</div>

Hi Russel,

**-\>Does this also apply to the Access Token URL when using OAuth2.0?**

No, it is only supported in the target HTTP URL endpoint for the REST request, meaning you cannot configure the REST connector to dynamically fetch an authentication token from a separate URL. Instead, you must manually input the Auth Token URL directly into the Authentication settings of the REST connector, as it does not support dynamically setting this URL.

**-\>Would it support dynamic endpoints and formatters like this**

Yes, you can use dynamic endpoints and formatters in the Rest Endpoint URL field, allowing for flexible URL generation based on conditions. However, this capability isn’t available for the Auth Token URL field. I tested this approach, and it functioned correctly.

```auto
[Vault('id') | equals('2', 'http://localhost:8001/connector/Default/API3/api.rsc/new_test', 'http://localhost:8001/connector/Default/API3/api.rsc/new_test(1)')]

```
