What I normally do in cases like this is set up the necessary scaffolding for the solution. In your case, that could be introducing a variable named something like `access_token` for it to substitute into the URL.
Then, when you trigger a suggestion it's very likely that CoPilot will use your `access_token` variable.
Then, when you trigger a suggestion it's very likely that CoPilot will use your `access_token` variable.