Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

API Header creation

Deano478
12 - Quasar

Hi all,

 

This is a slightly random question but here it goes. I'm working currently on sending requests to certain APO via Alteryx and there is 1 question/issue I need insights/assistance on.

 

When I run my request to get a bearer token which works perfectly btw the token due to its length get truncated so when I try and create an Auth Header like so in a formula: 'Bearer '  + [Token] it will take the truncated value and hence my follow on request is unauthorised. So i have had to resort to running the request for a token manually in postman and copying the value into Alteryx which is pain staking so is there a way around this?

 

Cheers for any  insights as this truncation issue is nothing but a pain in every possible way

5 REPLIES 5
aatalai
15 - Aurora

@Deano478 you could try saving it to a file (yxdb) and then try reading that file in later (hopefully it will not be truncated then,

 

please let me know how you get on 

Screenshot 2025-07-21 130542.png

abacon
12 - Quasar

@Deano478 This could be a datatype issue, throw a select after the bearer is generated and look at the length. If need be you can increase it so nothing gets cut off. That is most likely the issue as I have made many API calls and that is the only limitation I can think of here.

 

Bacon

apathetichell
20 - Arcturus

throw a select tool before your formula. increase the size of the field. this is just a field size issue. you should be using  vw_string with a larger size.

abacon
12 - Quasar

@apathetichell Thank you, I realize I didn't detail how to do it.

apathetichell
20 - Arcturus

Yup... I am 100% sure that it is not an issue that the JWT token is larger than the max vw_string setting. Max size of an HTTP header in apache is 8K --- ie your JWT cannot be more than say 7990 characters.

Labels
Top Solution Authors